File tree 4 files changed +43
-14
lines changed 4 files changed +43
-14
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ subprojects { subproj ->
442
442
443
443
kotlin {
444
444
ktlint(" 0.9.0" )
445
- licenseHeaderFile headerText
445
+ licenseHeaderFile headerFile
446
446
trimTrailingWhitespace()
447
447
endWithNewline()
448
448
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import org.gradle.jvm.tasks.Jar
2
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
+
4
+ dependencies {
5
+ " api" (" org.opentest4j:opentest4j:${properties[" ota4jVersion" ]} " )
6
+ " api" (project(" :junit-platform-commons" ))
7
+ compileOnly(" org.jetbrains.kotlin:kotlin-stdlib" )
8
+ }
9
+
10
+ tasks {
11
+ " jar" (Jar ::class ) {
12
+ manifest {
13
+ attributes(mapOf (
14
+ " Automatic-Module-Name" to " org.junit.jupiter.api"
15
+ ))
16
+ }
17
+ }
18
+ }
19
+
20
+ configurations {
21
+ " apiElements" {
22
+ /*
23
+ * Needed to configure kotlin to work correctly with the "java-library" plugin.
24
+ * See:
25
+ * https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_known_issues
26
+ * https://youtrack.jetbrains.com/issue/KT-18497
27
+ */
28
+ val compileKotlin: KotlinCompile by tasks
29
+ outgoing
30
+ .variants
31
+ .getByName(" classes" )
32
+ .artifact(mapOf (
33
+ " file" to compileKotlin.destinationDir,
34
+ " type" to " java-classes-directory" ,
35
+ " builtBy" to compileKotlin
36
+ ))
37
+ }
38
+ }
39
+
Original file line number Diff line number Diff line change @@ -21,5 +21,8 @@ include 'platform-tests'
21
21
// based on the project name
22
22
rootProject. children. each { project ->
23
23
project. buildFileName = " ${ project.name} .gradle"
24
+ if (! project. buildFile. isFile()) {
25
+ project. buildFileName = " ${ project.name} .gradle.kts"
26
+ }
24
27
assert project. buildFile. isFile()
25
28
}
You can’t perform that action at this time.
0 commit comments