File tree 2 files changed +21
-15
lines changed
2 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 1
- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
1
import org.jlleitschuh.gradle.ktlint.KtlintExtension
3
2
4
- val javaVersion = JavaVersion . VERSION_17
3
+ val javaVersion = JavaLanguageVersion .of( 17 )
5
4
6
5
plugins {
7
6
kotlin(" jvm" ) version " 1.9.10"
@@ -19,6 +18,12 @@ allprojects {
19
18
configure<KtlintExtension > {
20
19
version.set(" 0.50.0" )
21
20
}
21
+
22
+ configurations.all {
23
+ resolutionStrategy {
24
+ failOnNonReproducibleResolution()
25
+ }
26
+ }
22
27
}
23
28
24
29
subprojects {
@@ -28,25 +33,22 @@ subprojects {
28
33
apply (plugin = " maven-publish" )
29
34
apply (plugin = " java-library" )
30
35
36
+ kotlin {
37
+ jvmToolchain(javaVersion.asInt())
38
+ }
39
+
31
40
dependencies {
32
- // Align versions of all Kotlin components
33
- implementation(platform(" org.jetbrains.kotlin:kotlin-bom" ))
34
- implementation(kotlin(" stdlib" ))
35
41
implementation(platform(" org.springframework.boot:spring-boot-dependencies:3.1.3" ))
36
42
testImplementation(" org.junit.jupiter:junit-jupiter" )
37
43
testImplementation(" org.assertj:assertj-core" )
38
44
}
39
45
40
- tasks {
41
- withType<KotlinCompile > {
42
- kotlinOptions.jvmTarget = javaVersion.toString()
43
- }
44
- withType<Jar > {
45
- duplicatesStrategy = DuplicatesStrategy .INCLUDE
46
- }
47
- test {
48
- useJUnitPlatform()
49
- }
46
+ tasks.jar {
47
+ duplicatesStrategy = DuplicatesStrategy .INCLUDE
48
+ }
49
+
50
+ tasks.test {
51
+ useJUnitPlatform()
50
52
}
51
53
52
54
java {
Original file line number Diff line number Diff line change 1
1
rootProject.name = " tilleggsstonader-libs"
2
2
include(" logs" )
3
+
4
+ plugins {
5
+ id(" org.gradle.toolchains.foojay-resolver-convention" ) version " 0.7.0"
6
+ }
You can’t perform that action at this time.
0 commit comments