File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ plugins {
44 id ' signing'
55}
66
7- version = ' 1.9-SNAPSHOT '
7+ version = ' 1.9'
88group = ' de.bottlecaps'
99
1010ext {
@@ -108,13 +108,10 @@ void configureMetadata(MavenPublication mavenPublication) {
108108publishing {
109109 repositories {
110110 maven {
111- def releaseRepo = " https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
112- def snapshotRepo = " https://s01.oss.sonatype.org/content/repositories/snapshots/"
111+ name = ' local'
112+ def releaseRepo = layout. buildDirectory. dir(' repo/releases' )
113+ def snapshotRepo = layout. buildDirectory. dir(' repo/snapshots' )
113114 url = isReleaseVersion ? releaseRepo : snapshotRepo
114- credentials {
115- username = project. hasProperty(' ossrhUsername' ) ? ossrhUsername : " Unknown user"
116- password = project. hasProperty(' ossrhPassword' ) ? ossrhPassword : " Unknown password"
117- }
118115 }
119116 }
120117
@@ -151,3 +148,12 @@ tasks.withType(AbstractPublishToMaven).configureEach {
151148 println " JDK version ${ JavaVersion.current()} is valid for publishing"
152149 }
153150}
151+
152+ tasks. register(' createBundle' , Zip ) {
153+ dependsOn ' publishAllPublicationsToLocalRepository'
154+ from publishing. repositories. local. url
155+ archiveFileName = " ${ project.name} -${ project.version} -bundle.zip"
156+ destinationDirectory = layout. buildDirectory. dir(' bundles' )
157+ }
158+
159+ publish. finalizedBy createBundle
You can’t perform that action at this time.
0 commit comments