File tree Expand file tree Collapse file tree 4 files changed +11
-30
lines changed Expand file tree Collapse file tree 4 files changed +11
-30
lines changed Original file line number Diff line number Diff line change 19
19
run : ./graldew check
20
20
- name : Publish to Maven Central
21
21
env :
22
- SIGN_KEY : ${{ secrets.SIGN_KEY }}
23
- SIGN_KEY_PASS : ${{ secrets.SIGN_KEY_PASS }}
24
- SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
25
- SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
26
- run : ./gradlew clean publishToSonatype closeAndReleaseSonatypeStagingRepository
22
+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SIGN_KEY }}
23
+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SIGN_KEY_PASS }}
24
+ ORG_GRADLE_PROJECT_sonatypeUsername : ${{ secrets.SONATYPE_USERNAME }}
25
+ ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.SONATYPE_PASSWORD }}
26
+ run : ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
27
27
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ plugins {
9
9
id(" com.github.sgtsilvio.gradle.metadata" )
10
10
id(" com.github.sgtsilvio.gradle.javadoc-links" )
11
11
id(" io.github.gradle-nexus.publish-plugin" )
12
- signing
12
+ id( " signing" )
13
13
}
14
14
15
15
@@ -114,37 +114,18 @@ tasks.javadoc {
114
114
publishing {
115
115
publications.register<MavenPublication >(" kafkaExtensionCustomizationSdk" ) {
116
116
from(components[" java" ])
117
- pom {
118
- name.set(project.name)
119
- description.set(project.description)
120
- url.set(project.metadata.organization!! .url)
121
- licenses {
122
- project.metadata.license
123
- }
124
- developers {
125
- project.metadata.developers
126
- }
127
- scm {
128
- connection.set(" scm:git:git://github.com/hivemq/${project.metadata.github!! .repo} .git" )
129
- developerConnection.set(" scm:git:ssh://github.com/hivemq/${project.metadata.github!! .repo} .git" )
130
- url.set(" http://github.com/hivemq/${project.metadata.github!! .repo} /" )
131
- }
132
- }
133
117
}
134
118
}
135
119
136
120
nexusPublishing {
137
121
repositories {
138
- sonatype {
139
- username.set(" ${project.findProperty(" sonatypeUser" ) ? : System .getenv(" SONATYPE_USERNAME" )} " )
140
- password.set(" ${project.findProperty(" sonatypePassword" ) ? : System .getenv(" SONATYPE_PASSWORD" )} " )
141
- }
122
+ sonatype ()
142
123
}
143
124
}
144
125
145
126
signing {
146
- val signingKey = " ${project.findProperty(" signingKey" ) ? : System .getenv( " SIGN_KEY " )} " ;
147
- val signingPassword = " ${project.findProperty(" signingPassword" ) ? : System .getenv( " SIGN_KEY_PASS " )} " ;
127
+ val signingKey = " ${project.findProperty(" signingKey" )} "
128
+ val signingPassword = " ${project.findProperty(" signingPassword" )} "
148
129
useInMemoryPgpKeys(signingKey, signingPassword)
149
130
sign(publishing.publications[" kafkaExtensionCustomizationSdk" ])
150
131
}
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ plugin.bintray.version=1.8.5
11
11
plugin.utf8.version =0.1.0
12
12
plugin.metadata.version =0.2.0
13
13
plugin.javadoc-links.version =0.3.0
14
- plugin.io.github.gradle- nexus.publish-plugin .version =1.0.0
14
+ plugin.nexus-publish .version =1.0.0
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ pluginManagement {
7
7
id(" com.github.sgtsilvio.gradle.utf8" ) version " ${extra[" plugin.utf8.version" ]} "
8
8
id(" com.github.sgtsilvio.gradle.metadata" ) version " ${extra[" plugin.metadata.version" ]} "
9
9
id(" com.github.sgtsilvio.gradle.javadoc-links" ) version " ${extra[" plugin.javadoc-links.version" ]} "
10
- id(" io.github.gradle-nexus.publish-plugin" ) version " ${extra[" plugin.io.github.gradle- nexus.publish-plugin .version" ]} "
10
+ id(" io.github.gradle-nexus.publish-plugin" ) version " ${extra[" plugin.nexus-publish .version" ]} "
11
11
}
12
12
}
13
13
You can’t perform that action at this time.
0 commit comments