1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-24 12:16:28 +01:00
SKCraft-Launcher/build.gradle

48 lines
1002 B
Groovy
Raw Normal View History

plugins {
2022-04-26 23:42:15 +02:00
id "com.github.johnrengelman.shadow" version "7.1.2"
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'
group = 'com.skcraft'
2021-09-02 04:25:36 +02:00
version = '4.6-SNAPSHOT'
2022-04-26 23:42:15 +02:00
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(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" }
}
}