Skip to content

Commit 5df29ed

Browse files
authored
force utf-8 encoding in all exercises build.gradle (exercism#1842)
1 parent a9df42f commit 5df29ed

File tree

120 files changed

+549
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+549
-62
lines changed

_template/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/accumulate/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/acronym/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/affine-cipher/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/all-your-base/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/allergies/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/alphametics/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/anagram/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/armstrong-numbers/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/atbash-cipher/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/bank-account/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
6-
mavenCentral()
10+
mavenCentral()
711
}
812

913
dependencies {
@@ -17,4 +21,4 @@ test {
1721
showStandardStreams = true
1822
events = ["passed", "failed", "skipped"]
1923
}
20-
}
24+
}

exercises/beer-song/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/binary-search-tree/build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
6-
mavenCentral()
10+
mavenCentral()
711
}
812

913
dependencies {
10-
testCompile "junit:junit:4.13"
14+
testCompile "junit:junit:4.13"
1115
testImplementation "org.assertj:assertj-core:3.15.0"
1216
}
1317

@@ -17,4 +21,4 @@ test {
1721
showStandardStreams = true
1822
events = ["passed", "failed", "skipped"]
1923
}
20-
}
24+
}

exercises/binary-search/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
6-
mavenCentral()
10+
mavenCentral()
711
}
812

913
dependencies {
@@ -17,4 +21,4 @@ test {
1721
showStandardStreams = true
1822
events = ["passed", "failed", "skipped"]
1923
}
20-
}
24+
}

exercises/binary/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/bob/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/book-store/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/bowling/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/change/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/circular-buffer/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
6-
mavenCentral()
10+
mavenCentral()
711
}
812

913
dependencies {
@@ -17,4 +21,4 @@ test {
1721
showStandardStreams = true
1822
events = ["passed", "failed", "skipped"]
1923
}
20-
}
24+
}

exercises/clock/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
6-
mavenCentral()
10+
mavenCentral()
711
}
812

913
dependencies {
@@ -17,4 +21,4 @@ test {
1721
showStandardStreams = true
1822
events = ["passed", "failed", "skipped"]
1923
}
20-
}
24+
}

exercises/collatz-conjecture/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
6-
mavenCentral()
10+
mavenCentral()
711
}
812

913
dependencies {
@@ -17,4 +21,4 @@ test {
1721
showStandardStreams = true
1822
events = ["passed", "failed", "skipped"]
1923
}
20-
}
24+
}

exercises/complex-numbers/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/crypto-square/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/custom-set/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
6-
mavenCentral()
10+
mavenCentral()
711
}
812

913
dependencies {
@@ -17,4 +21,4 @@ test {
1721
showStandardStreams = true
1822
events = ["passed", "failed", "skipped"]
1923
}
20-
}
24+
}

exercises/darts/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/diamond/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/difference-of-squares/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}

exercises/diffie-hellman/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apply plugin: "java"
22
apply plugin: "eclipse"
33
apply plugin: "idea"
44

5+
// set default encoding to UTF-8
6+
compileJava.options.encoding = "UTF-8"
7+
compileTestJava.options.encoding = "UTF-8"
8+
59
repositories {
610
mavenCentral()
711
}
@@ -18,4 +22,3 @@ test {
1822
events = ["passed", "failed", "skipped"]
1923
}
2024
}
21-

0 commit comments

Comments
 (0)