File tree Expand file tree Collapse file tree 2 files changed +26
-26
lines changed Expand file tree Collapse file tree 2 files changed +26
-26
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
- id ' java'
2
+ id ' java-library '
3
3
}
4
4
5
5
repositories {
6
6
mavenCentral()
7
7
}
8
8
9
+ dependencies {
10
+ testImplementation ' com.algolia:algoliasearch:{{packageVersion}}'
11
+ }
12
+
9
13
java {
10
14
toolchain {
11
- languageVersion = JavaLanguageVersion.of({{languageVersion } } )
15
+ languageVersion = JavaLanguageVersion.of(17 )
12
16
vendor = JvmVendorSpec.ADOPTIUM
13
17
}
14
18
}
15
19
16
- dependencies {
17
- testImplementation ' com.algolia:algoliasearch:{{packageVersion}}'
18
- testImplementation ' org.junit.jupiter:junit-jupiter:5.11.1'
19
- testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
20
- testImplementation ' org.skyscreamer:jsonassert:1.5.3'
21
- testImplementation ' com.fasterxml.jackson.core:jackson-core:2.18.0'
22
- testImplementation ' io.github.cdimascio:dotenv-java:2.3.2' // use an old version to support java 8
23
- }
24
-
25
20
tasks.withType(JavaCompile) {
26
21
options.encoding = ' UTF-8'
27
22
}
28
-
29
- test() {
30
- systemProperty " file.encoding" , " UTF-8"
31
- useJUnitPlatform()
32
- testLogging {
33
- events " passed" , " skipped" , " failed"
34
- showStandardStreams = true
35
- }
36
- }
Original file line number Diff line number Diff line change 1
1
plugins {
2
- id ' java-library '
2
+ id ' java'
3
3
}
4
4
5
5
repositories {
6
6
mavenCentral()
7
7
}
8
8
9
- dependencies {
10
- testImplementation ' com.algolia:algoliasearch:{{packageVersion}}'
11
- }
12
-
13
9
java {
14
10
toolchain {
15
- languageVersion = JavaLanguageVersion.of(17 )
11
+ languageVersion = JavaLanguageVersion.of({{languageVersion } } )
16
12
vendor = JvmVendorSpec.ADOPTIUM
17
13
}
18
14
}
19
15
16
+ dependencies {
17
+ testImplementation ' com.algolia:algoliasearch:{{packageVersion}}'
18
+ testImplementation ' org.junit.jupiter:junit-jupiter:5.11.1'
19
+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
20
+ testImplementation ' org.skyscreamer:jsonassert:1.5.3'
21
+ testImplementation ' com.fasterxml.jackson.core:jackson-core:2.18.0'
22
+ testImplementation ' io.github.cdimascio:dotenv-java:2.3.2' // use an old version to support java 8
23
+ }
24
+
20
25
tasks.withType(JavaCompile) {
21
26
options.encoding = ' UTF-8'
22
27
}
28
+
29
+ test() {
30
+ systemProperty " file.encoding" , " UTF-8"
31
+ useJUnitPlatform()
32
+ testLogging {
33
+ events " passed" , " skipped" , " failed"
34
+ showStandardStreams = true
35
+ }
36
+ }
You can’t perform that action at this time.
0 commit comments