@@ -19,6 +19,16 @@ group = mod_group_id
1919
2020repositories {
2121 // Add here additional repositories if required by some of the dependencies below.
22+ maven {
23+ // location of the maven that hosts JEI files since January 2023
24+ name = " Jared's maven"
25+ url = " https://maven.blamejared.com/"
26+ }
27+ maven {
28+ // location of a maven mirror for JEI files, as a fallback
29+ name = " ModMaven"
30+ url = " https://modmaven.dev"
31+ }
2232}
2333
2434base {
@@ -112,27 +122,10 @@ configurations {
112122}
113123
114124dependencies {
115- // Example optional mod dependency with JEI
116- // The JEI API is declared for compile time use, while the full JEI artifact is used at runtime
117- // compileOnly "mezz.jei:jei-${mc_version}-common-api:${jei_version}"
118- // compileOnly "mezz.jei:jei-${mc_version}-neoforge-api:${jei_version}"
119- // We add the full version to localRuntime, not runtimeOnly, so that we do not publish a dependency on it
120- // localRuntime "mezz.jei:jei-${mc_version}-neoforge:${jei_version}"
121-
122- // Example mod dependency using a mod jar from ./libs with a flat dir repository
123- // This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar
124- // The group id is ignored when searching -- in this case, it is "blank"
125- // implementation "blank:coolmod-${mc_version}:${coolmod_version}"
126-
127- // Example mod dependency using a file as dependency
128- // implementation files("libs/coolmod-${mc_version}-${coolmod_version}.jar")
129-
130- // Example project dependency using a sister or child project:
131- // implementation project(":myproject")
132-
133- // For more info:
134- // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
135- // http://www.gradle.org/docs/current/userguide/dependency_management.html
125+ // compile against the JEI API but do not include it at runtime
126+ compileOnly(" mezz.jei:jei-${ minecraft_version} -neoforge-api:${ jei_version} " )
127+ // at runtime, use the full JEI jar for NeoForge
128+ runtimeOnly(" mezz.jei:jei-${ minecraft_version} -neoforge:${ jei_version} " )
136129}
137130
138131// This block of code expands all declared replace properties in the specified resource targets.
0 commit comments