Skip to content

Commit

Permalink
fix gradle warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
h908714124 committed Nov 17, 2024
1 parent c45a7af commit aa21ca2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion compiler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jar {

test {
useJUnitPlatform()
jvmArgs('-Xshare:off')
jvmArgs "-Xshare:off"
testLogging {
events('failed')
}
Expand Down
36 changes: 16 additions & 20 deletions examples/build.gradle
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
plugins {
id 'java'
id 'java'
}

repositories {
mavenCentral()
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
mavenCentral()
}

compileJava {
options.encoding = 'UTF-8'
sourceCompatibility = '17'
targetCompatibility = '17'
options.encoding = 'UTF-8'
sourceCompatibility = '17'
targetCompatibility = '17'
}

dependencies {
def jbock = project(':jbock')
implementation(jbock)
annotationProcessor project(':compiler')
annotationProcessor project(':jbock')
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.1'
def jbock = project(':jbock')
implementation(jbock)
annotationProcessor project(':compiler')
annotationProcessor project(':jbock')
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
useJUnitPlatform()
testLogging {
events 'failed'
}
useJUnitPlatform()
jvmArgs "-Xshare:off"
testLogging {
events 'failed'
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 2 additions & 0 deletions jbock/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies {
api('io.github.jbock-java:either:1.5.2')
testImplementation('org.mockito:mockito-core:5.14.2')
testImplementation('org.junit.jupiter:junit-jupiter:5.11.2')
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

jar {
Expand All @@ -41,6 +42,7 @@ jar {

test {
useJUnitPlatform()
jvmArgs "-Xshare:off"
testLogging {
events('failed')
}
Expand Down

0 comments on commit aa21ca2

Please sign in to comment.