forked from MinecraftForge/ForgeFlower
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
60 lines (49 loc) · 1.47 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url = 'https://files.minecraftforge.net/maven/'}
}
dependencies {
classpath 'net.minecraftforge:gitpatcher:0.10.+'
classpath 'org.eclipse.jgit:org.eclipse.jgit:5.10.0.202012080955-r'
}
}
apply plugin: 'net.minecraftforge.gitpatcher'
patches {
submodule = 'FernFlower'
target = file('ForgeFlower')
patches = file('FernFlower-Patches')
}
allprojects {
group = 'net.minecraftforge' //put it under us for now, because this is a unofficial mirrior
version = '0.2.2'
tasks.withType(JavaCompile) {
options.encoding = 'utf-8'
}
}
project(':ForgeFlower') {
apply from: rootProject.file('fernflower.gradle')
compileJava.dependsOn rootProject.tasks.applyPatches
}
project(':ForgeFlower9') {
apply plugin: 'java'
apply plugin: 'eclipse'
sourceSets {
java9.java.srcDirs = ['../ForgeFlower/java9']
}
eclipse {
project {
name 'FernFlower9'
linkedResource name: 'java9', type: '2', location: project(':ForgeFlower').file('java9').getAbsolutePath()
}
}
dependencies {
implementation project(':ForgeFlower')
}
java.toolchain {
languageVersion = JavaLanguageVersion.of(9)
}
}
if (tasks.findByName('eclipse') == null) tasks.create('eclipse')
tasks.findByName('eclipse').dependsOn('applyPatches', 'ForgeFlower:eclipse', 'ForgeFlower9:eclipse')