Skip to content

Commit

Permalink
切换到maven central尝试下
Browse files Browse the repository at this point in the history
  • Loading branch information
owenlongbo committed Jul 1, 2021
1 parent a41d7a0 commit f827779
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 80 deletions.
6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 0 additions & 72 deletions bintray.gradle

This file was deleted.

3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'kotlin'
apply from: 'bintray.gradle'
apply from: 'publish.gradle'

buildscript {
Expand All @@ -10,7 +9,7 @@ buildscript {

dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.71"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20"
}
}

Expand Down
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# signing
signing.keyId=
signing.password=
signing.secretKeyRingFile=
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
40 changes: 37 additions & 3 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ static def isSnapshot(def version) {
uploadArchives {
repositories {
mavenDeployer {

beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

if (DEBUG) {
repository(url: uri("${buildDir}/libs"))
} else {
Expand All @@ -37,9 +40,40 @@ uploadArchives {
}
}
}
pom.groupId = GROUP
pom.artifactId = ARTIFACT
pom.version = VERSION
pom {
groupId = GROUP
artifactId = ARTIFACT
version = VERSION
}
}
}
}

afterEvaluate { project ->
if (project.getPlugins().hasPlugin('com.android.application') ||
project.getPlugins().hasPlugin('com.android.library')) {
task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.source
}
artifacts {
archives androidSourcesJar
}
} else {
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
}
}

signing {
sign configurations.archives
}
Binary file added secret.gpg
Binary file not shown.

0 comments on commit f827779

Please sign in to comment.