File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
src/main/java/net/minecraftforge/gradle/common Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,15 @@ public final void apply(Project arg)
5959 project .getExtensions ().create (Constants .EXT_NAME_JENKINS , JenkinsExtension .class , project );
6060
6161 // repos
62- addMavenRepo ("forge" , "http://files.minecraftforge.net/maven" );
63- project .getRepositories ().mavenCentral ();
64- addMavenRepo ("minecraft" , Constants .LIBRARY_URL );
62+ project .allprojects (new Action <Project >() {
63+ @ Override
64+ public void execute (Project proj )
65+ {
66+ addMavenRepo (proj , "forge" , "http://files.minecraftforge.net/maven" );
67+ proj .getRepositories ().mavenCentral ();
68+ addMavenRepo (proj , "minecraft" , Constants .LIBRARY_URL );
69+ }
70+ });
6571
6672 // after eval
6773 project .afterEvaluate (new Action <Project >() {
@@ -280,9 +286,9 @@ public void applyExternalPlugin(String plugin)
280286 project .apply (map );
281287 }
282288
283- public void addMavenRepo (final String name , final String url )
289+ public void addMavenRepo (Project proj , final String name , final String url )
284290 {
285- project .getRepositories ().maven (new Action <MavenArtifactRepository >() {
291+ proj .getRepositories ().maven (new Action <MavenArtifactRepository >() {
286292 @ Override
287293 public void execute (MavenArtifactRepository repo )
288294 {
You can’t perform that action at this time.
0 commit comments