-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (47 loc) · 1.25 KB
/
build.gradle
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
plugins {
id 'java'
id 'java-library'
id 'eclipse'
id 'com.gtnewhorizons.retrofuturagradle' version '1.4.1'
id 'org.jetbrains.gradle.plugin.idea-ext' version '1.1.7'
}
version = "1.0"
group = "com.yourname.modid"
archivesBaseName = "modid"
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()
// withJavadocJar()
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
minecraft {
mcVersion.set('1.12.2')
// MCP Mappings
mcpMappingChannel = 'stable'
mcpMappingVersion = '39'
}
repositories {
maven {
// RetroFuturaGradle
name 'GTNH Maven'
url 'https://nexus.gtnewhorizons.com/repository/public/'
allowInsecureProtocol = true
mavenContent {
includeGroup 'com.gtnewhorizons'
includeGroup 'com.gtnewhorizons.retrofuturagradle'
}
}
mavenLocal() // Must be last for caching to work
}
idea {
module {
inheritOutputDirs = true
}
}