summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle11
1 files changed, 11 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 46794c5b..4453ab93 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,12 +1,14 @@
1plugins { 1plugins {
2 id 'maven-publish' 2 id 'maven-publish'
3 id 'com.github.johnrengelman.shadow' version '8.1.1' apply false 3 id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
4 id 'com.diffplug.spotless' version '7.2.1'
4} 5}
5 6
6subprojects { 7subprojects {
7 apply plugin: 'java' 8 apply plugin: 'java'
8 apply plugin: 'maven-publish' 9 apply plugin: 'maven-publish'
9 apply plugin: 'checkstyle' 10 apply plugin: 'checkstyle'
11 apply plugin: "com.diffplug.spotless"
10 12
11 repositories { 13 repositories {
12 mavenLocal() 14 mavenLocal()
@@ -47,6 +49,15 @@ subprojects {
47 toolVersion = '10.12.4' 49 toolVersion = '10.12.4'
48 } 50 }
49 51
52 spotless {
53 lineEndings = com.diffplug.spotless.LineEnding.UNIX
54
55 java {
56 removeUnusedImports()
57 importOrder('java', 'javax', '', 'cuchaz.enigma')
58 }
59 }
60
50 publishing { 61 publishing {
51 publications { 62 publications {
52 "$project.name"(MavenPublication) { 63 "$project.name"(MavenPublication) {