The root build eagerly resolved :eternalcombat-plugin's shadowJar task during configuration which caused a "Task with name 'shadowJar' not found" failure when the subproject had not yet created the task.
Description
Replace the eager project(":eternalcombat-plugin").tasks.named("shadowJar") usage with a lazy wiring that uses project(":eternalcombat-plugin"), declares dependsOn(":eternalcombat-plugin:shadowJar"), and copies the produced JAR from the plugin project's build/libs via pluginProject.provider { pluginProject.layout.buildDirectory.file("libs/EternalCombat-${pluginProject.version}.jar").get().asFile } so the artifact is resolved at execution time.
Testing
Ran ./gradlew clean build eclipse --warning-mode all, which no longer fails during early shadowJar lookup but is now blocked later by the environment lacking a Java 17 toolchain required by the project; this demonstrates the original error is fixed.
Ran java -version and ./gradlew -version to inspect the environment and Gradle launcher, both commands executed successfully.
### Motivation
- The root build eagerly resolved `:eternalcombat-plugin`'s `shadowJar` task during configuration which caused a "Task with name 'shadowJar' not found" failure when the subproject had not yet created the task.
### Description
- Replace the eager `project(":eternalcombat-plugin").tasks.named("shadowJar")` usage with a lazy wiring that uses `project(":eternalcombat-plugin")`, declares `dependsOn(":eternalcombat-plugin:shadowJar")`, and copies the produced JAR from the plugin project's `build/libs` via `pluginProject.provider { pluginProject.layout.buildDirectory.file("libs/EternalCombat-${pluginProject.version}.jar").get().asFile }` so the artifact is resolved at execution time.
### Testing
- Ran `./gradlew clean build eclipse --warning-mode all`, which no longer fails during early `shadowJar` lookup but is now blocked later by the environment lacking a Java 17 toolchain required by the project; this demonstrates the original error is fixed.
- Ran `java -version` and `./gradlew -version` to inspect the environment and Gradle launcher, both commands executed successfully.
------
[Codex Task](https://chatgpt.com/codex/tasks/task_e_69c11d91936c832f947f82d8b8dcf710)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Motivation
:eternalcombat-plugin'sshadowJartask during configuration which caused a "Task with name 'shadowJar' not found" failure when the subproject had not yet created the task.Description
project(":eternalcombat-plugin").tasks.named("shadowJar")usage with a lazy wiring that usesproject(":eternalcombat-plugin"), declaresdependsOn(":eternalcombat-plugin:shadowJar"), and copies the produced JAR from the plugin project'sbuild/libsviapluginProject.provider { pluginProject.layout.buildDirectory.file("libs/EternalCombat-${pluginProject.version}.jar").get().asFile }so the artifact is resolved at execution time.Testing
./gradlew clean build eclipse --warning-mode all, which no longer fails during earlyshadowJarlookup but is now blocked later by the environment lacking a Java 17 toolchain required by the project; this demonstrates the original error is fixed.java -versionand./gradlew -versionto inspect the environment and Gradle launcher, both commands executed successfully.Codex Task