-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
116 lines (92 loc) · 3.31 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.apache.cayenne.plugins:cayenne-gradle-plugin:4.2'
classpath 'org.postgresql:postgresql:42.6.0'
}
}
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.3'
id 'io.spring.dependency-management' version '1.1.6'
}
apply plugin: 'org.apache.cayenne'
apply from: "$rootDir/gradle/versioning.gradle"
apply from: "$rootDir/gradle/docker.gradle"
group = 'ch.so.agi.datahub'
java {
sourceCompatibility = '21'
targetCompatibility = '21'
}
compileJava {
options.compilerArgs.addAll(['--release', '21'])
}
bootJar {
archiveFileName = archiveBaseName.get() + "-" + version + "-exec.jar"
}
repositories {
mavenCentral()
maven { url 'https://jars.interlis.ch/' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-mail'
//implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
//implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
implementation platform('org.joinfaces:joinfaces-platform:5.3.3')
implementation 'org.joinfaces:faces-spring-boot-starter'
implementation 'org.joinfaces:primefaces-spring-boot-starter'
implementation 'org.webjars.npm:primeflex:3.3.1'
implementation 'org.jobrunr:jobrunr-spring-boot-3-starter:6.3.4'
implementation 'ch.interlis:ilivalidator:1.14.3'
implementation 'org.apache.cayenne:cayenne-server:4.2'
implementation 'org.apache.mina:mina-core:2.2.3'
implementation 'org.apache.ftpserver:ftpserver-core:1.2.0'
runtimeOnly 'org.postgresql:postgresql'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
}
tasks.named('test') {
useJUnitPlatform()
}
cayenne.defaultDataMap "$projectDir/src/main/resources/cayenne/datamap.map.xml"
cgen {
client = false
mode = 'entity'
overwrite = true
//createPKProperties = true
}
cdbimport {
map "$projectDir/src/main/resources/cayenne/datamap.map.xml"
cayenneProject "$projectDir/src/main/resources/cayenne/cayenne-project.xml"
dataSource {
driver 'org.postgresql.Driver'
url "jdbc:postgresql://localhost:54321/edit"
username 'postgres'
password 'secret'
}
dbImport {
usePrimitives false
defaultPackage 'ch.so.agi.datahub.cayenne'
schema {
name 'agi_datahub_config_v1'
includeTable 'core_operat'
includeTable 'core_organisation'
includeTable 'core_apikey'
includeTable 'core_theme'
includeTable 'core_user'
includeTable 'deliveries_delivery'
}
schema {
name 'agi_datahub_log_v1'
includeTable 'deliveries_delivery'
includeTable 'v_jobresponse'
}
}
}