blob: 8e1651ef0294e10bf65b6d6ab7bae4210a2dd053 (
plain)
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
import java.util.concurrent.TimeUnit
buildscript {
repositories {
mavenCentral()
maven {
name = "gt"
url = "https://gregtech.overminddl1.com/"
}
maven {
name = "jitpack"
url = "https://jitpack.io"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
//Defaults to Java 8 & UTF-8 encoding
classpath "com.github.GTNH2:ForgeGradle:FG_1.2-SNAPSHOT"
}
}
plugins {
// project.grgit is not available and the repository we're working in is not
// interacted with:
//id 'org.ajoberstar.grgit' version '4.0.2' apply false
}
apply plugin: 'forge'
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'signing'
apply plugin: 'java-library'
idea {
module {
inheritOutputDirs = true
downloadJavadoc = true
downloadSources = true
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
}
sourceCompatibility = targetCompatibility = 1.8
version = modVersion
group= modGroup
archivesBaseName = modId
minecraft {
version = "${minecraftVersion}-${forgeVersion}-${minecraftVersion}"
runDir = "run"
}
repositories {
jcenter()
maven { // EnderIO & EnderCore
name = 'tterrag Repo'
url = "http://maven.tterrag.com"
}
maven {
name = "CodeChicken"
url = "http://chickenbones.net/maven/"
}
maven {
url = "https://jitpack.io"
}
maven {
name = "ic2"
url = "http://downloads.gtnewhorizons.com/Mods_for_Jenkins/"
}
maven {
name = "appleCore"
url = "http://www.ryanliptak.com/maven/"
}
ivy {
name = "gtnh_download_source"
artifactPattern("http://downloads.gtnewhorizons.com/Mods_for_Jenkins/[module]-[revision].[ext]")
}
maven {
name = "UsrvDE/GTNH"
url = "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases/"
}
maven {
name = "gt"
url = "https://gregtech.overminddl1.com/"
}
}
dependencies {
compile("com.enderio.core:EnderCore:1.7.10-0.1.0.25_beta:dev")
compile("appeng:appliedenergistics2:rv3-beta-22:dev")
compile("com.github.GTNewHorizons:GT5-Unofficial:experimental-SNAPSHOT:dev") {
setChanging(true)
}
/* compileOnly("com.github.GTNewHorizons:Avaritia:master-SNAPSHOT") {
setChanging(true)
}*/
compile files('GT-PlusPlus-1.7.09.GTNH.jar')
compile files('libs/TecTech-1.7.10-4.10.7-b1bcea5f-dev.jar')
compile("com.github.GTNewHorizons:bartworks:master-SNAPSHOT:dev")
compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev")
runtime("eu.usrv:YAMCore:${minecraftVersion}-${yamcoreVersion}:deobf");
}
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 devJar(type: Jar) {
classifier = 'dev'
from sourceSets.main.output
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives(devJar)
archives(sourcesJar)
}
|