add genRunConfigs task, add property for easier game jar discovery in dev
All checks were successful
Publish to snapshot maven / build (push) Successful in 18s
All checks were successful
Publish to snapshot maven / build (push) Successful in 18s
This commit is contained in:
parent
5840712e5e
commit
e76e6f263d
|
@ -1,6 +1,7 @@
|
|||
package org.ecorous.esnesnon.gradle
|
||||
|
||||
import net.fabricmc.fernflower.api.IFabricJavadocProvider
|
||||
import org.ecorous.esnesnon.gradle.run.RunConfigGenerator
|
||||
import org.ecorous.esnesnon.gradle.vineflower.ParchmentJavadocProvider
|
||||
import org.ecorous.esnesnon.nonsense_remapper.provider.ParchmentProvider
|
||||
import org.gradle.api.Plugin
|
||||
|
@ -90,6 +91,13 @@ class NonsenseGradlePlugin : Plugin<Project> {
|
|||
}
|
||||
}
|
||||
|
||||
project.task("genRunConfigs").apply {
|
||||
doFirst {
|
||||
group = "nonsense"
|
||||
RunConfigGenerator.generate(project)
|
||||
}
|
||||
}
|
||||
|
||||
// TODO mod relocation/renaming: decide on mod file extension
|
||||
/*project.tasks.getByName("jar").actions.addLast {
|
||||
it.outputs.files.forEach {file ->
|
||||
|
|
|
@ -44,7 +44,11 @@ object RunConfigGenerator {
|
|||
project,
|
||||
"Minecraft ${env.pascalName}",
|
||||
"org.ecorous.esnesnon.nonsense.loader.impl.launch.client.Nonsense${env.pascalName}",
|
||||
arrayOf("-Dnonsense.development=true", "-Dlog4j.configurationFile=$assetPath"),
|
||||
arrayOf(
|
||||
"-Dnonsense.development=true",
|
||||
"-Dnonsense.plugin.minecraft.gameJar=${NonsenseGradlePlugin.remappedGameJarPath}",
|
||||
"-Dlog4j.configurationFile=$assetPath"
|
||||
),
|
||||
arrayOf(
|
||||
"--assetDir", assetPath.toString(),
|
||||
"--version", "Nonsense",
|
||||
|
|
Loading…
Reference in a new issue