Remove class path isolation bypass and use loom DSL

This commit is contained in:
Johannes Frohnmeyer 2022-05-16 12:43:21 +00:00
parent 1fdd2ba605
commit 6e6031bb28
1 changed files with 15 additions and 2 deletions

View File

@ -160,9 +160,17 @@ allprojects {
if (project.hasProperty("archives_base_name"))
archivesBaseName = project.archives_base_name
group = project.maven_group
version = "$rootProject.ext.currentVer"
sourceSets {
testmod {
compileClasspath += main.compileClasspath
runtimeClasspath += main.runtimeClasspath
}
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.minecraft_version}+${project.yarn_mappings}:v2"
@ -233,8 +241,13 @@ allprojects {
}
loom {
runConfigs.configureEach {
vmArgs "-Dfabric.debug.classPathIsolationBypassClasses=io/gitlab/jfronny"
project.rootProject.allprojects.each { sub ->
mods.register(sub.name, {
sourceSet sub.sourceSets.main
})
mods.register(sub.name + "-testmod", {
sourceSet sub.sourceSets.testmod
})
}
}
}