Skip to content

Commit

Permalink
Upgrade Gradle to 8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphr committed Sep 21, 2024
1 parent 815011b commit 291d6f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import com.hierynomus.gradle.license.tasks.LicenseCheck
import com.hierynomus.gradle.license.tasks.LicenseFormat

plugins {
id "org.jetbrains.intellij" version "1.16.1"
id "org.jetbrains.intellij" version "1.17.4"
id "com.github.hierynomus.license" version "0.16.1"
id "de.undercouch.download" version "5.4.0"
id "de.undercouch.download" version "5.6.0"
}


Expand All @@ -18,8 +18,10 @@ apply plugin: 'license'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'

sourceCompatibility = 17
targetCompatibility = 17
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

repositories {
mavenLocal()
Expand Down Expand Up @@ -75,7 +77,7 @@ checkstyle {
toolVersion '8.36.1'
config resources.text.fromUri("https://raw.githubusercontent.com/mapstruct/mapstruct/master/build-config/src/main/resources/build-config/checkstyle.xml")
configProperties = [
'checkstyle.cache.file': rootProject.buildDir.toPath().resolve('checkstyle-cachefile').toString(),
'checkstyle.cache.file': rootProject.layout.buildDirectory.get().asFile.toPath( ).resolve( 'checkstyle-cachefile').toString(),
'basedir': 'https://raw.githubusercontent.com/mapstruct/mapstruct/master/build-config',
]
}
Expand Down Expand Up @@ -104,15 +106,15 @@ dependencies {

task libs(type: Sync) {
from configurations.runtimeClasspath
into "$buildDir/libs"
into layout.buildDirectory.dir("libs")
preserve {
include 'mapstruct-intellij-*.jar'
}
rename 'mapstruct-1.5.3.Final.jar', 'mapstruct.jar'
}

def mockJdkLocation = "https://github.com/JetBrains/intellij-community/raw/212.5712/java/mock"
def mockJdkDest = "$buildDir/mock"
def mockJdkDest = layout.buildDirectory.dir("mock").get().asFile.toString()
def downloadMockJdk(mockJdkLocation, mockJdkDest, mockJdkVersion) {
def location = mockJdkLocation + mockJdkVersion
def destination = mockJdkDest + mockJdkVersion
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 291d6f2

Please sign in to comment.