我是一個gradle noob,我在我的項目中有以下gradle配置。我正在嘗試建立一個AmazonBeanStalk java spring項目。Gradle常春藤服務MetaDataParseException
buildscript {
ext {
springBootVersion = '1.0.2.RELEASE'
}
repositories {
maven { url "http://repo.spring.io/libs-snapshot" }
mavenLocal()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.0.2.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'war'
sourceCompatibility = 1.7
targetCompatibility = 1.7
war {
baseName = 'videosvc-amazon-beanstalk'
version = '1.1'
}
repositories {
mavenCentral()
maven { url "http://repo.spring.io/libs-snapshot" }
maven { url "http://maven.springframework.org/milestone" }
maven { url "http://repo.opensourceagility.com/snapshots" }
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
compile("org.springframework.data:spring-data-commons:1.8.0.RELEASE")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-aop")
compile("org.springframework.boot:spring-boot-starter-test")
compile("org.springframework.data:spring-data-rest-webmvc:2.1.0.RELEASE")
compile("org.socialsignin:spring-data-dynamodb:1.0.1-SNAPSHOT")
compile("com.google.guava:guava:17.0")
compile("com.squareup.retrofit:retrofit:1.6.0")
compile("commons-io:commons-io:2.4")
testCompile("junit:junit")
}
task wrapper(type: Wrapper) {
gradleVersion = '1.11'
}
當我進行gradle構建時,出現以下解析異常。我不知道從哪裏開始,任何投入都將非常感激。
無法解析javax.validation:validation-api:1.1.0.FINAL。 必需: :MyApp:未指定> org.socialsignin:spring-data-dynamodb:1.0.1-SNAPSHOT 找到不一致的模塊元數據。描述符:javax.validation:validation-api:1.1.0.Final錯誤:錯誤版本:expected ='1.1.0.FINAL'found ='1.1.0.Final' 無法解析javax.validation:validation-api: 1.1.0.FINAL。 必需: :MyApp:未指定> org.socialsignin:spring-data-dynamodb:1.0.1-SNAPSHOT> org.hibernate:hibernate-validator:4.2.0.Final 找到不一致的模塊元數據。描述符:javax.validation:validation-api:1.1.0.Final錯誤:錯誤版本:expected ='1.1.0.FINAL'found ='1.1.0.Final'
在此先感謝。
完美!非常感謝:D – ranjk89 2014-11-23 21:27:07