Future-MC icon indicating copy to clipboard operation
Future-MC copied to clipboard

Maven repository

Open MusicMaestro123 opened this issue 4 years ago • 10 comments

Just wondering if there was a repository so I could make an addon to this mod!

MusicMaestro123 avatar Jun 24 '20 17:06 MusicMaestro123

There is not a maven repo at the moment but you can use the curse maven repository like I do with several mods in my project. Add this to your build.gradle:

repositories {
    maven {
        name = 'CurseForge'
        url = 'https://minecraft.curseforge.com/api/maven/'
    }
    // future mc depends on Shadowfacts' Forgelin
    maven {
        name = 'Forgelin'
        url = 'http://maven.shadowfacts.net/'
    }
}

dependencies {
    // name "future-mc" can be replaced by whatever you want
    // all that matters is the file id after it (can be found at end of file link at cf)
    // '2976806' corresponds to Future MC 1.12.2 0.2.3.2 from 
    // https://www.curseforge.com/minecraft/mc-mods/future-mc/files/2976806
    compile 'curse.maven:future-mc:2976806'
    // forgelin
    compile 'net.shadowfacts:Forgelin:1.8.4'
}

thedarkcolour avatar Jun 25 '20 04:06 thedarkcolour

Although a majority of Future MC is written in Kotlin, I do provide a few Java classes in thedarkcolour.futuremc.api for people who do not use Kotlin.

thedarkcolour avatar Jun 25 '20 04:06 thedarkcolour

If you would like me to add more Java API let me know

thedarkcolour avatar Jun 25 '20 18:06 thedarkcolour

Thanks for this it made my day!

MusicMaestro123 avatar Jun 26 '20 14:06 MusicMaestro123

Although there is one thing what is the maven address with curseforge for your mod because you've given me forgelin but not yours and I just wondered what it was. Sorry if I sound rude.

MusicMaestro123 avatar Jun 26 '20 14:06 MusicMaestro123

I gives me the error Could not resolve curse.maven:future-mc: 2976806 also I had to change implementation to compile for it to work and I am putting this here for people having that error

MusicMaestro123 avatar Jun 26 '20 14:06 MusicMaestro123

I'll change my original comment to use "compile"

thedarkcolour avatar Jun 29 '20 05:06 thedarkcolour

If you'd like to see more usages of the curse maven repository the build.gradle of FutureMC has many examples of it

thedarkcolour avatar Jun 29 '20 06:06 thedarkcolour

Still have an error when trying to add depency

Could not resolve: curse.maven:future-mc:2976806

stevesloven avatar Oct 09 '20 21:10 stevesloven

Still have an error when trying to add depency

Could not resolve: curse.maven:future-mc:2976806

I gives me the error Could not resolve curse.maven:future-mc: 2976806 also I had to change implementation to compile for it to work and I am putting this here for people having that error

You guys still having that issue?

Macleykun avatar Nov 27 '21 12:11 Macleykun