Misguided attempts at fixing LibJF
This commit is contained in:
parent
44275ec121
commit
8ae2de1f9a
29
jfmod.gradle
29
jfmod.gradle
|
@ -171,6 +171,8 @@ allprojects {
|
|||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||
mappings "net.fabricmc:yarn:${project.minecraft_version}+${project.yarn_mappings}:v2"
|
||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
|
||||
testmodImplementation sourceSets.main.output
|
||||
}
|
||||
|
||||
loom {
|
||||
|
@ -236,15 +238,13 @@ allprojects {
|
|||
}
|
||||
}
|
||||
|
||||
loom {
|
||||
project.rootProject.allprojects.each { sub ->
|
||||
mods.register(sub.name, {
|
||||
sourceSet sub.sourceSets.main
|
||||
})
|
||||
mods.register(sub.name + "-testmod", {
|
||||
sourceSet sub.sourceSets.testmod
|
||||
})
|
||||
}
|
||||
project.rootProject.allprojects.each { sub ->
|
||||
loom.mods.register(sub.name, {
|
||||
sourceSet sub.sourceSets.main
|
||||
})
|
||||
loom.mods.register(sub.name + "-testmod", {
|
||||
sourceSet sub.sourceSets.testmod
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -304,6 +304,14 @@ subprojects {
|
|||
genSources.enabled = false
|
||||
unpickJar.enabled = false
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testmodImplementation sourceSets.main.output
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
testmod
|
||||
}
|
||||
|
||||
void setupRepositories(RepositoryHandler repositories) {
|
||||
|
@ -328,12 +336,13 @@ void setupRepositories(RepositoryHandler repositories) {
|
|||
dependencies {
|
||||
afterEvaluate {
|
||||
subprojects.each {
|
||||
api project(path: ":${it.name}", configuration: "shadow")
|
||||
api project(path: it.path, configuration: "shadow")
|
||||
|
||||
if (!project.hasProperty("dev_only_module") || !(it.name in project.getProperty("dev_only_module").split(", "))) {
|
||||
include it
|
||||
}
|
||||
|
||||
testmodImplementation it.sourceSets.main.output
|
||||
testmodImplementation it.sourceSets.testmod.output
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue