-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (74 loc) · 1.72 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
buildscript {
repositories {
maven {
url("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath("com.diffplug.spotless:spotless-plugin-gradle:3.4.0")
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.6.RELEASE")
}
}
apply plugin: 'org.springframework.boot'
dependencies {
compile(project(':rest'))
compile('org.springframework.boot:spring-boot-starter-web:1.5.6.RELEASE')
testCompile('org.springframework.boot:spring-boot-starter-test:1.5.6.RELEASE')
}
allprojects{
buildscript {
repositories {
maven {
url("https://plugins.gradle.org/m2/")
}
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'com.diffplug.gradle.spotless'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
jcenter()
}
dependencies{
compile('org.apache.commons:commons-lang3:3.6')
testCompile('org.mockito:mockito-core:2.8.47')
testCompile('org.assertj:assertj-core:3.8.0')
testCompile('junit:junit:4.12')
}
idea {
module {
inheritOutputDirs = true
downloadJavadoc = true
downloadSources = true
outputDir = file('build/classes/main')
testOutputDir = file('build/classes/test')
}
}
spotless {
format 'misc', {
target '**/*.gradle', '**/*.md', '**/.gitignore'
trimTrailingWhitespace()
indentWithTabs() // or spaces. Takes an integer argument if you don't like 4
endWithNewline()
}
}
}
idea {
project {
jdkName = '1.8'
languageLevel = '8'
vcs = 'Git'
}
}
spotless {
java {
removeUnusedImports()
importOrderFile 'src/main/resources/formatter/spotless.importorder'
eclipse().configFile 'src/main/resources/formatter/spotless.eclipse-format.xml'
}
}
bootRepackage {
mainClass = 'io.reflectoring.raito4rpi.Raito4RPiApplication'
}