File tree Expand file tree Collapse file tree 3 files changed +10
-26
lines changed Expand file tree Collapse file tree 3 files changed +10
-26
lines changed Original file line number Diff line number Diff line change 1- plugins {
2- id(" java" )
3- }
4-
5- group = " io.github.gunkim"
6- version = " 2023.12.03"
7-
8- repositories {
9- mavenCentral()
10- }
11-
12- dependencies {
13- testImplementation(platform(" org.junit:junit-bom:5.10.0" ))
14- testImplementation(" org.junit.jupiter:junit-jupiter" )
15- testImplementation(" org.assertj:assertj-core:3.25.3" )
16- }
17-
18- tasks.test {
19- useJUnitPlatform()
20- }
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ val groupName: String by project
66val projectVersion: String by project
77
88plugins {
9+ java
910 kotlin(" jvm" )
1011 id(" org.jlleitschuh.gradle.ktlint" )
1112}
@@ -20,13 +21,18 @@ allprojects {
2021}
2122
2223subprojects {
24+ apply (plugin = " java" )
2325 apply (plugin = " kotlin" )
2426 apply (plugin = " org.jlleitschuh.gradle.ktlint" )
2527
2628 tasks {
2729 withType<KotlinCompile > {
2830 kotlinOptions.jvmTarget = jvmVersion
2931 }
32+ withType<JavaCompile > {
33+ sourceCompatibility = jvmVersion
34+ targetCompatibility = jvmVersion
35+ }
3036 test {
3137 useJUnitPlatform()
3238 }
@@ -36,5 +42,9 @@ subprojects {
3642 }
3743 dependencies {
3844 testImplementation(" io.kotest:kotest-runner-junit5:5.6.1" )
45+ testImplementation(platform(" org.junit:junit-bom:5.11.3" ))
46+ testImplementation(" org.junit.jupiter:junit-jupiter" )
47+ testImplementation(" org.mockito:mockito-core:5.14.2" )
48+ testImplementation(" org.assertj:assertj-core:3.26.3" )
3949 }
4050}
Original file line number Diff line number Diff line change 1- dependencies {
2- testImplementation(platform(" org.junit:junit-bom:5.11.3" ))
3- testImplementation(" org.junit.jupiter:junit-jupiter" )
4- testImplementation(" org.mockito:mockito-core:5.14.2" )
5- testImplementation(" org.assertj:assertj-core:3.26.3" )
6- }
You can’t perform that action at this time.
0 commit comments