Flywheel/build.gradle
2024-05-17 08:43:56 -07:00

39 lines
1.1 KiB
Groovy

plugins {
id 'eclipse'
id 'idea'
// make sure gradle loads the same arch plugin across all subprojects
id 'dev.architectury.loom' apply false
}
println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}"
subprojects {
boolean dev = System.getenv('RELEASE') == null || System.getenv('RELEASE').equalsIgnoreCase('false');
ext.buildNumber = System.getenv('BUILD_NUMBER')
group = 'com.jozufozu.flywheel'
version = mod_version + (dev && buildNumber != null ? "-${buildNumber}" : '')
tasks {
// make builds reproducible
withType(AbstractArchiveTask).configureEach {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
// module metadata is often broken on multi-platform projects
withType(GenerateModuleMetadata).configureEach {
enabled = false
}
}
}
idea {
// Tell IDEA to always download sources/javadoc artifacts from maven.
module {
downloadJavadoc = true
downloadSources = true
}
}