Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Vol authored Sep 18, 2024
1 parent 5bd5f27 commit 1d1807e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,16 @@ apply from: "gradle/additional-artifacts.gradle"
apply from: "gradle/publishing.gradle"
apply from: "gradle/documentation.gradle"

tasks.withType(JavaCompile) {
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}

tasks.withType(GroovyCompile) {
tasks.withType(GroovyCompile).configureEach {
groovyOptions.encoding = 'UTF-8'
options.encoding = 'UTF-8'
}

tasks.withType(Test) {
if (project.hasProperty('rerun')) {
outputs.upToDateWhen { false }
}
tasks.withType(Test).configureEach {
testLogging {
events 'started', 'passed', 'failed', 'skipped'
}
Expand Down Expand Up @@ -78,8 +75,10 @@ dependencies {
}

ext.compatibilityVersion = '1.8'
sourceCompatibility = compatibilityVersion
targetCompatibility = compatibilityVersion
java {
sourceCompatibility = compatibilityVersion
targetCompatibility = compatibilityVersion
}

// Only add changing data to the manifest when publishing
gradle.taskGraph.whenReady { graph ->
Expand Down

0 comments on commit 1d1807e

Please sign in to comment.