This repository was archived by the owner on Jan 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
71 lines (58 loc) · 1.35 KB
/
Copy pathbuild.gradle
File metadata and controls
71 lines (58 loc) · 1.35 KB
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
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
}
}
apply plugin: 'forge'
if(!mod_version) {
mod_version = "UNKNOWN"
}
ext.build_number = System.getenv("BUILD_NUMBER")
if(build_number) {
version = mod_version + "-" + build_number
} else {
version = mod_version
}
group = "itemrender" // No stupid URL conventions
archivesBaseName = "ItemRender"
ext.mcversion = "1.8"
minecraft {
version = "1.8-11.14.0.1265-1.8"
}
sourceCompatibility = 1.6
targetCompatibility = 1.6
compileJava {
options.debug = true
options.debugOptions.debugLevel = "source,lines,vars"
}
task deobfJar(type: Jar) {
dependsOn classes
from sourceSets.main.output
appendix = 'deobf'
}
artifacts {
archives deobfJar
}
processResources
{
from(sourceSets.main.resources.srcDirs) {
exclude '**/*.png'
exclude '**/*_at.cfg'
expand version: version, mcversion: mcversion
}
from(sourceSets.main.resources.srcDirs) {
include '**/*.png'
include '**/*_at.cfg'
}
}