Gradle Build fails for Spring Boot -
i have below gradle configuration file. , error in building project command- gradle clean install
. want know if version of spring gradle plugin old or there configuration missing in gradle build script.
buildscript { repositories { mavencentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.1.release") } } apply plugin: 'java' apply plugin: 'eclipse-wtp' apply plugin: 'idea' apply plugin: 'spring-boot' apply plugin: 'war' war { basename = 'webapp' version = '' } repositories { mavencentral() } sourcecompatibility = 1.7 targetcompatibility = 1.7 configurations { providedruntime } dependencies { compile("org.springframework:spring-test:4.2.4.release") compile("org.springframework.boot:spring-boot-starter-test:1.3.1.release") compile("com.jayway.jsonpath:json-path:2.1.0") compile("org.springframework.boot:spring-boot-starter-web") compile("org.json:json:20090211") compile("org.springframework.boot:spring-boot-starter-data-jpa") compile( "mysql:mysql-connector-java:5.1.28" ) compile("org.springframework.boot:spring-boot-starter-data-mongodb") compile("io.springfox:springfox-swagger2:2.0.2") compile("io.springfox:springfox-swagger-ui:2.0.2") compile("com.google.code.gson:gson:1.7.2") compile('org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.0.2') compile('net.sourceforge.argo:argo:3.19') testcompile('org.springframework.boot:spring-boot-starter-test') providedruntime("org.springframework.boot:spring-boot-starter-tomcat") compile ("org.apache.httpcomponents:httpcore:4.3.2") compile ("org.apache.httpcomponents:httpclient:4.3.4") }
error-
board>gradle clean install failure: build failed exception. * went wrong: problem occurred configuring root project 'dashboard'. > not resolve files configuration ':classpath'. > not resolve org.springframework.boot:spring-boot-gradle-plugin:1.3.1. release. required by: project : > not resolve org.springframework.boot:spring-boot-gradle-plugin:1.3 .1.release. > not resource 'https://repo1.maven.org/maven2/org/springfram ework/boot/spring-boot-gradle-plugin/1.3.1.release/spring-boot-gradle-plugin-1.3 .1.release.pom'. > host name may not contain blanks * try: run --stacktrace option stack trace. run --info or --debug option more log output. build failed in 0s
Comments
Post a Comment