mirror of
https://github.com/FabricMC/fabric.git
synced 2025-03-13 16:53:35 -04:00
Add license to client only entries for client modules. (#2683)
(cherry picked from commit eed73ed20d
)
This commit is contained in:
parent
9d081d647b
commit
d12c5477ae
1 changed files with 12 additions and 2 deletions
14
build.gradle
14
build.gradle
|
@ -9,7 +9,7 @@ plugins {
|
|||
id "eclipse"
|
||||
id "idea"
|
||||
id "maven-publish"
|
||||
id "fabric-loom" version "1.0.7" apply false
|
||||
id "fabric-loom" version "1.0.12" apply false
|
||||
id "com.diffplug.spotless" version "6.11.0"
|
||||
id "org.ajoberstar.grgit" version "3.1.0"
|
||||
id "com.matthewprenger.cursegradle" version "1.4.0"
|
||||
|
@ -248,12 +248,22 @@ allprojects {
|
|||
archiveClassifier = "testmod"
|
||||
}
|
||||
|
||||
[jar, testmodJar, sourcesJar].each {
|
||||
[jar, sourcesJar].each {
|
||||
it.from(rootProject.file("LICENSE")) {
|
||||
rename { "${it}-${project.archivesBaseName}"}
|
||||
}
|
||||
}
|
||||
|
||||
if (file("src/client").exists() && !file("src/main").exists()) {
|
||||
remapJar {
|
||||
additionalClientOnlyEntries.add("LICENSE-${project.archivesBaseName}")
|
||||
}
|
||||
|
||||
remapSourcesJar {
|
||||
additionalClientOnlyEntries.add("LICENSE-${project.archivesBaseName}")
|
||||
}
|
||||
}
|
||||
|
||||
task remapTestmodJar(type: net.fabricmc.loom.task.RemapJarTask, dependsOn: testmodJar) {
|
||||
input = testmodJar.archiveFile
|
||||
archiveClassifier = "testmod"
|
||||
|
|
Loading…
Reference in a new issue