Switch many common tasks defined in buildSrc to lazy creation
also refactor some locally defined tasks to the creation avoidance API
This commit is contained in:
@@ -29,8 +29,7 @@ sourceSets {
|
||||
|
||||
publish()
|
||||
|
||||
val jar: Jar by tasks
|
||||
runtimeJar(rewriteDepsToShadedCompiler(jar))
|
||||
runtimeJar(rewriteDefaultJarDepsToShadedCompiler())
|
||||
|
||||
sourcesJar()
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ dependencies {
|
||||
val jar = runtimeJar {
|
||||
from("$rootDir/resources/kotlinManifest.properties")
|
||||
archiveName = "kotlin-plugin.jar"
|
||||
}
|
||||
}.get() // make it eager to avoid corresponding refactorings in the kotlin-ultimate part for now
|
||||
|
||||
val ideaPluginDir: File by rootProject.extra
|
||||
tasks.register<Sync>("ideaPlugin") {
|
||||
|
||||
@@ -12,8 +12,7 @@ dependencies {
|
||||
|
||||
publish()
|
||||
|
||||
val jar: Jar by tasks
|
||||
runtimeJar(rewriteDepsToShadedCompiler(jar))
|
||||
runtimeJar(rewriteDefaultJarDepsToShadedCompiler())
|
||||
|
||||
sourcesJar()
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ publish()
|
||||
noDefaultJar()
|
||||
|
||||
runtimeJar(rewriteDepsToShadedCompiler(
|
||||
task<ShadowJar>("shadowJar") {
|
||||
tasks.register<ShadowJar>("shadowJar") {
|
||||
from(packedJars)
|
||||
}
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user