TechReborn / Energy

An Energy API
MIT License
78 stars 13 forks source link

Version 0.1.2 not indexed #8

Closed Freggels closed 3 years ago

Freggels commented 3 years ago

Hello, today i tried to use this library for one of my mods and couldn't get it to work with the latest version (0.1.2). Chaging it to 0.1.1 solved the issue but it seems that 0.1.2 isn't published in any mavon repo or something. (I'm sorry for my weird language).

Steps to reproduce

  1. Create a fabric project (by cloning the example mod)
  2. add the dependencies to teamreborn:energy:0.1.2 so that dependencies in build.gradle look like this:

    dependencies {
    // To change the versions see the gradle.properties file
    minecraft "com.mojang:minecraft:${project.minecraft_version}"
    mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
    modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
    
    // Fabric API. This is technically optional, but you probably want it anyway.
    modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
    
    // PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
    // You may need to force-disable transitiveness on them.
    
    // Energy API
    modApi  'teamreborn:energy:0.1.2'
    include 'teamreborn:energy:0.1.2'
    }

Expected result

This should include the latest version in my project

What actually happens

gradle fails with the following:

A problem occurred configuring root project 'oxidized'.
> Could not resolve all files for configuration ':modCompileClasspath'.
   > Could not find teamreborn:energy:0.1.2.
     Searched in the following locations:
       - file:/home/jules/prg/oxidized/build/loom-cache/energy-0.1.2.jar
       - file:/home/jules/prg/oxidized/build/loom-cache/energy.jar
       - file:/home/jules/prg/oxidized/.gradle/loom-cache/remapped_mods/teamreborn/energy/0.1.2/energy-0.1.2.pom
       - https://maven.fabricmc.net/teamreborn/energy/0.1.2/energy-0.1.2.pom
       - https://libraries.minecraft.net/teamreborn/energy/0.1.2/energy-0.1.2.pom
       - https://repo.maven.apache.org/maven2/teamreborn/energy/0.1.2/energy-0.1.2.pom
       - file:/home/jules/.gradle/caches/fabric-loom/0.1.2/energy-0.1.2.jar
       - file:/home/jules/prg/oxidized/.gradle/loom-cache/0.1.2/energy-0.1.2.jar
     Required by:
         project :
Dunkmania101 commented 3 years ago

I encountered this issue and the mentioned solution too.

Also, the only imperfection I can see in your language is that you misspelled "maven" as "mavon", which isn't even technically a word, so that's really tiny. Good job, especially if the syntax nightmare that is the English language isn't your native language!

modmuss50 commented 3 years ago

A beta for v2 is now on maven.