File tree 4 files changed +45
-14
lines changed 4 files changed +45
-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(
14
+ mapOf (
15
+ " Automatic-Module-Name" to " org.junit.jupiter.api"
16
+ )
17
+ )
18
+ }
19
+ }
20
+ }
21
+
22
+ configurations {
23
+ " apiElements" {
24
+ /*
25
+ * Needed to configure kotlin to work correctly with the "java-library" plugin.
26
+ * See:
27
+ * https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_known_issues
28
+ * https://youtrack.jetbrains.com/issue/KT-18497
29
+ */
30
+ val compileKotlin: KotlinCompile by tasks
31
+ outgoing
32
+ .variants
33
+ .getByName(" classes" )
34
+ .artifact(mapOf (
35
+ " file" to compileKotlin.destinationDir,
36
+ " type" to " java-classes-directory" ,
37
+ " builtBy" to compileKotlin
38
+ ))
39
+ }
40
+ }
41
+
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