BlueMap/build.gradle

80 lines
1.4 KiB
Groovy
Raw Normal View History

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