This repository was archived by the owner on Jan 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
122 lines (105 loc) · 2.89 KB
/
Copy pathbuild.gradle
File metadata and controls
122 lines (105 loc) · 2.89 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
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'
ext.buildnumber = 0
version = "2.3.1"
group= "fr.mcnanotech.kevin_68"
archivesBaseName = "NanotechMod"
if (System.getenv().BUILD_NUMBER) {
project.buildnumber = System.getenv().BUILD_NUMBER
version += "." + System.getenv().BUILD_NUMBER
}
else {
logger.lifecycle "SETTING BUILDNUMBER TO 0"
}
minecraft {
version = "1.7.10-10.13.0.1199"
runDir = "build"
replace '@VERSION@', project.version
}
sourceSets {
main {
java {
srcDir 'common'
}
resources {
srcDir 'resources'
}
}
}
repositories {
maven {
name = "ic2"
url = "http://maven.ic2.player.to/"
}
maven {
name = "mff"
url = "http://files.minecraftforgefrance.fr/maven/"
}
}
dependencies {
compile 'fr.minecraftforgefrance:FFMT-libs:1.5.0.105-mc1.7.10:dev'
compile 'net.industrial-craft:industrialcraft-2:2.2.508-experimental:dev'
}
processResources
{
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// replace version and mcversion
expand 'version':project.version, 'mcversion':project.minecraft.version
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
jar {
from project.sourceSets.main.output
include "fr/mcnanotech/kevin_68/nanotechmod/main/**"
include "assets/nanotechmod/**"
include "mcmod.info"
appendix = 'core-universal'
version = "${project.version}-mc${project.minecraft.version}"
}
task cityJar(dependsOn: "jar", type: Jar){
from project.sourceSets.main.output
appendix = 'city-universal'
include "fr/mcnanotech/kevin_68/nanotechmod/city/**"
include "assets/nanotechmodcity/**"
version = "${project.version}-mc${project.minecraft.version}"
}
task ugsJar(dependsOn: "jar", type: Jar){
from project.sourceSets.main.output
appendix = 'ugs-universal'
include "fr/mcnanotech/kevin_68/nanotechmod/ultimategravisuite/**"
include "assets/ultimategravisuite/**"
version = "${project.version}-mc${project.minecraft.version}"
}
reobf {
reobf(cityJar) {
reobfSpec -> reobfSpec.classpath = project.sourceSets.main.compileClasspath
}
reobf(ugsJar) {
reobfSpec -> reobfSpec.classpath = project.sourceSets.main.compileClasspath
}
}
artifacts {
archives cityJar
archives ugsJar
}
build.dependsOn ugsJar, cityJar