Flywheel/build.gradle

39 lines
1.1 KiB
Groovy
Raw Normal View History

plugins {
id 'eclipse'
id 'idea'
2024-04-17 21:05:04 +02:00
// 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'}"
2024-04-17 21:05:04 +02:00
subprojects {
boolean dev = System.getenv('RELEASE') == null || System.getenv('RELEASE').equalsIgnoreCase('false');
2024-04-17 21:05:04 +02:00
ext.buildNumber = System.getenv('BUILD_NUMBER')
2024-04-17 21:05:04 +02:00
group = 'com.jozufozu.flywheel'
version = mod_version + (dev && buildNumber != null ? "-${buildNumber}" : '')
2024-04-17 21:05:04 +02:00
tasks {
// make builds reproducible
withType(AbstractArchiveTask).configureEach {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
2024-04-17 21:05:04 +02:00
// 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
}
}