-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
91 lines (79 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
plugins {
id 'com.palantir.git-version' version '0.15.0'
id 'idea'
id 'io.spring.dependency-management' version '1.1.0'
id 'java-library'
id 'maven-publish'
id 'signing'
id 'org.sonarqube' version '4.0.0.2929'
id 'com.diffplug.spotless' version '6.14.1'
id 'jacoco'
}
group = 'engineering.everest.axon'
def gitTagVersion = versionDetails()
version = gitTagVersion.commitDistance == 0
? gitTagVersion.lastTag
: "${gitTagVersion.lastTag}+${gitTagVersion.commitDistance}-SNAPSHOT"
ext {
axonVersion = '4.7.1'
jacksonVersion = '2.13.1'
lombokVersion = '1.18.24'
springBootVersion = '3.2.0'
junitVersion = '5.10.1'
mockitoVersion = '5.1.1'
postgresDriverVersion = '42.5.1'
zonkyEmbeddedDbVersion = '2.2.0'
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
}
dependencies {
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
implementation "org.axonframework:axon-modelling:${axonVersion}"
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testImplementation "org.junit.jupiter:junit-jupiter:${junitVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-params:${junitVersion}"
testImplementation "org.mockito:mockito-junit-jupiter:${mockitoVersion}"
testImplementation 'org.springframework.boot:spring-boot-test-autoconfigure'
testImplementation 'org.springframework:spring-test'
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()
}
test {
useJUnitPlatform()
}
apply from: 'publishing.gradle'
apply from: 'sonar.gradle'