-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
124 lines (107 loc) · 3.7 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.5'
id 'io.spring.dependency-management' version '1.1.6'
id 'io.freefair.lombok' version '8.10.2'
id 'nu.studer.jooq' version '9.0'
}
group = 'lt.liutikas'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-jooq'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-jooq'
implementation 'org.liquibase:liquibase-core'
implementation 'org.jooq:jooq-codegen:3.18.0'
jooqGenerator 'org.postgresql:postgresql'
jooqGenerator 'org.jooq:jooq-codegen:3.18.0'
jooqGenerator 'org.jooq:jooq-meta:3.18.0'
runtimeOnly 'org.postgresql:postgresql:42.7.4'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
compileOnly 'org.projectlombok:lombok:1.18.34'
annotationProcessor 'org.projectlombok:lombok:1.18.34'
testCompileOnly 'org.projectlombok:lombok:1.18.34'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.34'
implementation "org.jsoup:jsoup:1.18.1"
implementation 'io.github.bonigarcia:webdrivermanager:5.9.2'
implementation 'org.seleniumhq.selenium:selenium-java:4.25.0'
implementation 'org.seleniumhq.selenium:selenium-api:4.25.0'
implementation 'net.lightbody.bmp:browsermob-core:2.1.5'
implementation 'org.javacord:javacord:3.8.0'
implementation 'com.squareup.okio:okio:3.9.1'
}
tasks.named('test') {
useJUnitPlatform()
}
jooq {
version = '3.18.0'
configurations {
main {
generateSchemaSourceOnCompilation = false
generationTool {
jdbc {
driver = 'org.postgresql.Driver'
url = 'jdbc:postgresql://localhost:5432/bananacar_notification_svc'
user = 'postgresql'
password = 'admin'
}
generator {
name = 'org.jooq.codegen.DefaultGenerator'
database {
name = 'org.jooq.meta.postgres.PostgresDatabase'
inputSchema = 'public'
excludes = 'databasechangelog|databasechangeloglock'
}
generate {
relations = false
deprecated = false
records = true
pojos = true
daos = true
springAnnotations = true
javaTimeTypes = true
fluentSetters = true
pojosEqualsAndHashCode = true
}
target {
packageName = 'lt.liutikas.bananacar_notification_svc.db.jooq'
directory = "src/main/generated-db-entities/java"
}
strategy {
name = 'lt.liutikas.bananacar_notification_svc.common.util.PrefixJooqGeneratorStrategy'
}
}
}
}
}
}
sourceSets {
main {
java {
srcDir "src/main/generated-db-entities/java"
}
}
}
dependencies {
jooqGenerator sourceSets.main.output
}
jar {
archiveBaseName.set("app")
archiveVersion.set("")
}
tasks.named("bootJar") {
enabled = true
}
tasks.named("jar") {
enabled = false // Disable the plain JAR task
}