Skip to content
This repository was archived by the owner on Jun 18, 2023. It is now read-only.

Commit b427cdf

Browse files
authored
Update gradle to 7.4.2
1 parent d4481ce commit b427cdf

File tree

7 files changed

+77
-79
lines changed

7 files changed

+77
-79
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: gradle/gradle-build-action@v2
2828

2929
- name: Build
30-
run: ./gradlew build -x signArchives
30+
run: ./gradlew build
3131

3232
- name: Publish package
3333
if: github.ref == 'refs/heads/master'

.github/workflows/build-on-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
uses: gradle/gradle-build-action@v2
2020

2121
- name: Build
22-
run: ./gradlew build -x signArchives
22+
run: ./gradlew build

build.gradle

Lines changed: 38 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -31,88 +31,55 @@ jar {
3131
metaInf { from 'dist/springwolf-ui' into 'resources/springwolf' }
3232
}
3333

34-
task sourcesJar(type: Jar) {
35-
classifier = 'sources'
36-
from sourceSets.main.allSource
37-
}
38-
39-
artifacts {
40-
archives sourcesJar
41-
}
42-
43-
signing {
44-
sign configurations.archives
45-
46-
useInMemoryPgpKeys project.findProperty("SIGNINGKEY"), project.findProperty("SIGNINGPASSWORD")
47-
}
48-
49-
def pomConfig = {
50-
licenses {
51-
license {
52-
name 'The Apache License, Version 2.0'
53-
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
54-
}
55-
}
56-
57-
developers {
58-
developer {
59-
id 'stavshamir'
60-
name 'Stav Shamir'
61-
email 'shamir.stav@gmail.com'
62-
}
63-
}
64-
65-
scm {
66-
url 'https://github.com/springwolf/springwolf-ui'
67-
}
34+
java {
35+
withSourcesJar()
6836
}
6937

7038
publishing {
7139
publications {
7240
mavenJava(MavenPublication) {
73-
artifact jar
74-
75-
artifact sourcesJar {
76-
classifier "sources"
77-
}
41+
from components.java
7842

79-
groupId project.group
8043
artifactId 'springwolf-ui'
44+
groupId project.group
8145
version project.version
82-
pom.withXml {
83-
def root = asNode()
84-
root.appendNode('description', 'Web UI for Springwolf')
85-
root.appendNode('name', 'springwolf-ui')
86-
root.appendNode('url', 'https://github.com/springwolf/springwolf-ui')
87-
root.children().last() + pomConfig
88-
89-
def pomFile = file("${project.buildDir}/generated-pom.xml")
90-
writeTo(pomFile)
91-
92-
def pomAscFile = signing.sign(pomFile).signatureFiles[0]
93-
artifact(pomAscFile) {
94-
classifier = null
95-
extension = 'pom.asc'
46+
47+
pom {
48+
name = 'springwolf-ui'
49+
description = 'Web UI for Springwolf'
50+
url = 'https://springwolf.github.io'
51+
52+
licenses {
53+
license {
54+
name = 'The Apache License, Version 2.0'
55+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
56+
}
9657
}
97-
}
9858

99-
project.tasks.signArchives.signatureFiles.each {
100-
artifact(it) {
101-
def matcher = it.file =~ /-(sources|javadoc)\.jar\.asc$/
102-
if (matcher.find()) {
103-
classifier = matcher.group(1)
104-
} else {
105-
classifier = null
59+
developers {
60+
developer {
61+
id = 'stavshamir'
62+
name = 'Stav Shamir'
63+
email = 'shamir.stav@gmail.com'
64+
}
65+
66+
developer {
67+
id = 'timonback'
68+
name = 'Timon Back'
69+
email = 'timon.back+springwolf@gmail.com'
10670
}
107-
extension = 'jar.asc'
71+
}
72+
73+
scm {
74+
url = 'https://github.com/springwolf/springwolf-ui'
10875
}
10976
}
11077
}
11178
}
11279

11380
repositories {
11481
maven {
115-
def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
82+
def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
11683
def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
11784
url = isSnapshot ? snapshotsRepoUrl : releasesRepoUrl
11885
credentials {
@@ -121,13 +88,12 @@ publishing {
12188
}
12289
}
12390
}
91+
}
12492

125-
model {
126-
tasks.publishMavenJavaPublicationToMavenLocal {
127-
dependsOn project.tasks.signArchives
128-
}
129-
tasks.publishMavenJavaPublicationToMavenRepository {
130-
dependsOn project.tasks.signArchives
131-
}
132-
}
93+
signing {
94+
def signingKey = project.findProperty("SIGNINGKEY")
95+
def signingPassword = project.findProperty("SIGNINGPASSWORD")
96+
useInMemoryPgpKeys(signingKey, signingPassword)
97+
sign publishing.publications.mavenJava
13398
}
99+

gradle/wrapper/gradle-wrapper.jar

-556 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
#!/usr/bin/env sh
22

3+
#
4+
# Copyright 2015 the original author or authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# https://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
319
##############################################################################
420
##
521
## Gradle start up script for UN*X
@@ -28,7 +44,7 @@ APP_NAME="Gradle"
2844
APP_BASE_NAME=`basename "$0"`
2945

3046
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31-
DEFAULT_JVM_OPTS=""
47+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
3248

3349
# Use the maximum available, or set MAX_FD != -1 to use that value.
3450
MAX_FD="maximum"
@@ -109,8 +125,8 @@ if $darwin; then
109125
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110126
fi
111127

112-
# For Cygwin, switch paths to Windows format before running java
113-
if $cygwin ; then
128+
# For Cygwin or MSYS, switch paths to Windows format before running java
129+
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
114130
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115131
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116132
JAVACMD=`cygpath --unix "$JAVACMD"`

gradlew.bat

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
@rem
2+
@rem Copyright 2015 the original author or authors.
3+
@rem
4+
@rem Licensed under the Apache License, Version 2.0 (the "License");
5+
@rem you may not use this file except in compliance with the License.
6+
@rem You may obtain a copy of the License at
7+
@rem
8+
@rem https://www.apache.org/licenses/LICENSE-2.0
9+
@rem
10+
@rem Unless required by applicable law or agreed to in writing, software
11+
@rem distributed under the License is distributed on an "AS IS" BASIS,
12+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
@rem See the License for the specific language governing permissions and
14+
@rem limitations under the License.
15+
@rem
16+
117
@if "%DEBUG%" == "" @echo off
218
@rem ##########################################################################
319
@rem
@@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0
1430
set APP_HOME=%DIRNAME%
1531

1632
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17-
set DEFAULT_JVM_OPTS=
33+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
1834

1935
@rem Find java.exe
2036
if defined JAVA_HOME goto findJavaFromJavaHome

0 commit comments

Comments
 (0)