mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-10 20:45:59 +01:00
39 lines
1.1 KiB
Groovy
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
|
|
}
|
|
}
|