MinecraftDev
MinecraftDev copied to clipboard
SpongeGradle 2.0.0 is considered outdated
- Minecraft Development plugin for Intellij version: 2021.3-1.5.18-314
- IntelliJ version: 2021.3.2
- Operating system: Ubuntu 20.04.4
- Target platform: SpongeVanilla, SpongeAPI 8
"Minecraft Development" plugin for Intellij generates a convenient runServer task in my project.
This is the log I get after running runServer task with valid plugin project:
01:32:53: Executing 'runServer'...
> Configure project :
SpongePowered Plugin 'GRADLE' Toolset Version '2.0.0'
> Task :compileJava UP-TO-DATE
> Task :writePluginMetadata UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :jar UP-TO-DATE
> Task :runServer
Execution optimizations have been disabled for task ':runServer' to ensure correctness due to the following reasons:
- Type 'org.gradle.api.tasks.JavaExec' property '$1' cannot be resolved: Could not resolve all files for configuration ':spongeRuntime'. Reason: An input file collection couldn't be resolved, making it impossible to determine task inputs. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#unresolvable_input for more details about this problem.
- Type 'org.gradle.api.tasks.JavaExec' property 'classpath' cannot be resolved: Could not resolve all files for configuration ':spongeRuntime'. Reason: An input file collection couldn't be resolved, making it impossible to determine task inputs. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#unresolvable_input for more details about this problem.
Failed to find a java agent!
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':runServer'.
> Could not resolve all files for configuration ':spongeRuntime'.
> Task :runServer FAILED
> Could not find net.minecrell:terminalconsoleappender:1.0.0-SNAPSHOT.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/net/minecrell/terminalconsoleappender/1.0.0-SNAPSHOT/maven-metadata.xml
- https://repo.maven.apache.org/maven2/net/minecrell/terminalconsoleappender/1.0.0-SNAPSHOT/terminalconsoleappender-1.0.0-SNAPSHOT.pom
- https://repo.spongepowered.org/repository/maven-public/net/minecrell/terminalconsoleappender/1.0.0-SNAPSHOT/maven-metadata.xml
- https://repo.spongepowered.org/repository/maven-public/net/minecrell/terminalconsoleappender/1.0.0-SNAPSHOT/terminalconsoleappender-1.0.0-SNAPSHOT.pom
Required by:
project : > org.spongepowered:spongevanilla:1.12-7.0.0-BETA-307
> Could not find org.spongepowered:testplugins:unspecified.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/spongepowered/testplugins/unspecified/testplugins-unspecified.pom
- https://repo.spongepowered.org/repository/maven-public/org/spongepowered/testplugins/unspecified/testplugins-unspecified.pom
Required by:
project : > org.spongepowered:spongevanilla:1.12-7.0.0-BETA-307
> Could not resolve org.spongepowered:mixin:0.6.15-SNAPSHOT.
Required by:
project : > org.spongepowered:spongevanilla:1.12-7.0.0-BETA-307
> No matching variant of org.spongepowered:mixin:0.6.15-SNAPSHOT:20170707.154150-3 was found. The consumer was configured to find a component with a release status, as well as attribute 'org.spongepowered.api-target' with value '8.0.0' but:
- Variant 'compile' capability org.spongepowered:mixin:0.6.15-SNAPSHOT:
- Incompatible because this component declares a component with a integration status and the consumer needed a component with a release status
- Other compatible attribute:
- Doesn't say anything about org.spongepowered.api-target (required '8.0.0')
- Variant 'enforced-platform-compile' capability org.spongepowered:mixin-derived-enforced-platform:0.6.15-SNAPSHOT:
- Incompatible because this component declares a component with a integration status and the consumer needed a component with a release status
- Other compatible attribute:
- Doesn't say anything about org.spongepowered.api-target (required '8.0.0')
- Variant 'enforced-platform-runtime' capability org.spongepowered:mixin-derived-enforced-platform:0.6.15-SNAPSHOT:
- Incompatible because this component declares a component with a integration status and the consumer needed a component with a release status
- Other compatible attribute:
- Doesn't say anything about org.spongepowered.api-target (required '8.0.0')
- Variant 'platform-compile' capability org.spongepowered:mixin-derived-platform:0.6.15-SNAPSHOT:
- Incompatible because this component declares a component with a integration status and the consumer needed a component with a release status
- Other compatible attribute:
- Doesn't say anything about org.spongepowered.api-target (required '8.0.0')
- Variant 'platform-runtime' capability org.spongepowered:mixin-derived-platform:0.6.15-SNAPSHOT:
- Incompatible because this component declares a component with a integration status and the consumer needed a component with a release status
- Other compatible attribute:
- Doesn't say anything about org.spongepowered.api-target (required '8.0.0')
- Variant 'runtime' capability org.spongepowered:mixin:0.6.15-SNAPSHOT:
- Incompatible because this component declares a component with a integration status and the consumer needed a component with a release status
- Other compatible attribute:
- Doesn't say anything about org.spongepowered.api-target (required '8.0.0')
> Could not resolve com.flowpowered:flow-noise:1.0.1-SNAPSHOT.
Required by:
project : > org.spongepowered:spongevanilla:1.12-7.0.0-BETA-307
> No matching variant of com.flowpowered:flow-noise:1.0.1-SNAPSHOT:20170421.012500-12 was found. The consumer was configured to find a component with a release status, as well as attribute 'org.spongepowered.api-target' with value '8.0.0' but:
- Variant 'compile' capability com.flowpowered:flow-noise:1.0.1-SNAPSHOT:
- Incompatible because this component declares a component with a integration status and the consumer needed a component with a release status
- Other compatible attribute:
- Doesn't say anything about org.spongepowered.api-target (required '8.0.0')
- Variant 'enforced-platform-compile' capability com.flowpowered:flow-noise-derived-enforced-platform:1.0.1-SNAPSHOT:
- Incompatible because this component declares a component with a integration status and the consumer needed a component with a release status
- Other compatible attribute:
- Doesn't say anything about org.spongepowered.api-target (required '8.0.0')
- Variant 'enforced-platform-runtime' capability com.flowpowered:flow-noise-derived-enforced-platform:1.0.1-SNAPSHOT:
- Incompatible because this component declares a component with a integration status and the consumer needed a component with a release status
- Other compatible attribute:
- Doesn't say anything about org.spongepowered.api-target (required '8.0.0')
- Variant 'platform-compile' capability com.flowpowered:flow-noise-derived-platform:1.0.1-SNAPSHOT:
- Incompatible because this component declares a component with a integration status and the consumer needed a component with a release status
- Other compatible attribute:
- Doesn't say anything about org.spongepowered.api-target (required '8.0.0')
- Variant 'platform-runtime' capability com.flowpowered:flow-noise-derived-platform:1.0.1-SNAPSHOT:
- Incompatible because this component declares a component with a integration status and the consumer needed a component with a release status
- Other compatible attribute:
- Doesn't say anything about org.spongepowered.api-target (required '8.0.0')
- Variant 'runtime' capability com.flowpowered:flow-noise:1.0.1-SNAPSHOT:
- Incompatible because this component declares a component with a integration status and the consumer needed a component with a release status
- Other compatible attribute:
- Doesn't say anything about org.spongepowered.api-target (required '8.0.0')
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 11s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings
Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
5 actionable tasks: 1 executed, 4 up-to-date
01:33:05: Execution finished 'runServer'.
Under further inquiry from the maintainer of SpongeGradle, it turns out that I use an "outdated SpongeGradle version".
All it took to get stuff working is changing 2.0.0 to 2.0.1, and it done like a charm:
plugins {
`java-library`
id("org.spongepowered.gradle.plugin") version "2.0.1"
}
I should warn that API version of SpongeAPI being targetted is 8, so it may be not a requirement for older versions to run smoothly.
Nevertheless, I think that few templates here could use some updating: