EE3 Maven
ViolentNinjaD opened this issue ยท 9 comments
I'm not sure whether this is the right place to ask but is there an ee3 maven repository? I was thinking of creating a mod which integrates with the EE3 EnergyValue stuff and so I wanted to have Gradle compile the EE3 stuff for me, which I'm pretty sure requires a Maven repoistory.
We do - I upload my artifacts to the Forge Maven
https://github.com/pahimar/Equivalent-Exchange-3/blob/master/build.gradle#L163
http://files.minecraftforge.net/maven/
The groupid is ee3 :)
In the build.gradle would I use for example compile ee3:EquivalentExchange3:1.7.10:0.2.345:dev to download the dev jar from the forge maven repository?
Sorry if this is a dumb question, I'm just starting to get into using maven for development :-)
It'll just work, since you have http://files.minecraftforge.net/maven/ by default(to download ForgeGralde, Forge itself etc.)
But it won't automatically grab the ee3 jar for me though so I have to tell gradle to do that in my build file @anti344
The actual groupid is "com.pahimar.ee3" ๐ (https://github.com/pahimar/Equivalent-Exchange-3/blob/master/build.gradle#L45)
Which makes the line you need to build against ee3:
compile "com.pahimar.ee3:EquivalentExchange3:1.7.10-0.2.347:dev".
See: https://github.com/Dynious/RefinedRelocation/blob/master/build.gradle#L63
NOTE: This does not auto-download the file for you when playing in your dev environment! You need to either add it manually once or add it using the build.gradle similar to what pah does for CCC/NEI: https://github.com/pahimar/Equivalent-Exchange-3/blob/master/build.gradle#L152
@Dynious Thanks :)
You are right. I don't know for sure if this works the same for Eclipse, but when running the environment setup (gradle idea/eclipse) Gradle will add the maven dependencies to the libraries in your dev. env. and this means they will run in the dev instance. But as pointed out above, this will break coremod functionality of those mods.
@Dynious Hey, EE3 is not a coremod, so it does not need to be in jar-form in /mods folder(to load the coremod class from manifest file). It shold just exist in your environment, what Gradle is actually doing for you.
So you can just add EE3 as a compile dependency, reload Gralde and EE3 will be in your modlist.