2015-02-19 06:29:39 +01:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-07-15 04:09:40 +02:00
|
|
|
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.1"
|
2015-02-19 06:29:39 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-15 04:09:40 +02:00
|
|
|
plugins {
|
2021-02-05 05:05:48 +01:00
|
|
|
id "com.github.johnrengelman.shadow" version "4.0.4"
|
|
|
|
id 'io.freefair.lombok' version '5.3.0'
|
2018-07-15 04:09:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
println """
|
|
|
|
*******************************************
|
|
|
|
You are building SKCraft Launcher!
|
|
|
|
|
|
|
|
Output files will be in [subproject]/build/libs
|
|
|
|
*******************************************
|
|
|
|
"""
|
|
|
|
|
2015-02-19 06:29:39 +01:00
|
|
|
subprojects {
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'maven'
|
|
|
|
|
|
|
|
group = 'com.skcraft'
|
2021-02-16 23:20:10 +01:00
|
|
|
version = '4.5-SNAPSHOT'
|
2015-02-19 06:29:39 +01:00
|
|
|
|
2021-02-08 06:48:05 +01:00
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
2015-02-19 06:29:39 +01:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
if (JavaVersion.current().isJava8Compatible()) {
|
|
|
|
// Java 8 turns on doclint which we fail
|
|
|
|
tasks.withType(Javadoc) {
|
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
}
|
|
|
|
}
|
2021-02-08 21:38:49 +01:00
|
|
|
|
|
|
|
tasks.withType(JavaExec) {
|
|
|
|
workingDir = new File(rootDir, "run/")
|
|
|
|
workingDir.mkdirs()
|
|
|
|
}
|
2015-02-19 06:29:39 +01:00
|
|
|
}
|
2021-03-14 19:36:00 +01:00
|
|
|
|
|
|
|
task clean {
|
|
|
|
subprojects {
|
|
|
|
rootProject.clean.dependsOn tasks.matching { it.name == "clean" }
|
|
|
|
}
|
|
|
|
}
|