-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
90 lines (76 loc) · 2.36 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
89
90
plugins {
id 'com.palantir.git-version' version '0.15.0'
id 'java-library'
id 'maven-publish'
id 'signing'
id 'idea'
id 'io.spring.dependency-management' version '1.1.0'
id 'org.sonarqube' version '3.4.0.2513'
id 'com.diffplug.spotless' version '6.12.0'
id 'jacoco'
}
group = 'engineering.everest.starterkit'
def gitTagVersion = versionDetails()
version = gitTagVersion.commitDistance == 0
? gitTagVersion.lastTag
: "${gitTagVersion.lastTag}+${gitTagVersion.commitDistance}-SNAPSHOT"
ext {
awsSdkVersion = '1.12.398'
commonsLangVersion = '3.12.0'
guavaVersion = '31.1-jre'
lombokVersion = '1.18.24'
springBootVersion = '3.0.2'
junitVersion = '5.9.2'
mockitoVersion = '5.1.1'
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
}
dependencies {
api "com.amazonaws:aws-java-sdk-s3:${awsSdkVersion}"
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation "com.google.guava:guava:${guavaVersion}"
compileOnly 'org.springframework.boot:spring-boot-starter-data-mongodb'
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testImplementation "org.junit.jupiter:junit-jupiter:${junitVersion}"
testImplementation "org.mockito:mockito-junit-jupiter:${mockitoVersion}"
testImplementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
java {
withJavadocJar()
withSourcesJar()
}
}
build.dependsOn(spotlessApply)
spotless {
format 'misc', {
target '*.gradle', '*.md', '.gitignore'
trimTrailingWhitespace()
indentWithSpaces(4)
endWithNewline()
}
java {
eclipse().configFile("$rootDir/eclipse-formatter-config.xml")
indentWithSpaces(4)
trimTrailingWhitespace()
removeUnusedImports()
}
}
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
}
apply from: 'publishing.gradle'
apply from: 'sonar.gradle'