1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-12-06 14:28:05 +00:00

Improve packaging of published jars

- Publish javadoc again: for now this is just the common-api

 - Remove all dependencies from the published Forge jar. This is
   technically not needed (fg.deobf does this anyway), but seems
   sensible.
This commit is contained in:
Jonathan Coates
2022-11-08 16:43:27 +00:00
parent 0908acbe9b
commit 320007dbc6
10 changed files with 56 additions and 20 deletions

View File

@@ -64,11 +64,12 @@ tasks.withType(JavaCompile::class.java).configureEach {
options.encoding = "UTF-8"
}
tasks.jar {
isReproducibleFileOrder = true
tasks.withType(AbstractArchiveTask::class.java).configureEach {
isPreserveFileTimestamps = false
archiveClassifier.set("slim")
isReproducibleFileOrder = true
}
tasks.jar {
manifest {
attributes(
"Specification-Title" to "computercraft",

View File

@@ -95,7 +95,7 @@ class MinecraftConfigurations private constructor(private val project: Project)
// Configure some tasks to include our additional files.
project.tasks.named("javadoc", Javadoc::class.java) {
source += client.allJava
source(client.allJava)
classpath = main.compileClasspath + main.output + client.compileClasspath + client.output
}
// This are already done by Fabric, but we need it for Forge and vanilla. It shouldn't conflict at all.