Open TSERATO opened 2 weeks ago
Please check the User Guide before submitting "how do I do 'x'?" questions!
8.1.1
Latest
Compile/Build
"Expression 'shadowJar' cannot be invoked as a function. The function 'invoke()' is not found"
plugins { id("com.github.johnrengelman.shadow") version "8.1.1" id("java") } group = "dev.sandwich.vredirect" version = "1.0.0" repositories { mavenCentral() maven("https://repo.papermc.io/repository/maven-public/") } dependencies { compileOnly("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT") annotationProcessor("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT") implementation("dev.dejvokep:boosted-yaml:1.3.4") } shadowJar { relocate("dev.dejvokep.boostedyaml", "dev.sandwich.vredirect") } java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
jar tf <jar file>
Can't export JAR.
tasks { shadowJar {} }
or
tasks.shadowJar {}
Please check the User Guide before submitting "how do I do 'x'?" questions!
Shadow Version
8.1.1
Gradle Version
Latest
Expected Behavior
Compile/Build
Actual Behavior
"Expression 'shadowJar' cannot be invoked as a function. The function 'invoke()' is not found"
Gradle Build Script(s)
Content of Shadow JAR (
jar tf <jar file>
- post link to GIST if too long)Can't export JAR.