Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/12.x-1.20' into 14.x-1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Oct 26, 2024
2 parents 106896b + d0acdea commit a8b69f3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,17 @@ publishing {
publication.artifactId = rootProject.name + "-" + projectName + "-fabric"
project.afterEvaluate {
def project = project(":" + projectName)
publication.artifact(project.fakeJar) { classifier null }
def normalArtifact, sourceArtifact
publication.artifact(project.fakeJar) { classifier null; normalArtifact = it }
def remapSourcesJarTask = project.remapSourcesJar
publication.artifact(remapSourcesJarTask) {
builtBy remapSourcesJarTask
classifier "sources"
sourceArtifact = it
}

// Hack to inherit the dependencies without inheriting the artifacts
publication.setArtifacts(publication.artifacts)
from components.java
publication.setArtifacts([normalArtifact, sourceArtifact])
}
}
}
Expand Down
7 changes: 4 additions & 3 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,16 @@ publishing {
project.afterEvaluate {
def project = project(":" + projectName)
remapSrg.inputFile = project.fakeForgeJar.archiveFile
publication.artifact(remapSrg) { classifier null }
def normalArtifact, sourceArtifact
publication.artifact(remapSrg) { classifier null; normalArtifact = it }
publication.artifact(remapSrgSourcesJar) {
builtBy remapSrgSourcesJar
classifier "sources"
sourceArtifact = it
}

// Hack to inherit the dependencies without inheriting the artifacts
publication.setArtifacts(publication.artifacts)
from components.java
publication.setArtifacts([normalArtifact, sourceArtifact])
}
}
}
Expand Down
7 changes: 4 additions & 3 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,16 @@ publishing {
project.afterEvaluate {
def project = project(":" + projectName)
remapMojang.inputFile = project.fakeForgeJar.archiveFile
publication.artifact(remapMojang) { classifier null }
def normalArtifact, sourceArtifact
publication.artifact(remapMojang) { classifier null; normalArtifact = it }
publication.artifact(remapMojangSourcesJar) {
builtBy remapMojangSourcesJar
classifier "sources"
sourceArtifact = it
}

// Hack to inherit the dependencies without inheriting the artifacts
publication.setArtifacts(publication.artifacts)
from components.java
publication.setArtifacts([normalArtifact, sourceArtifact])
}
}
}
Expand Down

0 comments on commit a8b69f3

Please sign in to comment.