Files
kotlin-fork/plugins/assign-plugin/assign-plugin.embeddable/build.gradle.kts
T
Nikolay Krasko f43ad1cb7a Remove packed stdlib from Kotlin compiler plugin artefacts
Remove annotations, kotlin-stdlib-common, kotlin-stdlib.

Packing those libraries is wrong and probably unexpected. It leads to
artifacts size increase. Can be dangerous because of bad classpath.
And also have a reproducibility issue because of caching tricks around
KotlinVersionCurrentValue class.

KTI-942
2022-10-12 13:44:30 +00:00

39 lines
1.1 KiB
Kotlin

import org.gradle.kotlin.dsl.support.serviceOf
description = "Kotlin Assignment Compiler Plugin (Embeddable)"
plugins {
kotlin("jvm")
id("jps-compatible")
}
dependencies {
embedded(project(":kotlin-assignment-compiler-plugin")) { isTransitive = false }
}
sourceSets {
"main" { none() }
"test" { none() }
}
val runtimeJar = runtimeJar(rewriteDefaultJarDepsToShadedCompiler())
val sourcesJar = sourcesJar {
val compilerTask = project(":kotlin-assignment-compiler-plugin").tasks.named<Jar>("sourcesJar")
dependsOn(compilerTask)
val archiveOperations = serviceOf<ArchiveOperations>()
from(compilerTask.map { it.archiveFile }.map { archiveOperations.zipTree(it) })
}
val javadocJar = javadocJar {
val compilerTask = project(":kotlin-assignment-compiler-plugin").tasks.named<Jar>("javadocJar")
dependsOn(compilerTask)
val archiveOperations = serviceOf<ArchiveOperations>()
from(compilerTask.map { it.archiveFile }.map { archiveOperations.zipTree(it) })
}
publish {
artifactId = artifactId.replace(".", "-")
setArtifacts(listOf(runtimeJar, sourcesJar, javadocJar))
}