-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
94 lines (80 loc) · 2.61 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
91
92
93
94
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 {
storageVersion = '1.1.0'
lombokVersion = '1.18.24'
metadataExtractorVersion = '2.18.0'
springBootVersion = '3.0.2'
thumbnailatorVersion = '0.4.19'
junitVersion = '5.9.2'
mockitoVersion = '5.1.1'
postgresDriverVersion = '42.5.1'
zonkyEmbeddedDbVersion = '2.2.0'
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
}
dependencies {
api "engineering.everest.starterkit:storage:${storageVersion}"
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation "net.coobird:thumbnailator:${thumbnailatorVersion}"
implementation "com.drewnoakes:metadata-extractor:${metadataExtractorVersion}"
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testImplementation 'org.springframework:spring-test'
testImplementation 'org.springframework.boot:spring-boot-test-autoconfigure'
testImplementation "org.junit.jupiter:junit-jupiter:${junitVersion}"
testImplementation "org.mockito:mockito-junit-jupiter:${mockitoVersion}"
testImplementation "org.postgresql:postgresql:${postgresDriverVersion}"
testImplementation "io.zonky.test:embedded-database-spring-test:${zonkyEmbeddedDbVersion}"
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
java {
withJavadocJar()
withSourcesJar()
}
}
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()
mavenLocal()
}
test {
useJUnitPlatform()
}
apply from: 'publishing.gradle'
apply from: 'sonar.gradle'