Skip to content

Commit 00d2667

Browse files
committed
Publish: Shuffle some build properties around for publishing
1 parent ac3ff98 commit 00d2667

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

build.gradle

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ dependencies {
175175

176176
// Example for how to get properties into the manifest for reading by the runtime..
177177
jar {
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-
196193
task apiJar(type: Jar) {
197194
// Sources included because of MinecraftForge/ForgeGradle#369
198195
from(sourceSets.main.allJava)
@@ -209,10 +206,16 @@ artifacts {
209206
publishing {
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 {

0 commit comments

Comments
 (0)