check if the extension is applied
All checks were successful
Publish to snapshot maven / build (push) Successful in 19s
All checks were successful
Publish to snapshot maven / build (push) Successful in 19s
This commit is contained in:
parent
08234fc63d
commit
daee0d93b7
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue