File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,8 @@ dependencies {
175175
176176// Example for how to get properties into the manifest for reading by the runtime..
177177jar {
178+ destinationDir = file(" $rootDir /build-out" )
179+ finalizedBy(' reobfJar' )
178180 manifest {
179181 attributes([
180182 " Specification-Title" : " compactmachines" ,
@@ -188,11 +190,6 @@ jar {
188190 }
189191}
190192
191- jar {
192- destinationDir = file(" $rootDir /build-out" )
193- finalizedBy(' reobfJar' )
194- }
195-
196193task apiJar (type : Jar ) {
197194 // Sources included because of MinecraftForge/ForgeGradle#369
198195 from(sourceSets. main. allJava)
@@ -209,10 +206,16 @@ artifacts {
209206publishing {
210207 publications {
211208 maven(MavenPublication ) {
212- artifact jar
213- artifact apiJar
209+ artifactId = mod_id
210+ artifacts {
211+ artifact jar
212+ artifact(apiJar) {
213+ classifier = " api"
214+ }
215+ }
214216 }
215217 }
218+
216219 repositories {
217220 // GitHub Packages
218221 maven {
You can’t perform that action at this time.
0 commit comments