forked from SKCraft/Launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (44 loc) · 1.23 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
println """
*******************************************
You are building SKCraft Launcher!
Output files will be in [subproject]/build/libs
*******************************************
"""
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.0'
}
}
version = '4.3.5'
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
group = 'com.skcraft'
version = rootProject.version
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
mavenCentral()
maven { url "http://repo.maven.apache.org/maven2" }
}
if (JavaVersion.current().isJava8Compatible()) {
// Java 8 turns on doclint which we fail
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
task createJson(type: Copy) {
from 'launcher.json'
into 'upload'
expand(version: project.version)
}
task packLauncher(type:Exec, dependsOn: [':createJson']) {
workingDir '.'
executable 'pack200'
args '--no-gzip', "upload/${project.version}.jar.pack", "launcher-fancy/build/libs/launcher-fancy-${project.version}-all.jar"
}