@@ -4,7 +4,7 @@ plugins {
4
4
id ' org.jetbrains.kotlin.kapt' version ' 1.3.20'
5
5
id " signing"
6
6
id " io.codearte.nexus-staging" version " 0.11.0"
7
- id " maven"
7
+ id " maven-publish "
8
8
id " io.zensoft.versioning" version " 1.1.0"
9
9
}
10
10
@@ -85,44 +85,52 @@ if (project.hasProperty("sign")) {
85
85
}
86
86
}
87
87
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
+ ]
106
101
licenses {
107
102
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'
110
105
}
111
106
}
112
-
113
- scm {
114
- url " https://github.com/OpenFuturePlatform/open-chain-kotlin-sdk"
115
- }
116
-
117
107
developers {
118
108
developer {
119
- id " openplatform"
120
- name " OPEN Platform"
109
+ id = ' openplatform'
110
+ name = ' OPEN Platform'
121
111
}
122
112
}
113
+ scm {
114
+ url = ' https://github.com/OpenFuturePlatform/open-chain-kotlin-sdk'
115
+ }
123
116
}
124
117
}
125
118
}
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
126
134
}
127
135
128
136
nexusStaging {
0 commit comments