Skip to content

Commit

Permalink
Fixed gradle naming stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucraft committed Jun 29, 2024
1 parent 8d504a8 commit ba1ffa0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
22 changes: 4 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ subprojects {
apply plugin: 'architectury-plugin'
apply plugin: 'maven-publish'

base {
archivesName = rootProject.archives_name
}

repositories {
exclusiveContent {
forRepository {
Expand Down Expand Up @@ -60,22 +64,4 @@ subprojects {
tasks.withType(JavaCompile).configureEach {
it.options.release = 17
}

// Configure Maven publishing.
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = base.archivesName.get()
from components.java
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
}
1 change: 1 addition & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ shadowJar {

remapJar {
input.set shadowJar.archiveFile
archiveClassifier = "fabric"
}

sourceSets.main.resources {
Expand Down
1 change: 1 addition & 0 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ shadowJar {

remapJar {
input.set shadowJar.archiveFile
archiveClassifier = "forge"
}

publishing {
Expand Down

0 comments on commit ba1ffa0

Please sign in to comment.