Lucas
07/12/2018, 6:44 PMbuild.gradle.kts
plugins {
application
id("com.github.johnrengelman.shadow") version "2.0.4"
}
apply {
from("jar.gradle.kts")
}
jar.gradle.kts
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
tasks {
withType<ShadowJar> {}
}
> Configure project :
e: /home/lucas/plugin/jar.gradle.kts:1:12: Unresolved reference: github
e: /home/lucas/plugin/jar.gradle.kts:8:14: Unresolved reference: ShadowJar
FAILURE: Build failed with an exception.
* Where:
Script '/home/lucas/plugin/jar.gradle.kts' line: 1
* What went wrong:
Script compilation errors:
Line 1: import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
^ Unresolved reference: github
Line 8: withType<ShadowJar> {
^ Unresolved reference: ShadowJar
2 errors