File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import java.math.BigDecimal
4
4
object Config {
5
5
val AGP = System .getenv(" VERSION_AGP" ) ? : " 8.6.0"
6
6
val kotlinStdLib = " stdlib-jdk8"
7
+ val kotlinTestJunit = " test-junit"
7
8
8
9
object BuildPlugins {
9
10
val androidGradle = " com.android.tools.build:gradle:$AGP "
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ configure<JavaPluginExtension> {
19
19
}
20
20
21
21
tasks.withType<KotlinCompile >().configureEach {
22
- kotlinOptions {
23
- jvmTarget = JavaVersion . VERSION_17 .toString( )
24
- languageVersion = libs.versions. kotlin.compatible.version.get( )
25
- freeCompilerArgs = listOf (" -Xjsr305=strict" )
22
+ compilerOptions {
23
+ jvmTarget.set(org.jetbrains.kotlin.gradle.dsl. JvmTarget . JVM_17 )
24
+ languageVersion.set(org.jetbrains. kotlin.gradle.dsl. KotlinVersion . KOTLIN_2_1 )
25
+ freeCompilerArgs.add (" -Xjsr305=strict" )
26
26
}
27
27
}
28
28
@@ -57,11 +57,11 @@ dependencies {
57
57
// tests
58
58
testImplementation(projects.sentryTestSupport)
59
59
testImplementation(projects.sentryGraphql)
60
- testImplementation(kotlin(Config .kotlinStdLib))
60
+ testImplementation(kotlin(Config .kotlinStdLib, " 2.2.0 " ))
61
61
testImplementation(libs.awaitility.kotlin.spring7)
62
62
testImplementation(libs.context.propagation)
63
63
testImplementation(libs.graphql.java24)
64
- testImplementation(libs. kotlin.test.junit.spring7 )
64
+ testImplementation(kotlin( Config .kotlinTestJunit, " 2.2.0 " ) )
65
65
testImplementation(libs.mockito.kotlin.spring7)
66
66
testImplementation(libs.mockito.inline)
67
67
testImplementation(libs.springboot4.starter.aop)
You can’t perform that action at this time.
0 commit comments