forked from Powerthegreat/Mine-Trading-Cards-Source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (44 loc) · 1.31 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
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "https://maven.minecraftforge.net/"
}
}
dependencies {
classpath ('com.anatawa12.forge:ForgeGradle:1.2-1.1.+') {
changing = true
}
}
}
apply plugin: 'forge'
version = file('CURRENT_VERSION').text.trim()
group = "com.is.mtc"
archivesBaseName = "MineTradingCards-1.7.10"
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
sourceSets { main { output.resourcesDir = output.classesDirs.singleFile } }
sourceCompatibility = 1.8
targetCompatibility = 1.8
minecraft {
version = "1.7.10-10.13.4.1614-1.7.10"
runDir = "run"
replaceIn 'src/main/java/com/is/mtc/util/Reference.java'
replace '@VERSION@', project.version
}
dependencies {
implementation files("api/VillageNames-1.7.10-4.4.7-deobf.jar")
}
processResources
{
duplicatesStrategy("warn")
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'
}
}