Skip to content

Commit

Permalink
Merge pull request #77 from nordic-institute/gradle-8.12
Browse files Browse the repository at this point in the history
chore: Upgrade Gradle version to 8.12
  • Loading branch information
raits authored Jan 28, 2025
2 parents cea8abb + f6799c0 commit 461e6b7
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 29 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/groovy/catalogservice.java-checks.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

license {
header rootProject.file('LICENSE.txt')
header = rootProject.file('LICENSE.txt')
include "**/*.java"
}

Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
7 changes: 5 additions & 2 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

##############################################################################
#
Expand Down Expand Up @@ -55,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand Down Expand Up @@ -84,7 +86,8 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
2 changes: 2 additions & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
Expand Down
38 changes: 19 additions & 19 deletions xroad-catalog-collector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ plugins {
id 'catalogservice.java-checks'
}

group 'org.niis.xroad.catalog.collector'
sourceCompatibility = 21
targetCompatibility = 21
group = 'org.niis.xroad.catalog.collector'

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

repositories {
mavenCentral()
Expand Down Expand Up @@ -46,7 +49,7 @@ springBoot {
mainClass = 'org.niis.xroad.catalog.collector.CollectorApplication'
}

task wsImport {
tasks.register('wsImport') {
ext.sourcedestdir = layout.buildDirectory.dir("generated-sources/wsimport").get().asFile
ext.destdir = layout.buildDirectory.dir("generated-classes/wsimport").get().asFile
ext.wsdl = "${projectDir}/src/main/resources/schema/metaservices.wsdl"
Expand All @@ -55,21 +58,18 @@ task wsImport {
outputs.dir sourcedestdir

doLast() {
project.ant {
taskdef name: "wsimport", classname: "com.sun.tools.ws.ant.WsImport",
classpath: configurations.wsimport.asPath
mkdir(dir: destdir)
mkdir(dir: sourcedestdir)

wsimport(sourcedestdir: sourcedestdir,
destdir: destdir,
wsdl: wsdl,
wsdllocation: "/schema/metaservices.wsdl",
package: "org.niis.xroad.catalog.collector.wsimport",
keep: "true"
) {
produces(dir: sourcedestdir, includes: "**/*.java")
}
ant.taskdef name: "wsimport", classname: "com.sun.tools.ws.ant.WsImport",
classpath: configurations.wsimport.asPath
ant.mkdir(dir: destdir)
ant.mkdir(dir: sourcedestdir)

ant.wsimport(sourcedestdir: sourcedestdir,
destdir: destdir,
wsdl: wsdl,
wsdllocation: "/schema/metaservices.wsdl",
package: "org.niis.xroad.catalog.collector.wsimport",
keep: "true") {
ant.produces(dir: sourcedestdir, includes: "**/*.java")
}
}
}
Expand Down
9 changes: 6 additions & 3 deletions xroad-catalog-lister/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ plugins {
id 'catalogservice.java-checks'
}

group 'org.niis.xroad.catalog.lister'
sourceCompatibility = 21
targetCompatibility = 21
group = 'org.niis.xroad.catalog.lister'

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

repositories {
mavenCentral()
Expand Down
9 changes: 6 additions & 3 deletions xroad-catalog-persistence/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ plugins {
id 'catalogservice.java-checks'
}

group 'org.niis.xroad.catalog.persistence'
sourceCompatibility = 21
targetCompatibility = 21
group = 'org.niis.xroad.catalog.persistence'

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

repositories {
mavenCentral()
Expand Down

0 comments on commit 461e6b7

Please sign in to comment.