Fixed resources in forge
This commit is contained in:
@@ -47,12 +47,16 @@ build:
|
|||||||
exclude:
|
exclude:
|
||||||
# TODO: There is a lot of duplicate stuff here, try to maybe make it smaller
|
# TODO: There is a lot of duplicate stuff here, try to maybe make it smaller
|
||||||
- fabric/build/libs/*-all.jar
|
- fabric/build/libs/*-all.jar
|
||||||
|
- fabric/build/libs/*-dev.jar
|
||||||
- fabric/build/libs/*-sources.jar
|
- fabric/build/libs/*-sources.jar
|
||||||
- quilt/build/libs/*-all.jar
|
- quilt/build/libs/*-all.jar
|
||||||
|
- quilt/build/libs/*-dev.jar
|
||||||
- quilt/build/libs/*-sources.jar
|
- quilt/build/libs/*-sources.jar
|
||||||
- forge/build/libs/*-all.jar
|
- forge/build/libs/*-all.jar
|
||||||
|
- forge/build/libs/*-dev.jar
|
||||||
- forge/build/libs/*-sources.jar
|
- forge/build/libs/*-sources.jar
|
||||||
- neoforge/build/libs/*-all.jar
|
- neoforge/build/libs/*-all.jar
|
||||||
|
- neoforge/build/libs/*-dev.jar
|
||||||
- neoforge/build/libs/*-sources.jar
|
- neoforge/build/libs/*-sources.jar
|
||||||
expire_in: 14 days
|
expire_in: 14 days
|
||||||
when: always
|
when: always
|
||||||
|
|||||||
+7
-27
@@ -164,13 +164,6 @@ subprojects { p ->
|
|||||||
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
|
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
|
||||||
implementation.extendsFrom common
|
implementation.extendsFrom common
|
||||||
implementation.extendsFrom coreProjects
|
implementation.extendsFrom coreProjects
|
||||||
|
|
||||||
if (findProject(":fabricLike") && p != project(":fabricLike")) {
|
|
||||||
// Shadow fabricLike
|
|
||||||
fabricLike
|
|
||||||
shadowFabricLike
|
|
||||||
implementation.extendsFrom fabricLike
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -267,12 +260,6 @@ subprojects { p ->
|
|||||||
// Common
|
// Common
|
||||||
common(project(":common")) { transitive false }
|
common(project(":common")) { transitive false }
|
||||||
shadowCommon(project(":common")) { transitive false }
|
shadowCommon(project(":common")) { transitive false }
|
||||||
|
|
||||||
// FabricLike
|
|
||||||
if (findProject(":fabricLike") && p != project(":fabricLike")) {
|
|
||||||
fabricLike(project(path: ":fabricLike")) { transitive false }
|
|
||||||
shadowFabricLike(project(path: ":fabricLike")) { transitive false }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -283,11 +270,6 @@ subprojects { p ->
|
|||||||
if (isMinecraftSubProject && p != project(":common")) {
|
if (isMinecraftSubProject && p != project(":common")) {
|
||||||
configurations.push(project.configurations.shadowCommon) // Shadow the common subproject
|
configurations.push(project.configurations.shadowCommon) // Shadow the common subproject
|
||||||
relocate "com.seibel.distanthorizons.common", "loaderCommon.${p.name}.com.seibel.distanthorizons.common" // Move the loader files to a different location
|
relocate "com.seibel.distanthorizons.common", "loaderCommon.${p.name}.com.seibel.distanthorizons.common" // Move the loader files to a different location
|
||||||
|
|
||||||
if (findProject(":fabricLike") && p != project(":fabricLike")) {
|
|
||||||
configurations.push(project.configurations.shadowFabricLike) // Shadow the fabricLike subproject
|
|
||||||
relocate "com.seibel.distanthorizons.fabriclike", "loaderCommon.${p.name}.com.seibel.distanthorizons.fabriclike" // Move the loader files to a different location
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -324,7 +306,13 @@ subprojects { p ->
|
|||||||
|
|
||||||
// Put stuff from gradle.properties into the mod info
|
// Put stuff from gradle.properties into the mod info
|
||||||
processResources {
|
processResources {
|
||||||
def resourceTargets = [ // Location of where to inject the properties
|
// Include all the resources
|
||||||
|
from project(":common").sourceSets.main.resources
|
||||||
|
from project(":core").sourceSets.main.resources
|
||||||
|
from project(":api").sourceSets.main.resources
|
||||||
|
|
||||||
|
// Location of where to inject the properties
|
||||||
|
def resourceTargets = [
|
||||||
// Holds info like git commit
|
// Holds info like git commit
|
||||||
// TODO: For some reason this script doesnt work with the core project
|
// TODO: For some reason this script doesnt work with the core project
|
||||||
"build_info.json",
|
"build_info.json",
|
||||||
@@ -604,14 +592,6 @@ allprojects { p ->
|
|||||||
from project(":common").file("src/main/resources/${accessWidenerVersion}.distanthorizons.accesswidener")
|
from project(":common").file("src/main/resources/${accessWidenerVersion}.distanthorizons.accesswidener")
|
||||||
into(file(p.file("build/resources/main")))
|
into(file(p.file("build/resources/main")))
|
||||||
rename "${accessWidenerVersion}.distanthorizons.accesswidener", "distanthorizons.accesswidener"
|
rename "${accessWidenerVersion}.distanthorizons.accesswidener", "distanthorizons.accesswidener"
|
||||||
|
|
||||||
|
|
||||||
// Move the fabricLike mixin to its different places for each subproject
|
|
||||||
if (findProject(":fabricLike")) {
|
|
||||||
from project(":fabricLike").file("src/main/resources/DistantHorizons.fabricLike.mixins.json")
|
|
||||||
into(file(p.file("build/resources/main")))
|
|
||||||
rename "DistantHorizons.fabricLike.mixins.json", "DistantHorizons." + p.name + ".fabricLike.mixins.json"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task copyCoreResources(type: Copy) {
|
task copyCoreResources(type: Copy) {
|
||||||
|
|||||||
Reference in New Issue
Block a user