Skip to content

Commit 0eb21d1

Browse files
committed
Upgraded gradle version to 6.8.1
1 parent fff3340 commit 0eb21d1

File tree

5 files changed

+245
-162
lines changed

5 files changed

+245
-162
lines changed

build.gradle

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
id 'org.jetbrains.kotlin.kapt' version '1.3.20'
55
id "signing"
66
id "io.codearte.nexus-staging" version "0.11.0"
7-
id "maven"
7+
id "maven-publish"
88
id "io.zensoft.versioning" version "1.1.0"
99
}
1010

@@ -85,44 +85,52 @@ if (project.hasProperty("sign")) {
8585
}
8686
}
8787

88-
uploadArchives {
89-
repositories {
90-
mavenDeployer {
91-
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
92-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
93-
authentication(userName: '${OSSRHUSERNAME}', password: '${OSSRHPASSWORD}')
94-
}
95-
96-
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
97-
authentication(userName: '${OSSRHUSERNAME}', password: '${OSSRHPASSWORD}')
98-
}
99-
100-
pom.project {
101-
name "open-chain-kotlin-sdk"
102-
packaging "jar"
103-
url "https://github.com/OpenFuturePlatform/open-chain-kotlin-sdk"
104-
description "OPEN Platform Kotlin SDK"
105-
88+
publishing {
89+
publications {
90+
mavenJava(MavenPublication) {
91+
from components.java
92+
93+
pom {
94+
name = 'open-chain-kotlin-sdk'
95+
description = 'OPEN Platform Kotlin SDK'
96+
url = 'https://github.com/OpenFuturePlatform/open-chain-kotlin-sdk'
97+
properties = [
98+
myProp: "value",
99+
"prop.with.dots": "anotherValue"
100+
]
106101
licenses {
107102
license {
108-
name "MIT licence"
109-
url "https://github.com/OpenFuturePlatform/open-chain-kotlin-sdk/blob/master/LICENCE.txt"
103+
name = 'MIT licence'
104+
url = 'https://github.com/OpenFuturePlatform/open-chain-kotlin-sdk/blob/master/LICENCE.txt'
110105
}
111106
}
112-
113-
scm {
114-
url "https://github.com/OpenFuturePlatform/open-chain-kotlin-sdk"
115-
}
116-
117107
developers {
118108
developer {
119-
id "openplatform"
120-
name "OPEN Platform"
109+
id = 'openplatform'
110+
name = 'OPEN Platform'
121111
}
122112
}
113+
scm {
114+
url = 'https://github.com/OpenFuturePlatform/open-chain-kotlin-sdk'
115+
}
123116
}
124117
}
125118
}
119+
120+
repositories {
121+
maven {
122+
name 'deploy'
123+
url 'https://oss.sonatype.org/content/repositories/snapshots/'
124+
credentials {
125+
username '${OSSRHUSERNAME}'
126+
password '${OSSRHPASSWORD}'
127+
}
128+
}
129+
}
130+
}
131+
132+
signing {
133+
sign publishing.publications.mavenJava
126134
}
127135

128136
nexusStaging {

gradle/wrapper/gradle-wrapper.jar

4.9 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)