d2aae67e03
Use dependency helper function that chooses whether to take them from the bootstrap repository or from a configuration of kotlin-test KT-61969
37 lines
821 B
Kotlin
37 lines
821 B
Kotlin
import plugins.KotlinBuildPublishingPlugin.Companion.DEFAULT_MAIN_PUBLICATION_NAME
|
|
import plugins.signLibraryPublication
|
|
|
|
description = "kotlin-gradle-statistics"
|
|
|
|
plugins {
|
|
`java-library`
|
|
id("org.jetbrains.kotlin.jvm")
|
|
id("jps-compatible")
|
|
`maven-publish`
|
|
}
|
|
|
|
configureKotlinCompileTasksGradleCompatibility()
|
|
configureCommonPublicationSettingsForGradle(signLibraryPublication)
|
|
extensions.extraProperties["kotlin.stdlib.default.dependency"] = "false"
|
|
|
|
dependencies {
|
|
compileOnly(kotlinStdlib())
|
|
|
|
testImplementation(kotlinTest("junit"))
|
|
testImplementation(libs.junit4)
|
|
}
|
|
|
|
projectTest {
|
|
workingDir = rootDir
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
register<MavenPublication>(DEFAULT_MAIN_PUBLICATION_NAME) {
|
|
from(components["java"])
|
|
}
|
|
}
|
|
}
|
|
sourcesJar()
|
|
javadocJar()
|