Я нахожусь в процессе обновления старого приложения grails с 2.1.0 до 2.4 и Java 1.6 до 1.8. Я пытаюсь построить проект, но по какой-то причине не могу разрешить эту зависимость:
Ошибка |
Не удалось разрешить зависимости (для получения дополнительной информации установите уровень журнала 'warn' в BuildConfig.groovy): org.springframework: spring-test: 4.0.5.RELEASE
Мой BuildConfig.groovy находится ниже. Как я могу это исправить?
grails.servlet.version = "3.0" // Change depending on target container compliance (2.5 or 3.0)
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.target.level = 1.8
grails.project.source.level = 1.8
grails.project.war.file = "target/clinicaloutcome.war"
//grails.dependency.cache.dir = "target/ivy-cache"
//grails.dependency.cache.dir = "${user.home}/.ivy2/cache"
grails.tomcat.jvmArgs=["-Xms2048m", "-Xmx2048m", "-XX:PermSize=2048m", "-XX:MaxPermSize=2048m"]
grails.project.dependency.resolution = {
// pom true
// inherit Grails' default dependencies
inherits("global") {
// uncomment to disable ehcache
// excludes 'ehcache'
}
log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
checksums true // Whether to verify checksums on resolve
repositories {
inherits true // Whether to inherit repository definitions from plugins
grailsPlugins()
grailsHome()
grailsCentral()
mavenCentral()
//mavenRepo "https://oss.sonatype.org/content/groups/public/"
// uncomment these to enable remote dependency resolution from public Maven repositories
mavenLocal()
mavenRepo "https://oss.sonatype.org/content/repositories/releases/"
mavenRepo "https://repo.grails.org/grails/plugins"
mavenRepo "https://repo.grails.org/grails/core"
mavenRepo "https://mvnrepository.com/artifact/"
mavenRepo "https://mvnrepository.com/artifact/org.springframework/spring-test/"
mavenRepo "http://repository.springsource.com/maven/bundles/release"
mavenRepo "http://repository.springsource.com/maven/bundles/external"
mavenRepo "http://snapshots.repository.codehaus.org"
mavenRepo "http://repository.codehaus.org"
mavenRepo "http://download.java.net/maven/2/"
mavenRepo "http://repository.jboss.com/maven2/"
// // Hardcoded path to the jar fields
// flatDir name:'myRepo', dirs:'lib'
}
dependencies {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
runtime 'mysql:mysql-connector-java:5.1.20'
}
plugins {
build ":release:2.2.1"
// runtime ":hibernate:$grailsVersion"
runtime ":hibernate4:4.3.5.3"
runtime ":jquery:1.7.2"
runtime ":resources:1.1.6"
runtime ":cached-resources:1.0"
compile "org.grails.plugins:google-visualization:1.0.2"
compile ":less-resources:1.3.3.2"
compile ':app-info:1.0.1'
compile ":svn:1.0.2"
compile ":famfamfam:1.0.1"
compile ":mail:1.0"
compile ":spring-security-ui:0.2"
compile ":spring-security-core:2.0-RC4"
compile ":lang-selector:0.3"
compile ":google-analytics:2.0"
compile ":cache-headers:1.1.5"
compile ":dynamic-controller:0.4"
compile ":jquery-ui:1.8.15"
compile ":events-push:1.0.M3"
compile ":platform-core:1.0.M6"
// Uncomment these (or add new ones) to enable additional resources capabilities
runtime ":zipped-resources:1.0"
runtime ":cached-resources:1.0"
//runtime ":yui-minify-resources:0.1.4"
build ":tomcat:7.0.53"
}
}