File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 56
56
export GPG_TTY=$(tty) && echo ${GPG_KEY_BASE64} | base64 --decode | gpg --fast-import --batch
57
57
NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
58
58
echo "New version: ${NEW_VERSION}"
59
- ./gradlew -Pversion=${NEW_VERSION} publish -i
59
+ ./gradlew -Pversion=${NEW_VERSION} publish --info
60
+ ./gradlew getStagingProfile closeAndReleaseRepository --info
60
61
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ plugins {
19
19
id(" com.github.johnrengelman.shadow" ) version " 5.2.0"
20
20
id(" net.researchgate.release" ) version " 2.8.1"
21
21
id(" io.codearte.nexus-staging" ) version " 0.21.2"
22
+ id(" de.marcphilipp.nexus-publish" ) version " 0.3.0"
22
23
`java- library`
23
24
`maven- publish`
24
25
signing
@@ -63,6 +64,12 @@ nexusStaging {
63
64
packageGroup = " no.nav"
64
65
}
65
66
67
+ nexusPublishing {
68
+ repositories {
69
+ sonatype()
70
+ }
71
+ }
72
+
66
73
publishing {
67
74
publications {
68
75
create<MavenPublication >(" mavenJava" ) {
@@ -111,6 +118,7 @@ publishing {
111
118
password = System .getenv(" GITHUB_TOKEN" )
112
119
}
113
120
}
121
+ /*
114
122
maven {
115
123
name = "Sonatype"
116
124
val releasesRepoUrl = uri("$mavenRepoBaseUrl/service/local/staging/deploy/maven2/")
@@ -120,7 +128,7 @@ publishing {
120
128
username = System.getenv("SONATYPE_USERNAME")
121
129
password = System.getenv("SONATYPE_PASSWORD")
122
130
}
123
- }
131
+ }*/
124
132
}
125
133
}
126
134
@@ -190,7 +198,7 @@ tasks {
190
198
}
191
199
}
192
200
193
- withType<PublishToMavenRepository > {
201
+ /* withType<PublishToMavenRepository> {
194
202
finalizedBy("closeAndReleaseRepository")
195
- }
203
+ }*/
196
204
}
You can’t perform that action at this time.
0 commit comments