-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·122 lines (94 loc) · 3.33 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'idea'
apply plugin: 'eclipse'
configurations {
optionalRuntime
runtime.extendsFrom optionalRuntime // optionalRuntime dependencies are downloaded but not exported to POM
}
version = "1.0" // Your mod version
group = "de.maxanier.vampirismapiexample" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "vampirism-api-example"
sourceCompatibility = targetCompatibility = "1.8" // Need this here so eclipse task generates correctly.
compileJava {
sourceCompatibility = targetCompatibility = "1.8"
}
repositories {
//Maven repo for Vampirism
maven {
name = "MaxanierMaven"
url = "https://maxanier.de/maven2"
}
maven {
// location of the maven that hosts JEI files
name = "Progwml6 maven"
url = "http://dvs1.progwml6.com/files/maven"
}
maven {
// location of a maven mirror for JEI files, as a fallback
name = "ModMaven"
url = "modmaven.k-4u.nl"
}
}
dependencies {
minecraft([
group: "net.minecraftforge",
name: "forge",
version: "${project.minecraft_version}-${project.forge_version}"
])
//compile against the Vampirism API
compileOnly fg.deobf("de.teamlapen.vampirism:Vampirism:${minecraft_version}-${vampirism_version}:api")
// Version is taken from gradle.properties
//at runtime (in your development environment) use the full Vampirism jar
runtimeOnly fg.deobf("de.teamlapen.vampirism:Vampirism:${minecraft_version}-${vampirism_version}")
runtimeOnly fg.deobf("de.maxanier.guideapi:Guide-API-VP:1.15.2-2.2.0-beta.1")
}
minecraft {
mappings channel: "${project.mcp_channel}".toString(), version: "${project.mcp_mappings}".toString()
runs {
client {
taskName 'runClient1'
main 'net.minecraftforge.userdev.LaunchTesting'
property 'forge.logging.console.level', 'debug'
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
workingDirectory project.file('run/client1').canonicalPath
mods {
"vampirism-api-example" {
source sourceSets.main
}
}
}
server = {
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
workingDirectory project.file('run/server').canonicalPath
mods {
'vampirism-api-example' {
source sourceSets.main
}
}
}
}
}
processResources {
from(sourceSets.main.resources.srcDirs) {
include 'META-INF/mods.toml'
expand 'version': project.mod_version, 'mcversion': minecraft_version, 'forge_version': forge_version, 'vampirism_version': vampirism_version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'META-INF/mods.toml'
}
outputs.upToDateWhen { false }
exclude '**/Thumbs.db'
}