mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-24 12:16:28 +01:00
57 lines
1.1 KiB
Groovy
57 lines
1.1 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.1"
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id "com.github.johnrengelman.shadow" version "4.0.4"
|
|
id 'io.freefair.lombok' version '5.3.0'
|
|
}
|
|
|
|
println """
|
|
*******************************************
|
|
You are building SKCraft Launcher!
|
|
|
|
Output files will be in [subproject]/build/libs
|
|
*******************************************
|
|
"""
|
|
|
|
subprojects {
|
|
apply plugin: 'java'
|
|
apply plugin: 'maven'
|
|
|
|
group = 'com.skcraft'
|
|
version = '4.5-SNAPSHOT'
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
if (JavaVersion.current().isJava8Compatible()) {
|
|
// Java 8 turns on doclint which we fail
|
|
tasks.withType(Javadoc) {
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaExec) {
|
|
workingDir = new File(rootDir, "run/")
|
|
workingDir.mkdirs()
|
|
}
|
|
}
|
|
|
|
task clean {
|
|
subprojects {
|
|
rootProject.clean.dependsOn tasks.matching { it.name == "clean" }
|
|
}
|
|
}
|