File tree Expand file tree Collapse file tree 1 file changed +27
-4
lines changed Expand file tree Collapse file tree 1 file changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -129,11 +129,34 @@ publishing {
129
129
}
130
130
}
131
131
132
- if (! project. gradle. startParameter. taskNames. contains(' publishToMavenLocal' )) {
132
+
133
+ jreleaser {
133
134
signing {
134
- sign publishing. publications. mavenJava
135
- if (System . env[' CI' ]) {
136
- useInMemoryPgpKeys(System . env. GPG_PRIVATE_KEY , System . env. GPG_PASSPHRASE )
135
+ active = ' ALWAYS'
136
+ armored = true
137
+ verify = false
138
+ }
139
+ deploy {
140
+ maven {
141
+ mavenCentral {
142
+ ' release-deploy' {
143
+ active = ' RELEASE'
144
+ url = ' https://central.sonatype.com/api/v1/publisher'
145
+ stagingRepository(' build/staging-deploy' )
146
+ }
147
+ }
148
+ nexus2 {
149
+ ' snapshot-deploy' {
150
+ active = ' SNAPSHOT'
151
+ snapshotUrl = ' https://central.sonatype.com/repository/maven-snapshots'
152
+ url = ' https://central.sonatype.com/repository/maven-snapshots'
153
+ applyMavenCentralRules = true
154
+ snapshotSupported = true
155
+ closeRepository = true
156
+ releaseRepository = true
157
+ stagingRepository(' build/staging-deploy' )
158
+ }
159
+ }
137
160
}
138
161
}
139
162
}
You can’t perform that action at this time.
0 commit comments