mirror of
https://github.com/LegacyModdingMC/UniMixins.git
synced 2026-11-26 15:12:59 +00:00
14 lines
548 B
Groovy
14 lines
548 B
Groovy
// Stuff that should get set in every module. Because putting it in allprojects
|
|
// doesn't work for some reason!
|
|
|
|
// Set the toolchain version to decouple the Java we run Gradle with from the Java used to compile and run the mod
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(8))
|
|
// Azul covers the most platforms for Java 8 toolchains, crucially including MacOS arm64
|
|
vendor.set(org.gradle.jvm.toolchain.JvmVendorSpec.AZUL)
|
|
}
|
|
// Generate sources and javadocs jars when building and publishing
|
|
withSourcesJar()
|
|
}
|