diff options
author | Roman / Linnea Gräf <roman.graef@gmail.com> | 2022-08-26 13:24:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 21:24:35 +1000 |
commit | dfd2f6b05bce74d7feb5d28e7a388dbb871ecf6a (patch) | |
tree | 001913c4f1dd391831da26e4398f75e6731c88e1 /build.gradle.kts | |
parent | c3845685bbb3a2a7fde25476eed0f788e038dc93 (diff) | |
download | NotEnoughUpdates-dfd2f6b05bce74d7feb5d28e7a388dbb871ecf6a.tar.gz NotEnoughUpdates-dfd2f6b05bce74d7feb5d28e7a388dbb871ecf6a.tar.bz2 NotEnoughUpdates-dfd2f6b05bce74d7feb5d28e7a388dbb871ecf6a.zip |
Of course you have pronouns in pv (#234)
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 581816e2..1e0f4873 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -18,6 +18,8 @@ */ import java.io.ByteArrayOutputStream +import java.nio.charset.StandardCharsets +import java.util.* plugins { idea @@ -178,7 +180,22 @@ tasks.remapJar{ } } +val generateBuildFlags by tasks.creating { + outputs.upToDateWhen { false } + val t = layout.buildDirectory.file("buildflags.properties") + outputs.file(t) + val props = project.properties.filter { (name, value) -> name.startsWith("neu.buildflags.") } + doLast { + val p = Properties() + p.putAll(props) + t.get().asFile.writer(StandardCharsets.UTF_8).use { + p.store(it, "Store build time configuration for NEU") + } + } +} + tasks.processResources { + from(generateBuildFlags) filesMatching("mcmod.info") { expand( "version" to project.version, "mcversion" to "1.8.9" |