Build: Add maven publication for Kotlin plugin artifacts
This commit is contained in:
@@ -3,7 +3,7 @@ import java.util.regex.Pattern.quote
|
||||
description = "Kotlin IDEA plugin"
|
||||
|
||||
plugins {
|
||||
`java-base`
|
||||
java
|
||||
}
|
||||
|
||||
repositories {
|
||||
@@ -116,6 +116,7 @@ val gradleToolingModel by configurations.creating
|
||||
|
||||
val libraries by configurations.creating {
|
||||
extendsFrom(gradleToolingModel)
|
||||
exclude("org.jetbrains.intellij.deps", "trove4j") // Idea already has trove4j
|
||||
}
|
||||
|
||||
val jpsPlugin by configurations.creating
|
||||
@@ -124,8 +125,6 @@ configurations.all {
|
||||
resolutionStrategy {
|
||||
preferProjectModules()
|
||||
}
|
||||
|
||||
exclude("org.jetbrains.intellij.deps", "trove4j") // Idea already has trove4j
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -154,11 +153,16 @@ dependencies {
|
||||
gradleToolingModel(project(":allopen-ide-plugin")) { isTransitive = false }
|
||||
|
||||
jpsPlugin(project(":kotlin-jps-plugin")) { isTransitive = false }
|
||||
|
||||
|
||||
(libraries.dependencies + gradleToolingModel.dependencies)
|
||||
.map { if (it is ProjectDependency) it.dependencyProject else it }
|
||||
.forEach(::compile)
|
||||
}
|
||||
|
||||
val jar = runtimeJar {
|
||||
from("$rootDir/resources/kotlinManifest.properties")
|
||||
archiveName = "kotlin-plugin.jar"
|
||||
archiveFileName.set("kotlin-plugin.jar")
|
||||
}.get() // make it eager to avoid corresponding refactorings in the kotlin-ultimate part for now
|
||||
|
||||
val ideaPluginDir: File by rootProject.extra
|
||||
@@ -178,3 +182,5 @@ tasks.register<Sync>("ideaPlugin") {
|
||||
rename(quote("-$version"), "")
|
||||
rename(quote("-$bootstrapKotlinVersion"), "")
|
||||
}
|
||||
|
||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
||||
|
||||
Reference in New Issue
Block a user