Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 905f0ad

Browse files
committed
ci: close and release repository to maven central
1 parent d8258d8 commit 905f0ad

File tree

2 files changed

+6
-57
lines changed

2 files changed

+6
-57
lines changed

build.gradle

Lines changed: 5 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ plugins {
2424
id "org.springframework.boot" version "$LIB_SPRING_BOOT_VER" apply false
2525
id "org.sonarqube" version "3.1.1"
2626
id "jacoco"
27+
id 'io.codearte.nexus-staging' version '0.30.0'
2728
}
2829

2930
sonarqube {
@@ -184,29 +185,6 @@ subprojects {
184185
}
185186
}
186187
}
187-
188-
// // create the sign pom artifact
189-
// pom.withXml {
190-
// def pomFile = file("${project.buildDir}/generated-pom.xml")
191-
// writeTo(pomFile)
192-
// def pomAscFile = signing.sign(pomFile).signatureFiles[0]
193-
// artifact(pomAscFile) {
194-
// classifier = null
195-
// extension = 'pom.asc'
196-
// }
197-
// }
198-
// // create the signed artifacts
199-
// project.tasks.signArchives.signatureFiles.each {
200-
// artifact(it) {
201-
// def matcher = it.file =~ /-(sources|javadoc)\.jar\.asc$/
202-
// if (matcher.find()) {
203-
// classifier = matcher.group(1)
204-
// } else {
205-
// classifier = null
206-
// }
207-
// extension = 'jar.asc'
208-
// }
209-
// }
210188
}
211189
}
212190
repositories {
@@ -224,40 +202,11 @@ subprojects {
224202
}
225203
}
226204
}
205+
}
227206

228-
// model {
229-
// tasks.publishMavenJavaPublicationToMavenLocal {
230-
// dependsOn project.tasks.signArchives
231-
// }
232-
// tasks.publishMavenJavaPublicationToMavenRepository {
233-
// dependsOn project.tasks.signArchives
234-
// }
235-
// }
236-
237-
// bintray {
238-
// user = System.env.BINTRAY_USER ?: project.findProperty('BINTRAY_USER') ?: ''
239-
// key = System.env.BINTRAY_PASS ?: project.findProperty('BINTRAY_PASS') ?: ''
240-
// publications = ['mainProjectPublication']
241-
// publish = true
242-
// pkg {
243-
// repo = 'releases'
244-
// name = PROJECT_NAME
245-
// desc = PROJECT_DESC
246-
// licenses = [PROJECT_LICENSE]
247-
// vcsUrl = PROJECT_GIT_REPO_URL
248-
// userOrg = 'graphql-java-kickstart'
249-
// version {
250-
// name = project.version
251-
// gpg {
252-
// sign = true
253-
// }
254-
// mavenCentralSync {
255-
// user = System.env.OSS_USER_TOKEN_KEY ?: project.findProperty('OSS_USER_TOKEN_KEY') ?: ''
256-
// password = System.env.OSS_USER_TOKEN_PASS ?: project.findProperty('OSS_USER_TOKEN_PASS') ?: ''
257-
// }
258-
// }
259-
// }
260-
// }
207+
nexusStaging {
208+
username = System.env.OSS_USER_TOKEN_KEY ?: project.findProperty('OSS_USER_TOKEN_KEY') ?: ''
209+
password = System.env.OSS_USER_TOKEN_PASS ?: project.findProperty('OSS_USER_TOKEN_PASS') ?: ''
261210
}
262211
}
263212

github-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ git config --global user.name "GitHub Actions"
4545
echo "Deploying release to Sonatype"
4646
removeSnapshots
4747

48-
./gradlew clean build publish
48+
./gradlew clean build publish closeAndReleaseRepository
4949

5050
commitRelease
5151
bumpVersion

0 commit comments

Comments
 (0)