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')