2019-11-02 17:23:48 +01:00
|
|
|
plugins {
|
2019-11-02 17:37:21 +01:00
|
|
|
id 'java'
|
2021-05-16 18:13:30 +02:00
|
|
|
id 'java-library'
|
|
|
|
id 'com.github.johnrengelman.shadow' version '6.1.0'
|
2021-06-08 22:44:55 +02:00
|
|
|
id 'com.github.hierynomus.license' version '0.16.1'
|
2021-06-16 20:09:45 +02:00
|
|
|
id 'com.palantir.git-version' version '0.12.3'
|
2021-09-19 22:08:48 +02:00
|
|
|
id 'com.diffplug.spotless' version '5.14.2'
|
2019-11-02 17:23:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
2021-09-14 16:50:08 +02:00
|
|
|
jcenter()
|
2019-11-02 17:23:48 +01:00
|
|
|
mavenCentral()
|
2020-01-14 23:38:03 +01:00
|
|
|
maven {
|
2019-11-02 17:23:48 +01:00
|
|
|
url 'https://jitpack.io'
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name 'sponge'
|
2021-02-01 13:43:36 +01:00
|
|
|
url 'https://repo.spongepowered.org/repository/maven-public/'
|
2019-11-02 17:23:48 +01:00
|
|
|
}
|
2019-11-12 20:46:00 +01:00
|
|
|
maven {
|
|
|
|
name 'CodeMC'
|
2020-01-20 14:51:20 +01:00
|
|
|
url 'https://repo.codemc.org/repository/maven-public/'
|
2019-11-12 20:46:00 +01:00
|
|
|
}
|
2020-05-10 01:28:09 +02:00
|
|
|
maven {
|
2021-09-14 16:50:08 +02:00
|
|
|
url "https://libraries.minecraft.net"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name 'Fabric'
|
|
|
|
url 'https://maven.fabricmc.net/'
|
2020-05-10 01:28:09 +02:00
|
|
|
}
|
2019-11-02 17:23:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
compileJava.options.compilerArgs.add '-parameters'
|
|
|
|
compileTestJava.options.compilerArgs.add '-parameters'
|
2021-09-14 16:50:08 +02:00
|
|
|
|
2020-05-11 20:07:39 +02:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
2020-01-14 23:38:03 +01:00
|
|
|
|
2019-11-02 17:23:48 +01:00
|
|
|
apply plugin: 'java'
|
2021-05-16 18:13:30 +02:00
|
|
|
apply plugin: 'java-library'
|
2021-09-14 16:50:08 +02:00
|
|
|
|
2020-03-30 01:45:32 +02:00
|
|
|
group = 'de.bluecolored.bluemap'
|
2021-09-14 16:50:08 +02:00
|
|
|
version = coreVersion
|
|
|
|
|
|
|
|
apply plugin: 'license'
|
|
|
|
license {
|
2020-08-03 17:51:07 +02:00
|
|
|
header rootProject.file('HEADER')
|
|
|
|
excludes([
|
2021-09-14 16:50:08 +02:00
|
|
|
'**/*.conf',
|
|
|
|
'**/*.yml',
|
|
|
|
'**/*.zip',
|
|
|
|
'**/*.json'
|
2020-08-03 17:51:07 +02:00
|
|
|
])
|
|
|
|
}
|
2019-11-02 17:23:48 +01:00
|
|
|
}
|
|
|
|
|
2020-03-30 01:45:32 +02:00
|
|
|
subprojects {
|
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
apply plugin: 'java'
|
2021-09-14 16:50:08 +02:00
|
|
|
|
2020-03-30 01:45:32 +02:00
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
2020-01-14 23:38:03 +01:00
|
|
|
}
|
2021-09-14 16:50:08 +02:00
|
|
|
|
|
|
|
|
2021-09-19 22:08:48 +02:00
|
|
|
spotless {
|
|
|
|
java {
|
|
|
|
indentWithSpaces()
|
|
|
|
trimTrailingWhitespace()
|
|
|
|
|
|
|
|
target fileTree(project.rootDir) {
|
|
|
|
include '**/*.java'
|
|
|
|
exclude '**/build/**'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|