Files
Yahor Berdnikau b5e36a3c1b Allow to force values in kotlin-compiler-arguments-plugin
Added readme how to use with external projects
2023-03-24 16:40:30 +00:00

37 lines
1007 B
Kotlin

import plugins.KotlinBuildPublishingPlugin
plugins {
id("gradle-plugin-common-configuration")
}
dependencies {
commonApi(project(":kotlin-gradle-plugin-api"))
commonCompileOnly(project(":kotlin-gradle-plugin"))
commonCompileOnly(gradleKotlinDsl())
}
gradlePlugin {
plugins {
create("kotlin-compiler-args-properties") {
id = "org.jetbrains.kotlin.test.kotlin-compiler-args-properties"
displayName = "GradleKotlinCompilerArgumentsPlugin"
description = displayName
implementationClass = "org.jetbrains.kotlin.gradle.arguments.GradleKotlinCompilerArgumentsPlugin"
}
}
}
// Disable releasing for this plugin
// It is not intended to be released publicly
tasks.withType<PublishToMavenRepository>()
.configureEach {
if (name.endsWith("PublicationTo${KotlinBuildPublishingPlugin.REPOSITORY_NAME}Repository")) {
enabled = false
}
}
tasks.named("publishPlugins") {
enabled = false
}