forked from DynamicTreesTeam/DynamicTrees-BOP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (68 loc) · 1.53 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
74
75
76
77
78
79
80
81
82
83
buildscript {
repositories {
maven {
url = "https://maven.minecraftforge.net"
}
}
dependencies {
classpath("com.anatawa12.forge:ForgeGradle:2.3-1.0.+") {
changing = true
}
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
repositories {
maven {
name = "Curse Maven"
url "https://www.cursemaven.com"
}
}
configurations {
provided
shade
compile.extendsFrom shade
}
idea {
module {
scopes.PROVIDED.plus += [configurations.provided]
}
}
jar {
configurations.shade.each { dep ->
from(project.zipTree(dep)) {
exclude 'META-INF', 'META-INF/**'
}
}
from sourceSets.api.output
}
version = "${mc_version}-${mod_version}"
group = package_group
archivesBaseName = mod_name
sourceCompatibility = targetCompatibility = '1.8'
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
minecraft {
version = "${mc_version}-${forge_version}"
runDir = "run"
replace "1.12.2-9999.9999.9999z", project.version
replaceIn "ModConstants.java"
makeObfSourceJar = false
if (project.hasProperty('mappings_version'))
mappings = project.mappings_version
}
dependencies {
deobfCompile "curse.maven:biomes-o-plenty-220318:2842510"
deobfCompile "curse.maven:dramatictrees-637540:4398759"
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version':project.version, 'mcversion':project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}