This repository has been archived by the owner on May 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
101 lines (85 loc) · 2.2 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
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'
classpath group: 'com.github.rodionmoiseev.gradle.plugins', name: 'idea-utils', version: '0.2'
}
}
import groovy.json.*
configurations {
compile
deployJars
}
apply plugin: 'java'
apply plugin: "forge"
apply plugin: "idea-utils"
group = "net.dries007.tfcnei"
version = "1.5.3"
targetCompatibility = 1.7
sourceCompatibility = 1.7
archivesBaseName = 'TerraFirmaCraftNEIplugin'
def githuborg = 'dries007'
def description = 'TerraFirmaCraft + NEI = <3'
minecraft {
version = "1.7.10-10.13.4.1448-1.7.10"
runDir = "run"
at('lib_jars/tfc_at.cfg')
}
dependencies {
compile fileTree(dir: 'lib_jars', includes: ['*.jar'], excludes: ['*-src*.jar', '*.txt'])
}
if (System.getenv().BUILD_NUMBER != null) version += "." + System.getenv().BUILD_NUMBER
processResources {
from(sourceSets.main.resources.srcDirs) {
include '**/*.info'
expand 'version':project.version, 'mcversion':project.minecraft.version, 'modid':project.archivesBaseName, 'githuborg':githuborg, 'description':description
}
from(sourceSets.main.resources.srcDirs) {
exclude '**/*.info'
}
}
task sourcesJar(type: Jar) {
from "LICENSE.txt"
from sourceSets.main.allSource
classifier = 'src'
appendix = project.minecraft.version
}
task deobfJar(type: Jar) {
from "LICENSE.txt"
from sourceSets.main.output
from (sourceSets.main.allSource.srcDirs) {
include '**/*.java'
}
classifier = 'dev'
appendix = project.minecraft.version
}
jar {
from "LICENSE.txt"
appendix = project.minecraft.version
}
artifacts {
archives jar
archives sourcesJar
archives deobfJar
}
idea {
project {
copyright {
name = 'Modified BSD License'
license = file('LICENSE.txt')
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.2.1'
}