-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
38 lines (32 loc) · 931 Bytes
/
build.gradle
File metadata and controls
38 lines (32 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
plugins {
id 'java-library'
id 'eclipse'
id 'com.gtnewhorizons.retrofuturagradle' version '1.4.0'
}
group = "com.forgeessentials.permissionapi"
version = "1.0.0"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
// Azul covers the most platforms for Java 8 toolchains, crucially including MacOS arm64
vendor.set(JvmVendorSpec.AZUL)
}
// Generate sources and javadocs jars when building and publishing
withSourcesJar()
withJavadocJar()
}
minecraft {
mcVersion = '1.7.10'
username = 'Developer'
injectedTags.put 'VERSION', project.version
}
injectTags {
outputClassName.set("${project.group}.Tags")
}
processResources {
def projVersion = project.version.toString() // Needed for configuration cache to work
inputs.property("version", projVersion)
filesMatching("mcmod.info") {
expand("modVersion": projVersion)
}
}