Skip to content

Commit ea6c195

Browse files
committed
Prepare spotless for future application
1 parent 6a6e8a6 commit ea6c195

File tree

1 file changed

+31
-17
lines changed

1 file changed

+31
-17
lines changed

build.gradle

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ plugins {
44
id 'com.github.johnrengelman.shadow' version '6.1.0'
55
id 'com.github.hierynomus.license' version '0.16.1'
66
id 'com.palantir.git-version' version '0.12.3'
7+
// id 'com.diffplug.spotless' version '5.14.2'
78
}
89

910
allprojects {
1011
repositories {
11-
jcenter()
12+
jcenter()
1213
mavenCentral()
1314
maven {
1415
url 'https://jitpack.io'
@@ -22,43 +23,56 @@ allprojects {
2223
url 'https://repo.codemc.org/repository/maven-public/'
2324
}
2425
maven {
25-
url "https://libraries.minecraft.net"
26+
url "https://libraries.minecraft.net"
27+
}
28+
maven {
29+
name 'Fabric'
30+
url 'https://maven.fabricmc.net/'
2631
}
27-
maven {
28-
name 'Fabric'
29-
url 'https://maven.fabricmc.net/'
30-
}
3132
}
3233

3334
compileJava.options.compilerArgs.add '-parameters'
3435
compileTestJava.options.compilerArgs.add '-parameters'
35-
36+
3637
tasks.withType(JavaCompile) {
3738
options.encoding = "UTF-8"
3839
}
3940

4041
apply plugin: 'java'
4142
apply plugin: 'java-library'
42-
43+
4344
group = 'de.bluecolored.bluemap'
44-
version = coreVersion
45-
46-
apply plugin: 'license'
47-
license {
45+
version = coreVersion
46+
47+
apply plugin: 'license'
48+
license {
4849
header rootProject.file('HEADER')
4950
excludes([
50-
'**/*.conf',
51-
'**/*.yml',
52-
'**/*.zip',
53-
'**/*.json'
51+
'**/*.conf',
52+
'**/*.yml',
53+
'**/*.zip',
54+
'**/*.json'
5455
])
5556
}
5657
}
5758

5859
subprojects {
5960
apply plugin: 'com.github.johnrengelman.shadow'
6061
apply plugin: 'java'
61-
62+
6263
sourceCompatibility = 1.8
6364
targetCompatibility = 1.8
6465
}
66+
67+
68+
//spotless {
69+
// java {
70+
// indentWithSpaces()
71+
// trimTrailingWhitespace()
72+
//
73+
// target fileTree(project.rootDir) {
74+
// include '**/*.java'
75+
// exclude '**/build/**'
76+
// }
77+
// }
78+
//}

0 commit comments

Comments
 (0)