@@ -2,9 +2,9 @@ import com.hierynomus.gradle.license.tasks.LicenseCheck
22import com.hierynomus.gradle.license.tasks.LicenseFormat
33
44plugins {
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'
1818apply plugin : ' checkstyle'
1919apply plugin : ' jacoco'
2020
21- sourceCompatibility = 17
22- targetCompatibility = 17
21+ java {
22+ sourceCompatibility = JavaVersion . VERSION_17
23+ targetCompatibility = JavaVersion . VERSION_17
24+ }
2325
2426repositories {
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-
8785jacocoTestReport {
8886 reports {
8987 xml. required = true
@@ -104,15 +102,15 @@ dependencies {
104102
105103task libs (type : Sync ) {
106104 from configurations. runtimeClasspath
107- into " $b uildDir / 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
114112def 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()
116114def downloadMockJdk (mockJdkLocation , mockJdkDest , mockJdkVersion ) {
117115 def location = mockJdkLocation + mockJdkVersion
118116 def destination = mockJdkDest + mockJdkVersion
0 commit comments