Anuken / MindustryJavaModTemplate

A template for Java (16-17) Mindustry mods.
142 stars 82 forks source link

Could not find com.github.Anuken.Mindustry:core:v143.1. #21

Closed YaeSakuraQvQ closed 1 year ago

YaeSakuraQvQ commented 1 year ago

I used compileOnly "com.github.Anuken.Mindustry:core:$mindustryVersion" in a forked mod Then I received the following error in the action

> Task :compileJava FAILED
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find com.github.Anuken.Mindustry:core:v143.1.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/github/Anuken/Mindustry/core/v143.1/core-v143.1.pom
       - https://www.jitpack.io/com/github/Anuken/Mindustry/core/v143.1/core-v143.1.pom
     Required by:
         project :

How can I try to fix them, plz

Anuken commented 1 year ago

You're supposed to use MindustryJitpack, not Mindustry as the dependency.

YaeSakuraQvQ commented 1 year ago

Sorry to bother you again, but... Again, similar problem, the following are the full dependencies

dependencies{
    compileOnly "com.github.Anuken.Arc:arc-core:$mindustryVersion"
    compileOnly "com.github.Anuken.MindustryJitpack:core:$mindustryVersion"
    annotationProcessor "com.github.Anuken:jabel:$jabelVersion"
}

How can I fix it, plz

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find com.github.Anuken.Arc:flabel:a0bdca954b.
     Searched in the following locations:
1 actionable task: 1 executed
       - https://repo.maven.apache.org/maven2/com/github/Anuken/Arc/flabel/a0bdca954b/flabel-a0bdca954b.pom
       - https://www.jitpack.io/com/github/Anuken/Arc/flabel/a0bdca954b/flabel-a0bdca954b.pom
     Required by:
         project : > com.github.Anuken.MindustryJitpack:core:v144.1
Anuken commented 1 year ago

Use 144.3 or 144.2 as your dependency, not 144.1.

shuo-liu16 commented 2 months ago

Sorry to bother you, I downloaded the zip, but when building gradle in IDEA, the following error occurred. How should I deal with it? I didn't change anything

MindustryJavaModTemplate-master:main: Could not resolve com.github.Anuken.Arc:flabel:v146.

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html