Skip to content

Commit 5f32ae7

Browse files
committed
Eliminate build script warnings.
1 parent 4989b60 commit 5f32ae7

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kilo-test/build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
/*
24
* Licensed under the Apache License, Version 2.0 (the "License");
35
* you may not use this file except in compliance with the License.
@@ -40,14 +42,11 @@ compileTestJava {
4042
}
4143

4244
compileTestKotlin {
43-
kotlinOptions {
44-
jvmTarget = 17
45-
}
46-
47-
compilerOptions {
48-
freeCompilerArgs = [
49-
'-java-parameters'
50-
]
45+
kotlin {
46+
compilerOptions {
47+
jvmTarget.set(JvmTarget.JVM_17)
48+
javaParameters.set(true)
49+
}
5150
}
5251
}
5352

publish.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
apply plugin: 'maven-publish'
1616
apply plugin: 'signing'
1717

18-
task sourcesJar(type: Jar) {
18+
tasks.register("sourcesJar", Jar) {
1919
from sourceSets.main.allJava
2020
archiveClassifier = 'sources'
2121
}
2222

23-
task javadocJar(type: Jar) {
23+
tasks.register("javadocJar", Jar) {
2424
from javadoc
2525
archiveClassifier = 'javadoc'
2626
}

0 commit comments

Comments
 (0)