File tree 2 files changed +45
-8
lines changed
2 files changed +45
-8
lines changed Original file line number Diff line number Diff line change 37
37
38
38
# ## Mac OS ###
39
39
.DS_Store
40
+
41
+ # ## JOOQ ###
42
+ src /generated /
Original file line number Diff line number Diff line change
1
+ import nu.studer.gradle.jooq.JooqEdition
2
+
1
3
plugins {
2
4
kotlin(" jvm" ) version " 1.8.0"
3
5
application
4
- }
5
6
6
- group = " org.example "
7
- version = " 1.0-SNAPSHOT "
7
+ id( " nu.studer.jooq " ) version " 8.1 "
8
+ }
8
9
9
10
repositories {
10
11
mavenCentral()
11
12
}
12
13
13
14
dependencies {
14
15
testImplementation(kotlin(" test" ))
16
+
17
+ implementation(" org.postgresql:postgresql:42.2.27" )
18
+ implementation(" org.jooq:jooq:3.17.6" )
19
+ jooqGenerator(" org.postgresql:postgresql:42.2.27" )
15
20
}
16
21
17
22
tasks.test {
18
23
useJUnitPlatform()
19
24
}
20
25
21
- kotlin {
22
- jvmToolchain(8 )
23
- }
24
-
25
26
application {
26
27
mainClass.set(" MainKt" )
27
- }
28
+ }
29
+
30
+ jooq {
31
+ version.set(" 3.17.6" )
32
+ edition.set(JooqEdition .OSS )
33
+
34
+ configurations {
35
+ create(" main" ) {
36
+ jooqConfiguration.apply {
37
+ logging = org.jooq.meta.jaxb.Logging .DEBUG
38
+
39
+ jdbc.apply {
40
+ driver = " org.postgresql.Driver"
41
+ url = " jdbc:postgresql://localhost:5432/byos"
42
+ user = " postgres"
43
+ password = " "
44
+ }
45
+ generator.apply {
46
+ name = " org.jooq.codegen.JavaGenerator"
47
+ database.apply {
48
+ name = " org.jooq.meta.postgres.PostgresDatabase"
49
+ inputSchema = " public"
50
+ includes = " .*"
51
+ excludes = " "
52
+ }
53
+ target.apply {
54
+ packageName = " db.jooq.generated"
55
+ directory = " ${project.projectDir} /src/generated/java/jooq"
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
You can’t perform that action at this time.
0 commit comments