From 01391e82f3f9d3ebfe03edc79dec8aa49d0e3280 Mon Sep 17 00:00:00 2001 From: cgspine Date: Wed, 18 Aug 2021 13:52:35 +0800 Subject: [PATCH] update deploy script --- gradle/deploy.gradle | 12 ++++++++++++ qmuidemo/build.gradle | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gradle/deploy.gradle b/gradle/deploy.gradle index 9c42c6d0..7ab09290 100644 --- a/gradle/deploy.gradle +++ b/gradle/deploy.gradle @@ -1,4 +1,5 @@ apply plugin: 'maven-publish' +apply plugin: 'signing' Properties properties = new Properties() File projectPropertiesFile = rootProject.file("gradle/deploy.properties") @@ -39,6 +40,8 @@ if(isAndroidLib){ } def pomConfig = { + name "${project.group}:${project.name}" + url 'https://github.com/Tencent/QMUI_Android' licenses { license { name properties.getProperty("license.name") @@ -59,10 +62,15 @@ def pomConfig = { } } +signing { + sign publishing.publications +} + publishing { publications { mavenjava(MavenPublication) { groupId project.group + artifactId project.name version project.version if(isAndroidLib){ artifact file("$buildDir/outputs/aar/${project.name}-release.aar") @@ -70,6 +78,9 @@ publishing { artifact androidJavadocJar pom.withXml { def root = asNode() + + root.appendNode('description', 'qmui android library') + final dependenciesNode = root.appendNode('dependencies') ext.addDependency = { dep, String scope -> @@ -114,6 +125,7 @@ publishing { pom.withXml { def root = asNode() + root.appendNode('description', 'qmui android library') root.children().last() + pomConfig } } diff --git a/qmuidemo/build.gradle b/qmuidemo/build.gradle index a0da59b4..f6445dc1 100644 --- a/qmuidemo/build.gradle +++ b/qmuidemo/build.gradle @@ -74,8 +74,8 @@ dependencies { implementation "com.jakewharton:butterknife:$butterknifeVersion" kapt "com.jakewharton:butterknife-compiler:$butterknifeVersion" implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" -// implementation 'com.qmuiteam:arch:0.3.1' -// implementation 'com.qmuiteam:qmui:1.2.0' +// implementation 'com.qmuiteam:arch:2.0.1' +// implementation 'com.qmuiteam:qmui:2.0.1' implementation project(':lib') implementation project(':qmui') implementation project(':arch')