check if the extension is applied
All checks were successful
Publish to snapshot maven / build (push) Successful in 19s

This commit is contained in:
moehreag 2024-06-09 17:50:06 +02:00
parent 08234fc63d
commit daee0d93b7

View file

@ -73,6 +73,8 @@ class PhytotelmaPlugin : Plugin<Project> {
PhytotelmaGradleExtensionImpl::class.java
)
project.extensions.findByType(PhytotelmaGradleExtension::class.java) ?: return
project.task("genSources").apply {
group = taskGroup
doFirst {
@ -120,18 +122,18 @@ class PhytotelmaPlugin : Plugin<Project> {
}
}
if (minecraftVersion.isNotEmpty()) {
project.task("genRunConfigs").apply {
group = taskGroup
doFirst {
RunConfigGenerator.generate(project)
}
}
project.tasks.register("runClient", RunGameTask::class.java, Env.CLIENT)
project.tasks.register("runServer", RunGameTask::class.java, Env.SERVER)
project.task("genRunConfigs").apply {
group = taskGroup
doFirst {
RunConfigGenerator.generate(project)
}
}
project.tasks.register("runClient", RunGameTask::class.java, Env.CLIENT)
project.tasks.register("runServer", RunGameTask::class.java, Env.SERVER)
project.task("downloadAssets").apply {
group = taskGroup
doFirst {