Add Kotlin Gradle plugins bom
This should help with failed variants selection between different Kotlin Gradle plugins versions. ^KT-54691 In Progress
This commit is contained in:
committed by
Space Team
parent
7d881842b4
commit
b9aac83135
@@ -10,6 +10,8 @@ pill {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(platform(project(":kotlin-gradle-plugins-bom")))
|
||||
|
||||
compileOnly(project(":kotlin-gradle-plugin"))
|
||||
compileOnly(project(":kotlin-compiler-embeddable"))
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ pill {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
commonApi(platform(project(":kotlin-gradle-plugins-bom")))
|
||||
commonApi(project(":kotlin-gradle-plugin-model"))
|
||||
|
||||
commonCompileOnly(project(":kotlin-compiler-embeddable"))
|
||||
|
||||
@@ -10,6 +10,7 @@ pill {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
commonApi(platform(project(":kotlin-gradle-plugins-bom")))
|
||||
commonApi(project(":kotlin-gradle-plugin-model"))
|
||||
|
||||
commonCompileOnly(project(":compiler"))
|
||||
|
||||
@@ -10,6 +10,7 @@ publish()
|
||||
standardPublicJars()
|
||||
|
||||
dependencies {
|
||||
api(platform(project(":kotlin-gradle-plugins-bom")))
|
||||
compileOnly(kotlinStdlib())
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ plugins {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
commonApi(platform(project(":kotlin-gradle-plugins-bom")))
|
||||
commonApi(project(":kotlin-gradle-plugin-annotations"))
|
||||
commonApi(project(":native:kotlin-native-utils"))
|
||||
commonApi(project(":kotlin-project-model"))
|
||||
@@ -31,4 +32,4 @@ tasks {
|
||||
apiBuild {
|
||||
inputJar.value(jar.flatMap { it.archiveFile })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
plugins {
|
||||
id("gradle-plugin-dependency-configuration")
|
||||
id("jps-compatible")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(platform(project(":kotlin-gradle-plugins-bom")))
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ kotlin.sourceSets.all {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
commonApi(platform(project(":kotlin-gradle-plugins-bom")))
|
||||
commonApi(project(":kotlin-gradle-plugin-api"))
|
||||
commonApi(project(":kotlin-gradle-plugin-model"))
|
||||
commonApi(project(":kotlin-tooling-core"))
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
import plugins.signLibraryPublication
|
||||
|
||||
plugins {
|
||||
id("java-platform")
|
||||
id("maven-publish")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
constraints {
|
||||
// kotlin-gradle-plugin-api
|
||||
api(project(":kotlin-gradle-plugin-api"))
|
||||
api(project(":kotlin-gradle-plugin-annotations"))
|
||||
api(project(":kotlin-gradle-plugin-model"))
|
||||
api(project(":native:kotlin-native-utils"))
|
||||
api(project(":kotlin-tooling-core"))
|
||||
|
||||
// plugins
|
||||
api(project(":kotlin-gradle-plugin"))
|
||||
api(project(":atomicfu"))
|
||||
api(project(":kotlin-allopen"))
|
||||
api(project(":kotlin-lombok"))
|
||||
api(project(":kotlin-noarg"))
|
||||
api(project(":kotlin-sam-with-receiver"))
|
||||
api(project(":kotlin-serialization"))
|
||||
api(project(":kotlin-assignment"))
|
||||
}
|
||||
}
|
||||
|
||||
configureCommonPublicationSettingsForGradle(signLibraryPublication)
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("myPlatform") {
|
||||
from(components["javaPlatform"])
|
||||
pom {
|
||||
packaging = "pom"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,9 +6,10 @@ plugins {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
embedded(project(":kotlin-lombok-compiler-plugin")) { isTransitive = false }
|
||||
|
||||
commonApi(platform(project(":kotlin-gradle-plugins-bom")))
|
||||
commonApi(project(":kotlin-gradle-plugin-model"))
|
||||
|
||||
embedded(project(":kotlin-lombok-compiler-plugin")) { isTransitive = false }
|
||||
}
|
||||
|
||||
projectTest(parallel = true)
|
||||
|
||||
@@ -10,6 +10,7 @@ pill {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
commonApi(platform(project(":kotlin-gradle-plugins-bom")))
|
||||
commonApi(project(":kotlin-gradle-plugin-model"))
|
||||
|
||||
commonCompileOnly(project(":compiler"))
|
||||
|
||||
@@ -10,6 +10,7 @@ pill {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
commonApi(platform(project(":kotlin-gradle-plugins-bom")))
|
||||
commonApi(project(":kotlin-gradle-plugin-model"))
|
||||
|
||||
commonCompileOnly(project(":compiler"))
|
||||
|
||||
@@ -10,6 +10,8 @@ pill {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
commonApi(platform(project(":kotlin-gradle-plugins-bom")))
|
||||
|
||||
commonCompileOnly(project(":kotlin-gradle-plugin"))
|
||||
commonCompileOnly(project(":kotlin-compiler-embeddable"))
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ kotlin.sourceSets.configureEach {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(platform(project(":kotlin-gradle-plugins-bom")))
|
||||
compileOnly(kotlinStdlib())
|
||||
testImplementation(project(":kotlin-test:kotlin-test-junit"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user