Added | Jooq 整合
This commit is contained in:
11
build.gradle
11
build.gradle
@@ -3,7 +3,7 @@ buildscript {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'org.jooq:jooq-codegen:3.6.1'
|
||||
classpath 'org.jooq:jooq-codegen:3.16.11'
|
||||
classpath 'org.flywaydb:flyway-core'
|
||||
classpath "org.flywaydb:flyway-mysql:9.2.0"
|
||||
}
|
||||
@@ -14,12 +14,14 @@ plugins {
|
||||
id 'org.springframework.boot' version '2.7.5'
|
||||
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
|
||||
id "org.flywaydb.flyway" version "8.5.13"
|
||||
id 'nu.studer.jooq' version '7.1.1'
|
||||
}
|
||||
|
||||
allprojects{
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'org.springframework.boot'
|
||||
apply plugin: 'io.spring.dependency-management'
|
||||
apply plugin: 'nu.studer.jooq'
|
||||
group = 'org.fycd'
|
||||
version = '0.0.1'
|
||||
|
||||
@@ -44,6 +46,8 @@ allprojects{
|
||||
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
|
||||
annotationProcessor 'org.projectlombok:lombok'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
jooqGenerator 'org.mariadb.jdbc:mariadb-java-client'
|
||||
jooqGenerator 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.0'
|
||||
}
|
||||
|
||||
tasks.named('test') {
|
||||
@@ -64,7 +68,7 @@ task migrateDB(type: org.flywaydb.gradle.task.FlywayMigrateTask) {
|
||||
password = 'roottoor'
|
||||
locations = ['filesystem:migrations']
|
||||
target = 'latest'
|
||||
baselineVersion = '0.0.1.0.1'
|
||||
baselineVersion = '0.0.1.1'
|
||||
baselineOnMigrate = true
|
||||
validateOnMigrate = true
|
||||
outOfOrder = true
|
||||
@@ -79,9 +83,10 @@ task cleanDB(type: org.flywaydb.gradle.task.FlywayCleanTask) {
|
||||
password = 'roottoor'
|
||||
locations = ['filesystem:migrations']
|
||||
target = 'latest'
|
||||
baselineVersion = '0.0.1.0.1'
|
||||
baselineVersion = '0.0.1.1'
|
||||
baselineOnMigrate = true
|
||||
validateOnMigrate = true
|
||||
outOfOrder = true
|
||||
placeholderReplacement = false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user