-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
55 lines (47 loc) · 1.45 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
buildscript {
repositories {
jcenter()
maven { url = "https://files.minecraftforge.net/maven" }
}
dependencies {
classpath "net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT"
}
}
plugins {
id "org.ajoberstar.reckon" version "0.9.0"
}
apply plugin: "net.minecraftforge.gradle.forge"
sourceCompatibility = targetCompatibility = 1.8
group = "org.teamrtg"
archivesBaseName = "${project.name}-${project.mc_version}"
reckon {
scopeFromProp()
stageFromProp("dev", "rc", "final")
}
repositories {
maven {
name = "BoP"
url = "https://files.minecraftforge.net/maven"
}
}
dependencies {
provided "com.github.glitchfiend.biomesoplenty:BiomesOPlenty:${project.mc_version}-${project.bop_version}:deobf"
}
minecraft {
version = "${project.mc_version}-${project.mcf_version}"
mappings = project.mcp_mappings
makeObfSourceJar = false
setRunDir "run"
replace "@MOD_VERSION@", project.version as String
replace "@MCF_MINVER@", project.mcf_minver
replace "@BOP_VERSION@", project.bop_version
replaceIn "LonelyBiome.java"
}
processResources {
from(sourceSets.main.resources.srcDirs) {
include "mcmod.info"
expand (["version":project.version as String, "mcversion":project.mc_version])
}
from(sourceSets.main.resources.srcDirs) {exclude "mcmod.info"}
}
jar.manifest.attributes "Maven-Artifact": "${project.group}:${archivesBaseName}:${project.version}"