Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle plugin not found #4664

Closed
NEstoll opened this issue Jun 4, 2024 · 3 comments
Closed

Gradle plugin not found #4664

NEstoll opened this issue Jun 4, 2024 · 3 comments

Comments

@NEstoll
Copy link
Contributor

NEstoll commented Jun 4, 2024

Mod Loader

Both Fabric and Forge (I confirm that I have tested both loaders and will specify both loader versions below)

Minecraft Version

N/A

Botania version

1.20.1-445

Modloader version

N/A

Modpack info

No response

The latest.log file

N/A

Issue description

Gradle build fails with the following error.

FAILURE: Build failed with an exception.

* Where:
Build file '/home/estolln/documents/Botania/Xplat/build.gradle' line: 3

* What went wrong:
Plugin [id: 'org.spongepowered.gradle.vanilla', version: '0.2.1-SNAPSHOT'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.spongepowered.gradle.vanilla:org.spongepowered.gradle.vanilla.gradle.plugin:0.2.1-SNAPSHOT')
  Searched in the following repositories:
    Fabric(https://maven.fabricmc.net/)
    QuiltFlower(https://server.bbkr.space/artifactory/libs-release/)
    Gradle Central Plugin Repository
    Sponge Snapshots(https://repo.spongepowered.org/repository/maven-public/)

This happens despite it clearly being available: https://repo.spongepowered.org/#browse/browse:maven-public:org%2Fspongepowered%2Fgradle%2Fvanilla%2Forg.spongepowered.gradle.vanilla.gradle.plugin
I've attached the gradle logs where the error happens here

Steps to reproduce

Clone Botania repository
Run ./gradlew
See above error

Other information

Computer is running Linux (RHEL 8)
Build fails identically when built via command line (./gradlew) and through Intellij
Gradle version is 8.1.1

@TheRealWormbo
Copy link
Collaborator

TheRealWormbo commented Jun 5, 2024

I'm not sure why you keep running into that. Then again, maybe we shouldn't depend on a snapshot dependency.

[edit] Williewillus pointed out the snapshot issue to the VanillaGradle folks last year already, no news since then: SpongePowered/VanillaGradle#106

@TheRealWormbo
Copy link
Collaborator

For the record, two things have happened in this regard, even though they are probably not directly related to the issue encountered here:

  • We updated some dependencies to fix a problem with Xplat no longer compiling after a recent VanillaGradle change. It may be necessary rebasing local feature branches onto at least that change in the 1.20.x branch to be able to compile them.
  • We are currently looking into how viable it is to drop VanillaGradle entirely and instead compile Xplat with the help of "minivan".

@TheRealWormbo
Copy link
Collaborator

This should no longer be happening, as we switched to minivan and can use non-snapshot versions for all parts of the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants