blob: 579624940f24183706d64dd0a4f481d0325de5ec [file] [edit]
description = "Kotlin Assignment Compiler Plugin"
plugins {
kotlin("jvm")
id("java-test-fixtures")
id("project-tests-convention")
id("test-inputs-check")
}
dependencies {
embedded(project(":kotlin-assignment-compiler-plugin.common")) { isTransitive = false }
embedded(project(":kotlin-assignment-compiler-plugin.k1")) { isTransitive = false }
embedded(project(":kotlin-assignment-compiler-plugin.k2")) { isTransitive = false }
embedded(project(":kotlin-assignment-compiler-plugin.cli")) { isTransitive = false }
testFixturesApi(project(":kotlin-assignment-compiler-plugin.cli"))
testFixturesApi(testFixtures(project(":compiler:tests-common-new")))
testFixturesImplementation(testFixtures(project(":compiler:tests-common")))
testFixturesImplementation(libs.junit.jupiter.api)
testFixturesImplementation(testFixtures(project(":generators:test-generator")))
testRuntimeOnly(libs.junit.jupiter.engine)
testRuntimeOnly(toolsJar())
}
optInToExperimentalCompilerApi()
sourceSets {
"main" { none() }
"testFixtures" { projectDefault() }
}
publish()
runtimeJar()
sourcesJar()
javadocJar()
testsJar()
projectTests {
testData(project.isolated, "testData")
testGenerator("org.jetbrains.kotlin.assignment.plugin.TestGeneratorKt", generateTestsInBuildDirectory = true)
withJvmStdlibAndReflect()
withScriptRuntime()
withMockJdkRuntime()
withMockJdkAnnotationsJar()
withTestJar()
testTask(jUnitMode = JUnitMode.JUnit5)
}