@@ -2,9 +2,9 @@ import com.hierynomus.gradle.license.tasks.LicenseCheck
2
2
import com.hierynomus.gradle.license.tasks.LicenseFormat
3
3
4
4
plugins {
5
- id " org.jetbrains.intellij" version " 1.16.1 "
5
+ id " org.jetbrains.intellij" version " 1.17.4 "
6
6
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"
8
8
}
9
9
10
10
@@ -18,8 +18,10 @@ apply plugin: 'license'
18
18
apply plugin : ' checkstyle'
19
19
apply plugin : ' jacoco'
20
20
21
- sourceCompatibility = 17
22
- targetCompatibility = 17
21
+ java {
22
+ sourceCompatibility = JavaVersion . VERSION_17
23
+ targetCompatibility = JavaVersion . VERSION_17
24
+ }
23
25
24
26
repositories {
25
27
mavenLocal()
@@ -75,15 +77,11 @@ checkstyle {
75
77
toolVersion ' 8.36.1'
76
78
config resources. text. fromUri(" https://raw.githubusercontent.com/mapstruct/mapstruct/master/build-config/src/main/resources/build-config/checkstyle.xml" )
77
79
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(),
79
81
' basedir' : ' https://raw.githubusercontent.com/mapstruct/mapstruct/master/build-config' ,
80
82
]
81
83
}
82
84
83
- jacoco {
84
- toolVersion " 0.8.11"
85
- }
86
-
87
85
jacocoTestReport {
88
86
reports {
89
87
xml. required = true
@@ -104,15 +102,15 @@ dependencies {
104
102
105
103
task libs (type : Sync ) {
106
104
from configurations. runtimeClasspath
107
- into " $b uildDir / libs"
105
+ into layout . buildDirectory . dir( " libs" )
108
106
preserve {
109
107
include ' mapstruct-intellij-*.jar'
110
108
}
111
109
rename ' mapstruct-1.5.3.Final.jar' , ' mapstruct.jar'
112
110
}
113
111
114
112
def mockJdkLocation = " https://github.com/JetBrains/intellij-community/raw/212.5712/java/mock"
115
- def mockJdkDest = " $b uildDir / mock"
113
+ def mockJdkDest = layout . buildDirectory . dir( " mock" ) . get() . asFile . toString()
116
114
def downloadMockJdk (mockJdkLocation , mockJdkDest , mockJdkVersion ) {
117
115
def location = mockJdkLocation + mockJdkVersion
118
116
def destination = mockJdkDest + mockJdkVersion
0 commit comments