@@ -77,7 +77,7 @@ public void moduleIncludes(List<String> names, PlatformIdentifier platform) {
7777 });
7878 }
7979
80- public void common (String name , ModPlatform platform ) {
80+ public void common (String name , PlatformIdentifier platform ) {
8181 Project project = this .getProject ();
8282 DependencyHandler dependencies = project .getDependencies ();
8383
@@ -88,16 +88,16 @@ public void common(String name, ModPlatform platform) {
8888 dependency .setTransitive (false );
8989 dependencies .add ("compileOnly" , dependency );
9090 dependencies .add ("runtimeOnly" , dependency );
91- dependencies .add ("development" + platform .displayName (), dependency );
91+ dependencies .add ("development" + platform .platform (). displayName (), dependency );
9292 }
9393
94- public void shadowBundle (String name , ModPlatform platform ) {
94+ public void shadowBundle (String name , PlatformIdentifier platform ) {
9595 Project project = this .getProject ();
9696 DependencyHandler dependencies = project .getDependencies ();
9797
9898 Dependency dependency = dependencies .project (Map .of (
9999 "path" , ":" + name + "-common" ,
100- "configuration" , "transformProduction" + platform .displayName ()
100+ "configuration" , "transformProduction" + platform .platform (). displayName ()
101101 ));
102102 dependencies .add ("shade" , dependency );
103103 }
0 commit comments