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 PhytotelmaGradleExtensionImpl::class.java
) )
project.extensions.findByType(PhytotelmaGradleExtension::class.java) ?: return
project.task("genSources").apply { project.task("genSources").apply {
group = taskGroup group = taskGroup
doFirst { 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.task("genRunConfigs").apply {
project.tasks.register("runServer", RunGameTask::class.java, Env.SERVER) 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 { project.task("downloadAssets").apply {
group = taskGroup group = taskGroup
doFirst { doFirst {