This repository was archived by the owner on Sep 29, 2021. It is now read-only.
forked from Tonius/SimplyJetpacks
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle
113 lines (97 loc) · 3.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
102
103
104
105
106
107
108
109
110
111
112
113
buildscript {
repositories {
jcenter()
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:2.3-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
version = "2.2.14"
def ENV = System.getenv()
if (ENV.BUILD_NUMBER) {
version = version + "." + "${System.getenv().BUILD_NUMBER}"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven {
// location of the maven that hosts JEI files
url "http://dvs1.progwml6.com/files/maven"
}
maven {
name = "ChickenBones Maven"
url = "http://chickenbones.net/maven/"
}
maven {
name = "Covers Maven"
url = "http://maven.covers1624.net"
}
}
dependencies {
// compile against the JEI API
//deobfCompile "mezz.jei:jei_1.10.2:3.14.7.420:api"
// at runtime, use the full JEI jar
//deobfCompile "cofh:RedstoneFlux:1.12-2.0.1.2:universal"
runtime "codechicken:CodeChickenLib:1.12.2-3.2.+:universal"
compile "cofh:CoFHCore:1.12.2-4.6.+:deobf"
runtime "cofh:CoFHWorld:1.12.2-1.2.+:universal"
runtime "cofh:ThermalFoundation:1.12.2-2.6.+:universal"
runtime "cofh:ThermalDynamics:1.12.2-2.5.+:universal"
runtime "cofh:ThermalExpansion:1.12.2-5.5.+:universal"
runtime "cofh:RedstoneArsenal:1.12.2-2.6.+:universal"
compile "cofh:RedstoneFlux:1.12-2.1.+:deobf"
}
minecraft {
version = "1.12.2-14.23.5.2768"
runDir = "run"
// the mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD snapshot are built nightly.
// stable_# stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not allways work.
// simply re-run your setup task after changing the mappings to update your workspace.
mappings = "snapshot_20171003"
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
replaceIn "SimplyJetpacks.java"
replace "@VERSION@", project.version
}
group = "tonius.simplyjetpacks"
archivesBaseName = "SimplyJetpacks2-1.12.2"
processResources {
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'
}
}
//task setUpdateVersion(type: Copy) {
// description 'Creates or updates the version numbers in the update.json'
// onlyIf{
// !tasks.build.state.failure
// }
// from 'update'
// into "update"
// include 'update_template.json'
// rename { file -> 'update.json' }
// expand 'version':project.version, 'mcversion':project.minecraft.version
//
// duplicatesStrategy = 'include'
//}
//tasks.build.finalizedBy(setUpdateVersion)
idea {
module {
inheritOutputDirs = true
}
}