Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Jul 10, 2024
1 parent 47b9769 commit bcef33e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ sourceSets {
}
}

sourceCompatibility = 21
java {
sourceCompatibility = JavaVersion.VERSION_21
}

project.buildDir = 'target'
project.layout.buildDirectory = 'target'

repositories {
mavenCentral()
Expand Down Expand Up @@ -73,9 +75,9 @@ dependencies {

// this is needed for spock to find all the source code in the var directory
task copyGlobalLibVars (type: Copy) {
from "$rootDir/vars"
from layout.projectDirectory.dir("vars")
include '**/*.groovy'
into "$buildDir/classes/vars"
into layout.buildDirectory.dir("classes/vars")
}

compileTestGroovy {
Expand Down

0 comments on commit bcef33e

Please sign in to comment.