-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
112 lines (95 loc) · 3.71 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
buildscript {
ext {
kotlinVersion = '1.3.72'
springBootVersion = '2.3.0.RELEASE'
jetPluginVersion = '1.3.3'
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion"
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "com.excelsiorjet:excelsior-jet-gradle-plugin:$jetPluginVersion"
}
}
plugins {
id "com.github.node-gradle.node" version "2.2.4"
id 'com.palantir.docker' version '0.25.0'
id "io.freefair.lombok" version "5.1.0"
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: "kotlin-spring"
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'excelsiorJet'
apply from: 'build-js.gradle'
group 'amu'
version '2.2.3-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
springBoot {
buildInfo()
}
configurations {
compile.exclude module: "spring-boot-starter-tomcat"
}
excelsiorJet {
appType = "spring-boot"
}
task unpack(type: Copy) {
dependsOn bootJar
from(zipTree(tasks.bootJar.outputs.files.singleFile))
into("build/dependency")
}
docker {
name "zhcet/zhcet-server"
tags "${project.version}"
copySpec.from(tasks.unpack.outputs).into("dependency")
buildArgs(['DEPENDENCY': "dependency"])
}
dockerPush.dependsOn(dockerTag)
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-mail")
implementation("org.springframework.boot:spring-boot-starter-undertow")
implementation("org.springframework.boot:spring-boot-devtools")
implementation("org.springframework.boot:spring-boot-starter-actuator")
compileOnly("org.springframework.boot:spring-boot-configuration-processor")
implementation("org.thymeleaf.extras:thymeleaf-extras-springsecurity5")
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
implementation 'org.postgresql:postgresql'
implementation "org.hibernate:hibernate-envers"
implementation "org.liquibase:liquibase-core:3.9.0"
implementation "com.j256.simplecsv:simplecsv:2.6"
implementation "org.apache.commons:commons-text:1.8"
implementation 'commons-validator:commons-validator:1.6', {
exclude group: 'commons-logging', module: 'commons-logging'
}
implementation 'org.modelmapper:modelmapper:2.3.7'
implementation 'com.github.darrachequesne:spring-data-jpa-datatables:5.0.0'
implementation 'com.google.firebase:firebase-admin:6.13.0'
implementation 'commons-io:commons-io:2.6'
implementation 'org.imgscalr:imgscalr-lib:4.2'
implementation 'com.github.ben-manes.caffeine:caffeine:2.8.4'
implementation 'org.jboss.aerogear:aerogear-otp-java:1.0.0'
// Sentry
implementation 'io.sentry:sentry-spring:1.7.30'
implementation 'io.sentry:sentry-logback:1.7.30'
// WebJars
implementation 'org.webjars:toastr:2.1.2'
implementation 'org.webjars.bower:mui:0.9.38'
implementation 'org.webjars.npm:corejs-typeahead:1.2.1'
implementation 'org.webjars:webjars-locator-core'
testImplementation group: 'junit', name: 'junit', version: '4.13'
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
}
compileJava.dependsOn(processResources)