代码拉取完成,页面将自动刷新
同步操作将从 萨法客户的帅哥/liquibase-demo 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
buildscript {
repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
mavenCentral()
jcenter()
maven { url "http://repo.spring.io/plugins-release" }
maven { url "http://repo.spring.io/milestone" }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${spring_boot_version}"
classpath "io.spring.gradle:propdeps-plugin:0.0.10.RELEASE"
classpath "gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties:1.5.2"
classpath("gradle.plugin.org.liquibase:liquibase-gradle-plugin:2.0.0") {
exclude(module: 'liquibase-core')
}
}
}
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: "org.liquibase.gradle" // 应用liquibase 插件
group 'vip.youngboy'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/spring/'}
jcenter()
maven { url 'http://repo.spring.io/milestone' }
maven { url 'http://repo.spring.io/snapshot' }
maven { url 'https://repository.jboss.org/nexus/content/repositories/releases' }
maven { url 'https://oss.sonatype.org/content/repositories/releases' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'http://repo.maven.apache.org/maven2' }
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-web')
compile "org.springframework.boot:spring-boot-starter-data-jpa"
compile "org.liquibase:liquibase-core"
compile "com.h2database:h2"
compileOnly "org.projectlombok:lombok:${lombok_version}"
annotationProcessor "org.projectlombok:lombok:${lombok_version}"
testCompile group: 'junit', name: 'junit', version: '4.12'
liquibaseRuntime "org.liquibase:liquibase-core"
liquibaseRuntime files("libs/liquibase-cmd.jar")
liquibaseRuntime "com.h2database:h2"
}
if(!new File("$projectDir/src/main/resources/config/liquibase/diff/").exists()){
new File("$projectDir/src/main/resources/config/liquibase/diff/").mkdir()
}
if(!new File("$projectDir/src/main/resources/config/liquibase/sql/").exists()){
new File("$projectDir/src/main/resources/config/liquibase/sql/").mkdir()
}
project.ext.diffChangelogFile = "$projectDir/src/main/resources/config/liquibase/diff/" + new Date().format('yyyyMMddHHmmss') + '_changelog.xml'
project.ext.generateSql = "$projectDir/src/main/resources/config/liquibase/sql/" + new Date().format('yyyyMMddHHmmss') + '_update.sql'
project.ext.initSql = "$projectDir/src/main/resources/config/liquibase/sql/" + new Date().format('yyyyMMddHHmmss') + '_init.sql'
liquibase {
activities {
prod {
driver 'org.h2.Driver'
changeLogFile 'config/liquibase/changelog/master.xml'
url 'jdbc:h2:file:./build/h2db/db/liquibase;DB_CLOSE_DELAY=-1'
username 'sa'
password ''
outputFile project.ext.generateSql
baseDir "$projectDir/src/main/resources/"
}
dev {
changeLogFile 'config/liquibase/changelog/master.xml'
driver 'org.h2.Driver'
url 'jdbc:h2:file:./build/h2db/db/liquibase;DB_CLOSE_DELAY=-1'
username 'sa'
password ''
outputFile project.ext.generateSql
baseDir "$projectDir/src/main/resources/"
}
reset {
driver 'org.h2.Driver'
changeLogFile "$projectDir/src/main/resources/config/liquibase/changelog/${new Date().format('yyyyMMddHHmmss')}-initial_schema.xml"
url 'jdbc:h2:file:./build/h2db/db/liquibase;DB_CLOSE_DELAY=-1'
username 'sa'
password ''
outputFile project.ext.initSql
baseDir "$projectDir/src/main/resources/"
}
dbDoc {
driver 'org.h2.Driver'
changeLogFile "config/liquibase/changelog/master.xml"
url 'jdbc:h2:file:./build/h2db/db/liquibase;DB_CLOSE_DELAY=-1'
username 'sa'
password ''
outputFile project.ext.generateSql
baseDir "$projectDir/src/main/resources/"
}
}
runList = project.properties.getOrDefault("runList","prod")
mainClassName = 'vip.youngboy.liquibase.LiquibaseApp'
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。