e0b6d4d917
Currently this leads to an unknown argument warning, but it'll be removed automatically on the next bootstrap.
59 lines
1.2 KiB
Groovy
59 lines
1.2 KiB
Groovy
description = 'Kotlin Test TestNG'
|
|
|
|
apply plugin: 'kotlin-platform-jvm'
|
|
|
|
configureJvm6Project(project)
|
|
ext.javaHome = JDK_17
|
|
|
|
def includeJava9 = BuildPropertiesExtKt.getIncludeJava9(project.kotlinBuildProperties)
|
|
|
|
sourceSets {
|
|
if (includeJava9) {
|
|
java9
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
expectedBy project(':kotlin-test:kotlin-test-annotations-common')
|
|
compile project(':kotlin-test:kotlin-test-jvm')
|
|
compile('org.testng:testng:6.13.1')
|
|
if (includeJava9) {
|
|
java9CompileOnly('org.testng:testng:7.0.0')
|
|
}
|
|
}
|
|
|
|
jar {
|
|
manifestAttributes(manifest, project, 'Test', true)
|
|
if (includeJava9) {
|
|
from sourceSets.java9.output
|
|
}
|
|
}
|
|
|
|
configureSourcesJar()
|
|
configureJavadocJar()
|
|
|
|
compileKotlin {
|
|
kotlinOptions.freeCompilerArgs = [
|
|
"-Xallow-kotlin-package",
|
|
"-Xsuppress-deprecated-jvm-target-warning",
|
|
]
|
|
kotlinOptions.moduleName = project.name
|
|
}
|
|
|
|
compileTestKotlin {
|
|
kotlinOptions.freeCompilerArgs = [
|
|
"-Xallow-kotlin-package",
|
|
"-Xsuppress-deprecated-jvm-target-warning",
|
|
]
|
|
}
|
|
|
|
configureJvmIrBackend(project)
|
|
|
|
if (includeJava9) {
|
|
compileJava9Sources(project, 'kotlin.test.testng')
|
|
}
|
|
|
|
test {
|
|
useTestNG()
|
|
}
|