testCompileOnly - Compile dependencies for source set 'test'. +--- project :bestbooks-core | +--- org.springframework.boot:spring-boot-starter-freemarker: FAILED | +--- org.springframework.boot:spring-boot-starter-web: FAILED | +--- org.springframework.boot:spring-boot-devtools: FAILED | +--- org.springframework.boot:spring-boot-starter-actuator: FAILED | +--- org.springframework.boot:spring-boot-starter-undertow: FAILED | +--- org.springframework.boot:spring-boot-starter-security: FAILED | +--- org.springframework.boot:spring-boot-starter-data-jpa: FAILED | +--- org.springframework.composed:spring-composed:1.0.0.BUILD-SNAPSHOT
while this is my gradle file:
buildscript { ext { springBootVersion = '1.3.5.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'groovy' apply plugin: 'spring-boot' sourceSets { main { java { srcDirs = [] } // no source dirs for the java compiler groovy { srcDirs = ["src/main/java", "src/main/groovy"] } // compile everything in src/ with groovy } } jar { baseName = 'best-programming-books' version = '0.0.1-SNAPSHOT' } springBoot { mainClass = 'com.bpb.BestBooksApplication' executable = true excludeDevtools = true } configurations { compile.exclude module: "spring-boot-starter-tomcat" } compileGroovy.groovyOptions.configurationScript = file('src/main/groovyCompile/groovycConfig.groovy') dependencies { compile('org.springframework.boot:spring-boot-starter-freemarker') compile('org.springframework.boot:spring-boot-starter-web') compile("org.springframework.boot:spring-boot-devtools") compile("org.springframework.boot:spring-boot-starter-actuator") compile("org.springframework.boot:spring-boot-starter-undertow") compile("org.springframework.boot:spring-boot-starter-security") compile("org.springframework.boot:spring-boot-starter-data-jpa") compile("org.springframework.composed:spring-composed:1.0.0.BUILD-SNAPSHOT") compile 'org.postgresql:postgresql:9.4-1206-jdbc42' compile 'commons-io:commons-io:2.4' compile 'commons-codec:commons-codec:1.10' compile 'org.apache.commons:commons-lang3:3.4' compile 'com.google.guava:guava:19.0' compile 'com.github.slugify:slugify:2.1.5' runtime 'org.flywaydb:flyway-core:4.0' compile 'io.dropwizard.metrics:metrics-core:3.1.2' compile 'org.jsoup:jsoup:1.9.1' compile 'org.codehaus.groovy:groovy-all:2.4.7' compile 'com.github.dfabulich:sitemapgen4j:1.0.4' compile group: 'org.codehaus.groovy.modules.http-builder', name: 'http-builder', version: '0.7.1' testCompile 'org.assertj:assertj-core:3.4.1' testCompile 'org.springframework.boot:spring-boot-starter-test' testCompile group: 'junit', name: 'junit', version: '4.12' }