| import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile | |
| plugins { | |
| id("common-configuration") | |
| id("com.autonomousapps.dependency-analysis") | |
| kotlin("jvm") | |
| } | |
| jvmToolchains { | |
| targetBytecodeVersion = JdkMajorVersion.JDK_1_8 | |
| } | |
| dependencies { | |
| api(kotlinStdlib()) | |
| compileOnly(commonDependency("org.jetbrains.kotlin:kotlin-reflect")) { isTransitive = false } | |
| testImplementation(platform(libs.junit.bom)) | |
| testImplementation(libs.junit.jupiter.api) | |
| testImplementation(libs.junit.jupiter.params) | |
| testRuntimeOnly(libs.junit.jupiter.engine) | |
| testRuntimeOnly(libs.junit.platform.launcher) | |
| } | |
| sourceSets { | |
| "main" { projectDefault() } | |
| "test" { projectDefault() } | |
| } | |
| tasks.withType<KotlinJvmCompile>().configureEach { | |
| compilerOptions.freeCompilerArgs.add("-Xallow-kotlin-package") | |
| } | |
| tasks.test { | |
| useJUnitPlatform() | |
| } | |
| publish() | |
| runtimeJar() | |
| sourcesJar() | |
| javadocJar() |