forked from DavidGoldman/NBTEdit
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
60 lines (51 loc) · 1.39 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
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
}
}
repositories {
mavenCentral()
maven {
name = "sonatype"
url 'http://oss.sonatype.org/content/repositories/snapshots'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
version = "1.10.2-2.0.0"
group= "com.mcf.davidee.nbtedit"
archivesBaseName = "NBTEdit"
sourceCompatibility = 1.7
targetCompatibility = 1.7
idea { module { inheritOutputDirs = true } }
minecraft {
version = "1.10.2-12.18.1.2011"
runDir = "run"
mappings = "snapshot_20160518"
//makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
}
task deobfJar(type: Jar) {
from sourceSets.main.output
appendix = 'deobf'
}
tasks.build.dependsOn('sourceJar', 'deobfJar')
processResources {
from (sourceSets.main.resources.srcDirs) {
include '**/*.info'
expand 'version':project.version, 'mcversion':project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) { exclude '**/*.info' }
}
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}