forked from MinecraftForge/ForgeFlower
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (39 loc) · 1.26 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url = 'https://files.minecraftforge.net/maven/'}
}
dependencies {
classpath 'net.minecraftforge:gitpatcher:0.10.+'
}
}
plugins {
id 'net.minecraftforge.gradleutils' version '2.+'
}
apply plugin: 'net.minecraftforge.gitpatcher'
patches {
submodule = 'FernFlower'
target = file('ForgeFlower')
patches = file('FernFlower-Patches')
}
group = 'net.minecraftforge' //put it under us for now, because this is a unofficial mirrior
version = gradleutils.getTagOffsetVersion() // The tag should be OurVersion.FernFlowerCommitNumber, ex: 1.5.380
logger.lifecycle("${name} version ${version} - JDK ${System.getProperty("java.version")}")
subprojects {
group = rootProject.group
version = rootProject.version
tasks.withType(JavaCompile) {
options.encoding = 'utf-8'
}
}
project(':ForgeFlower') {
apply from: rootProject.file('fernflower.gradle')
compileJava.dependsOn rootProject.tasks.applyPatches
sourcesJar.dependsOn rootProject.tasks.applyPatches
}
if (tasks.findByName('eclipse') == null) tasks.create('eclipse')
tasks.findByName('eclipse').dependsOn('applyPatches', 'ForgeFlower:eclipse')
changelog {
fromMergeBase()
}