-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (65 loc) · 2.03 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
plugins {
id 'org.springframework.boot' version '2.4.4'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'com.google.cloud.tools.jib' version '2.8.0' apply false
id 'com.diffplug.spotless' version '5.11.1'
id 'org.sonarqube' version '3.1.1'
id 'com.palantir.git-version' version '0.12.3'
id 'java'
id 'application'
}
repositories {
mavenCentral()
}
mainClassName = 'io.encodely.Application'
jar {
enabled = false
}
sonarqube {
properties {
property "sonar.projectKey", "encodely"
property "sonar.host.url", System.getenv("SONAR_HOST")
}
}
subprojects {
repositories {
mavenCentral()
maven {
url "https://repo.microstream.one/repository/maven-public"
}
}
}
configure(subprojects.findAll {it.name != 'encodely-ui'}) {
apply plugin: 'com.diffplug.spotless'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
dependencies {
// Apache
implementation 'commons-io:commons-io:2.8.0'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'org.apache.commons:commons-exec:1.3'
// Google
implementation 'com.google.guava:guava:30.1.1-jre'
// Misc
implementation group: 'org.javatuples', name: 'javatuples', version: '1.2'
// Development
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
// Tests
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor:reactor-test'
}
spotless {
java {
licenseHeader '/* Licensed under Apache-2.0 */'
removeUnusedImports()
googleJavaFormat()
}
}
test {
useJUnitPlatform()
}
}