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 11plugins {
2- id ' java'
2+ id ' java-library '
33}
44
55repositories {
66 mavenCentral()
77}
88
9+ dependencies {
10+ testImplementation ' com.algolia:algoliasearch:{{packageVersion}}'
11+ }
12+
913java {
1014 toolchain {
11- languageVersion = JavaLanguageVersion.of({{languageVersion } } )
15+ languageVersion = JavaLanguageVersion.of(17 )
1216 vendor = JvmVendorSpec.ADOPTIUM
1317 }
1418}
1519
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-
2520tasks.withType(JavaCompile) {
2621 options.encoding = ' UTF-8'
2722}
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 11plugins {
2- id ' java-library '
2+ id ' java'
33}
44
55repositories {
66 mavenCentral()
77}
88
9- dependencies {
10- testImplementation ' com.algolia:algoliasearch:{{packageVersion}}'
11- }
12-
139java {
1410 toolchain {
15- languageVersion = JavaLanguageVersion.of(17 )
11+ languageVersion = JavaLanguageVersion.of({{languageVersion } } )
1612 vendor = JvmVendorSpec.ADOPTIUM
1713 }
1814}
1915
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+
2025tasks.withType(JavaCompile) {
2126 options.encoding = ' UTF-8'
2227}
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