나는 gradle 용 liquibase 플러그인을 발견했으며 많은 사람들이 나를 추천했습니다 gradle-liquibase-plugintlberglund. 내가받은그라우트 용 Liquibase 플러그인
내가 시도했다apply plugin: 'java'
apply plugin: 'liquibase'
repositories {
mavenCentral()
}
dependencies {
compile('org.hsqldb:hsqldb:2.2.8')
compile('org.hsqldb:sqltool:2.2.8')
compile('com.h2database:h2:1.3.167')
compile('org.liquibase:liquibase-core:2.0.1')
compile('com.augusttechgroup:groovy-liquibase-dsl:0.7.3')
compile('postgresql:postgresql:9.1-901.jdbc4')
}
buildscript {
dependencies {
classpath 'com.augusttechgroup:gradle-liquibase-plugin:0.6.1'
}
}
databases {
postgre {
url = "${postgreBaseUrl}" + "${postgreDB}"
username = "${postgreUserName}"
password = "${postgreUserPassword}"
}
}
changelogs {
main {
file = file('src/main/liquibase/mainChanges.groovy')
}
}
task dbInit << {
databases.postgre.url = "${postgreBaseUrl}"
databases.postgre.username = "${postgreRootUserName}"
databases.postgre.password = "${postgreRootUserPassword}"
changelogs.main.file = file('src/main/liquibase/tablespaceChanges.groovy')
}
실행 "Gradle을 빌드"작업 문자 메시지
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':classpath'.
> Could not find group:com.augusttechgroup, module:gradle-liquibase-plugin, vers
ion:0.6.1.
Required by:
:demo:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to
get more log output.
BUILD FAILED
나는 중앙 받는다는 저장소에서 의존성을했다 : 나는 Gradle을 나는 다음 구조 build.gradle 생성 1.2 버전을 사용 maven repository
i가 "compile"으로 표시되면 괜찮습니다.
dependencies {
compile 'com.augusttechgroup:gradle-liquibase-plugin:0.6.1'
}
나는 내 로컬 저장소를 확인하고 발견이 Gradle을--플러그인-0.6.1.jar liquibase
내가 뭘 뭔가 잘못 이해하지 않습니다. GitHub의
https://github.com/tlberglund/gradle-liquibase-plugin/blob/master/plugin.gradle
에 원본 문서에 설명하지만, 같은 결과를 얻었다로 나는 시도했다. 어쩌면 누군가이 플러그인을 사용 했을까?
는 정말 도움이 필요하고, 문제가 Liquibase 플러그인 관련이 없습니다
당신은 작업이 플러그인을 얻기 위해 관리나요? 필자는 그것을 작동시킬 수있는 동안 버그가 많은 것으로 알고 피드백을 보내고 내가 이상한 문제를 겪고있는 유일한 사람인지 확인하려고합니다. –