Skip to content

Commit be60012

Browse files
Markup Blitz 1.9
1 parent a2994da commit be60012

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

build.gradle

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
id 'signing'
55
}
66

7-
version = '1.9-SNAPSHOT'
7+
version = '1.9'
88
group = 'de.bottlecaps'
99

1010
ext {
@@ -108,13 +108,10 @@ void configureMetadata(MavenPublication mavenPublication) {
108108
publishing {
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

0 commit comments

Comments
 (0)