Skip to content

Commit c5ea637

Browse files
committed
Upgrade Gradle to 8.10
1 parent 815011b commit c5ea637

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

build.gradle

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import com.hierynomus.gradle.license.tasks.LicenseCheck
22
import com.hierynomus.gradle.license.tasks.LicenseFormat
33

44
plugins {
5-
id "org.jetbrains.intellij" version "1.16.1"
5+
id "org.jetbrains.intellij" version "1.17.4"
66
id "com.github.hierynomus.license" version "0.16.1"
7-
id "de.undercouch.download" version "5.4.0"
7+
id "de.undercouch.download" version "5.6.0"
88
}
99

1010

@@ -18,8 +18,10 @@ apply plugin: 'license'
1818
apply plugin: 'checkstyle'
1919
apply plugin: 'jacoco'
2020

21-
sourceCompatibility = 17
22-
targetCompatibility = 17
21+
java {
22+
sourceCompatibility = JavaVersion.VERSION_17
23+
targetCompatibility = JavaVersion.VERSION_17
24+
}
2325

2426
repositories {
2527
mavenLocal()
@@ -75,15 +77,11 @@ checkstyle {
7577
toolVersion '8.36.1'
7678
config resources.text.fromUri("https://raw.githubusercontent.com/mapstruct/mapstruct/master/build-config/src/main/resources/build-config/checkstyle.xml")
7779
configProperties = [
78-
'checkstyle.cache.file': rootProject.buildDir.toPath().resolve('checkstyle-cachefile').toString(),
80+
'checkstyle.cache.file': rootProject.layout.buildDirectory.get().asFile.toPath( ).resolve( 'checkstyle-cachefile').toString(),
7981
'basedir': 'https://raw.githubusercontent.com/mapstruct/mapstruct/master/build-config',
8082
]
8183
}
8284

83-
jacoco {
84-
toolVersion "0.8.11"
85-
}
86-
8785
jacocoTestReport {
8886
reports {
8987
xml.required = true
@@ -104,15 +102,15 @@ dependencies {
104102

105103
task libs(type: Sync) {
106104
from configurations.runtimeClasspath
107-
into "$buildDir/libs"
105+
into layout.buildDirectory.dir("libs")
108106
preserve {
109107
include 'mapstruct-intellij-*.jar'
110108
}
111109
rename 'mapstruct-1.5.3.Final.jar', 'mapstruct.jar'
112110
}
113111

114112
def mockJdkLocation = "https://github.com/JetBrains/intellij-community/raw/212.5712/java/mock"
115-
def mockJdkDest = "$buildDir/mock"
113+
def mockJdkDest = layout.buildDirectory.dir("mock").get().asFile.toString()
116114
def downloadMockJdk(mockJdkLocation, mockJdkDest, mockJdkVersion) {
117115
def location = mockJdkLocation + mockJdkVersion
118116
def destination = mockJdkDest + mockJdkVersion
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-8.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)