This repository has been archived by the owner on Aug 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
73 lines (56 loc) · 1.78 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
plugins {
id "com.github.johnrengelman.shadow" version "5.0.0"
id "forgified-fabric-loom" version "0.6.67"
id "java"
id "idea"
}
def ENV = System.getenv()
archivesBaseName = project.archives_base_name
version = "${mod_version}.${ENV.BUILD_NUMBER ?: "custom"}"
group = project.maven_group
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
loom {
silentMojangMappingsLicense()
useFabricMixin = true
mixinConfig "interactio.mixins.json"
}
repositories {
maven {
url "https://www.cursemaven.com"
content {
includeGroup "curse.maven"
}
}
maven {
url = "https://dvs1.progwml6.com/files/maven/"
}
maven {
url = "https://maven.shedaniel.me"
}
}
dependencies {
minecraft("com.mojang:minecraft:${project.minecraft_version}")
mappings(minecraft.officialMojangMappings())
//mappings("de.oceanlabs.mcp:mcp_snapshot:20201028-1.16.3")
forge("net.minecraftforge:forge:${project.minecraft_version}-${project.forge_version}")
modCompile("me.shedaniel:architectury-forge:${architectury_version}")
modCompile("mezz.jei:jei-1.16.4:${jei_version}")
modCompile("curse.maven:kubejs-238086:3189113")
modCompile("curse.maven:rhino-416294:3187177")
modRuntime("curse.maven:top-245211:3157997")
// nullable annoations
compileOnly("com.google.code.findbugs:jsr305:3.+")
}
processResources {
inputs.property "version", project.version
filesMatching("META-INF/mods.toml") {
expand "version": project.version
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
def targetVersion = 8
if (JavaVersion.current().isJava9Compatible()) {
options.release = targetVersion
}
}