Skip to content

Commit 123a9dc

Browse files
update Gradle version and publishing setup
1 parent 33f8555 commit 123a9dc

File tree

5 files changed

+21
-14
lines changed

5 files changed

+21
-14
lines changed

build.gradle

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plugins {
1313
defaultTasks 'build'
1414
build.dependsOn 'distZip'
1515

16-
version = '2.5'
16+
version = '2.6-SNAPSHOT'
1717
group = 'de.bottlecaps.rr'
1818

1919
def project_name = "$project.name"
@@ -230,13 +230,10 @@ void configureMetadata(MavenPublication mavenPublication) {
230230
publishing {
231231
repositories {
232232
maven {
233-
def releaseRepo = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
234-
def snapshotRepo = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
233+
name = 'local'
234+
def releaseRepo = layout.buildDirectory.dir('repo/releases')
235+
def snapshotRepo = layout.buildDirectory.dir('repo/snapshots')
235236
url = isReleaseVersion ? releaseRepo : snapshotRepo
236-
credentials {
237-
username = project.hasProperty('ossrhUsername') ? ossrhUsername : "Unknown user"
238-
password = project.hasProperty('ossrhPassword') ? ossrhPassword : "Unknown password"
239-
}
240237
}
241238
}
242239

@@ -259,6 +256,16 @@ signing {
259256
sign publishing.publications.jar
260257
sign publishing.publications.war
261258
}
259+
262260
tasks.withType(Sign) {
263261
onlyIf { isReleaseVersion }
264-
}
262+
}
263+
264+
tasks.register('createBundle', Zip) {
265+
dependsOn 'publishAllPublicationsToLocalRepository'
266+
from publishing.repositories.local.url
267+
archiveFileName = "${project.name}-${project.version}-bundle.zip"
268+
destinationDirectory = layout.buildDirectory.dir('bundles')
269+
}
270+
271+
publish.finalizedBy createBundle

gradle/wrapper/gradle-wrapper.jar

181 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ case "$( uname )" in #(
114114
NONSTOP* ) nonstop=true ;;
115115
esac
116116

117-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
117+
CLASSPATH="\\\"\\\""
118118

119119

120120
# Determine the Java command to use to start the JVM.
@@ -205,15 +205,15 @@ fi
205205
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
206206

207207
# Collect all arguments for the java command:
208-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209209
# and any embedded shellness will be escaped.
210210
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211211
# treated as '${Hostname}' itself on the command line.
212212

213213
set -- \
214214
"-Dorg.gradle.appname=$APP_BASE_NAME" \
215215
-classpath "$CLASSPATH" \
216-
org.gradle.wrapper.GradleWrapperMain \
216+
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
217217
"$@"
218218

219219
# Stop when "xargs" is not available.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ goto fail
7070
:execute
7171
@rem Setup the command line
7272

73-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73+
set CLASSPATH=
7474

7575

7676
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
77+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7878

7979
:end
8080
@rem End local scope for the variables with windows NT shell

0 commit comments

Comments
 (0)