Gjallarhorn: Timelapse Mode

This commit is contained in:
Kenneth Endfinger
2022-01-07 06:15:26 -05:00
parent cc6fbaae83
commit bc2d3e28ae
26 changed files with 251 additions and 163 deletions

View File

@ -10,6 +10,9 @@ plugins {
id("com.github.johnrengelman.shadow") version "7.1.1" apply false
}
fun Project.isFoundationPlugin() = name.startsWith("foundation-")
fun Project.isFoundationTool() = !isFoundationPlugin()
// Disable the JAR task for the root project.
tasks["jar"].enabled = false
@ -39,7 +42,7 @@ tasks.create("updateManifests") {
writer.use {
val rootPath = rootProject.rootDir.toPath()
val updateManifest = subprojects.mapNotNull { project ->
if (project.name == "foundation-gjallarhorn") {
if (project.isFoundationTool()) {
return@mapNotNull null
}
val files = project.tasks.getByName("shadowJar").outputs
@ -122,7 +125,7 @@ subprojects {
}
}
if (project.name != "foundation-gjallarhorn") {
if (project.isFoundationTool()) {
tasks.withType<ShadowJar> {
archiveClassifier.set("plugin")
}