Skip to content

Commit aa21ca2

Browse files
committed
fix gradle warnings
1 parent c45a7af commit aa21ca2

File tree

4 files changed

+20
-22
lines changed

4 files changed

+20
-22
lines changed

compiler/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jar {
6969

7070
test {
7171
useJUnitPlatform()
72-
jvmArgs('-Xshare:off')
72+
jvmArgs "-Xshare:off"
7373
testLogging {
7474
events('failed')
7575
}

examples/build.gradle

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,30 @@
11
plugins {
2-
id 'java'
2+
id 'java'
33
}
44

55
repositories {
6-
mavenCentral()
7-
}
8-
9-
java {
10-
toolchain {
11-
languageVersion = JavaLanguageVersion.of(17)
12-
}
6+
mavenCentral()
137
}
148

159
compileJava {
16-
options.encoding = 'UTF-8'
17-
sourceCompatibility = '17'
18-
targetCompatibility = '17'
10+
options.encoding = 'UTF-8'
11+
sourceCompatibility = '17'
12+
targetCompatibility = '17'
1913
}
2014

2115
dependencies {
22-
def jbock = project(':jbock')
23-
implementation(jbock)
24-
annotationProcessor project(':compiler')
25-
annotationProcessor project(':jbock')
26-
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.1'
16+
def jbock = project(':jbock')
17+
implementation(jbock)
18+
annotationProcessor project(':compiler')
19+
annotationProcessor project(':jbock')
20+
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.2'
21+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
2722
}
2823

2924
test {
30-
useJUnitPlatform()
31-
testLogging {
32-
events 'failed'
33-
}
25+
useJUnitPlatform()
26+
jvmArgs "-Xshare:off"
27+
testLogging {
28+
events 'failed'
29+
}
3430
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

jbock/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ dependencies {
2929
api('io.github.jbock-java:either:1.5.2')
3030
testImplementation('org.mockito:mockito-core:5.14.2')
3131
testImplementation('org.junit.jupiter:junit-jupiter:5.11.2')
32+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
3233
}
3334

3435
jar {
@@ -41,6 +42,7 @@ jar {
4142

4243
test {
4344
useJUnitPlatform()
45+
jvmArgs "-Xshare:off"
4446
testLogging {
4547
events('failed')
4648
}

0 commit comments

Comments
 (0)