Skip to content

Commit

Permalink
allow overriding of HOME to avoid test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Gyorok authored and Peter Gyorok committed Mar 15, 2022
1 parent 70b4fb7 commit 88839c9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ compileJava {
targetCompatibility = JavaVersion.VERSION_1_8
}

compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"

repositories {
mavenCentral()
}
Expand Down Expand Up @@ -60,6 +57,7 @@ configurations {

test {
useJUnitPlatform()
systemProperty "user.home", System.getProperty("user.home")
}

task integrationTest(type: Test) {
Expand All @@ -71,6 +69,10 @@ task integrationTest(type: Test) {
systemProperty "user.home", System.getProperty("user.home")
}

compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
compileIntTestJava.options.encoding = "UTF-8"

dependencies {
txtmark group: 'com.github.rjeschke', name: 'txtmark', version: '0.13'

Expand Down

0 comments on commit 88839c9

Please sign in to comment.