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,6 @@ sourceSets {
|
||||
|
||||
publish()
|
||||
|
||||
val jar: Jar by tasks
|
||||
|
||||
runtimeJar(rewriteDepsToShadedCompiler(jar))
|
||||
runtimeJar(rewriteDefaultJarDepsToShadedCompiler())
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
|
||||
@@ -50,7 +50,7 @@ publish()
|
||||
|
||||
noDefaultJar()
|
||||
|
||||
runtimeJar(task<ShadowJar>("shadowJar")) {
|
||||
runtimeJar(tasks.register<ShadowJar>("shadowJar")) {
|
||||
from(mainSourceSet.output)
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ publish()
|
||||
|
||||
noDefaultJar()
|
||||
|
||||
runtimeJar(task<ShadowJar>("shadowJar")) {
|
||||
runtimeJar(tasks.register<ShadowJar>("shadowJar")) {
|
||||
from(mainSourceSet.output)
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ fun Project.codegenTest(
|
||||
target: Int, jvm: String, jdk: String,
|
||||
targetInTestClass: String = "$target",
|
||||
body: Test.() -> Unit
|
||||
): Test = projectTest("codegenTarget${targetInTestClass}Jvm${jvm}Test") {
|
||||
): TaskProvider<Test> = projectTest("codegenTarget${targetInTestClass}Jvm${jvm}Test") {
|
||||
dependsOn(":dist")
|
||||
workingDir = rootDir
|
||||
|
||||
|
||||
Reference in New Issue
Block a user