82 lines
No EOL
2.2 KiB
Kotlin
82 lines
No EOL
2.2 KiB
Kotlin
plugins {
|
|
kotlin("jvm") version "2.2.21"
|
|
kotlin("plugin.spring") version "2.2.21"
|
|
id("org.springframework.boot") version "4.0.2"
|
|
id("io.spring.dependency-management") version "1.1.7"
|
|
id("org.graalvm.buildtools.native") version "0.11.4"
|
|
id("nu.studer.jooq") version "10.2"
|
|
}
|
|
|
|
group = "com.example"
|
|
version = "0.0.1-SNAPSHOT"
|
|
description = "Demo project for Spring Boot"
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.springframework.boot:spring-boot-starter-jooq")
|
|
implementation("org.springframework.boot:spring-boot-starter-liquibase")
|
|
implementation("org.springframework.boot:spring-boot-starter-security")
|
|
implementation("org.springframework.boot:spring-boot-starter-webmvc")
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
implementation("tools.jackson.module:jackson-module-kotlin")
|
|
developmentOnly("org.springframework.boot:spring-boot-devtools")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-jooq-test")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-liquibase-test")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-security-test")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-webmvc-test")
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
|
|
runtimeOnly("org.postgresql:postgresql")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
|
|
jooqGenerator("org.postgresql:postgresql:42.7.8")
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs.addAll("-Xjsr305=strict", "-Xannotation-default-target=param-property")
|
|
}
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
|
|
jooq {
|
|
version.set("3.19.29")
|
|
configurations {
|
|
create("main") {
|
|
jooqConfiguration.apply {
|
|
jdbc.apply {
|
|
driver = "org.postgresql.Driver"
|
|
url = "jdbc:postgresql://localhost:5432/postgres"
|
|
user = "postgres"
|
|
password = "postgres"
|
|
}
|
|
generator.apply {
|
|
database.apply {
|
|
name = "org.jooq.meta.postgres.PostgresDatabase"
|
|
inputSchema = "public"
|
|
}
|
|
generate.apply {
|
|
isDaos = true
|
|
isPojos = true
|
|
}
|
|
target.apply {
|
|
packageName = "com.example.jooq"
|
|
directory = "build/generated-src/jooq/main"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |