-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
128 lines (94 loc) · 3.28 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
plugins {
id "groovy"
id "jacoco"
id "java"
id "org.springframework.boot" version "2.7.7" //if changed here, update in versions array
id "org.sonarqube" version "3.3"
id "com.gorylenko.gradle-git-properties" version "1.4.17"
id "io.freefair.lombok" version "6.1.0-m3"
}
project.ext.set("mainViewModule", project(":view.react"))
allprojects {
project.version = "4.1.1"
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
jacocoTestReport {
dependsOn test
reports {
xml.enabled true
}
}
repositories {
mavenCentral()
maven { url("https://repository.jboss.org/nexus/content/repositories/releases") }
}
ext {
versions = [
//spring
springBoot : '2.7.7', //if changed here update on plugins
//oauth
oauthJavaJwt : '4.2.1',
oauthJwksRsa : '0.21.2',
//mail
handlebars : '4.3.1',
//excel
apachePoi : '5.2.3',
//pdf
itextPdf : '5.5.13.3',
//modelMapping
modelMapper : '3.1.1',
//slack
slackApiBolt : '1.27.2',
//testing
spock : '2.0-groovy-3.0',
//h2
h2 : '2.1.214'
]
}
dependencies {
implementation platform("org.springframework.boot:spring-boot-dependencies:${versions.springBoot}")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-mail")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("com.auth0:java-jwt:${versions.oauthJavaJwt}")
implementation("com.auth0:jwks-rsa:${versions.oauthJwksRsa}")
implementation("com.github.jknack:handlebars:${versions.handlebars}")
implementation("org.apache.poi:poi:${versions.apachePoi}")
implementation("org.apache.poi:poi-ooxml:${versions.apachePoi}")
implementation("org.modelmapper:modelmapper:${versions.modelMapper}")
implementation("com.itextpdf:itextpdf:${versions.itextPdf}")
implementation("com.slack.api:bolt:${versions.slackApiBolt}")
implementation("com.slack.api:bolt-servlet:${versions.slackApiBolt}")
// Database migration
implementation("org.flywaydb:flyway-core")
runtimeOnly("org.postgresql:postgresql")
developmentOnly("com.h2database:h2:${versions.h2}")
testImplementation("org.spockframework:spock-core:${versions.spock}")
testImplementation("org.codehaus.groovy:groovy")
}
test {
useJUnitPlatform()
}
bootJar {
archivesBaseName = 'urlopia'
from("${mainViewModule.projectDir}/build") {
into "public"
}
}
springBoot {
buildInfo()
}
import org.springframework.boot.gradle.tasks.run.BootRun
task bootRunWithView(type: BootRun) {
group = "application"
mainClass.set("info.fingo.urlopia.UrlopiaApplication")
def defaultClasspath = sourceSets.main.runtimeClasspath
def viewFiles = files("${mainViewModule.projectDir}")
classpath = defaultClasspath + viewFiles
}
apply from: 'gradle/config/sonarqube.gradle'