Skip to content

Commit

Permalink
update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
cgspine committed Aug 18, 2021
1 parent 31cfddb commit 01391e8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions gradle/deploy.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'maven-publish'
apply plugin: 'signing'

Properties properties = new Properties()
File projectPropertiesFile = rootProject.file("gradle/deploy.properties")
Expand Down Expand Up @@ -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")
Expand All @@ -59,17 +62,25 @@ 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")
artifact androidSourcesJar
artifact androidJavadocJar
pom.withXml {
def root = asNode()

root.appendNode('description', 'qmui android library')

final dependenciesNode = root.appendNode('dependencies')

ext.addDependency = { dep, String scope ->
Expand Down Expand Up @@ -114,6 +125,7 @@ publishing {

pom.withXml {
def root = asNode()
root.appendNode('description', 'qmui android library')
root.children().last() + pomConfig
}
}
Expand Down
4 changes: 2 additions & 2 deletions qmuidemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 01391e8

Please sign in to comment.