Skip to content

Instantly share code, notes, and snippets.

@marceloverdijk
Created August 8, 2014 06:36
Show Gist options
  • Save marceloverdijk/0388ac64953d07eaae7a to your computer and use it in GitHub Desktop.
Save marceloverdijk/0388ac64953d07eaae7a to your computer and use it in GitHub Desktop.
Spring Boot 1.1.5 issue with Spring web dependencies
apply plugin: "java"
apply plugin: "idea"
apply plugin: "spring-boot"
buildscript {
repositories {
mavenCentral()
maven { url "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/snapshot" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.5.RELEASE")
classpath("org.springframework:springloaded:1.2.0.RELEASE")
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
jar {
baseName = "myapp"
}
repositories {
mavenCentral()
maven { url "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/snapshot" }
}
dependencies {
compile("org.apache.commons:commons-lang3:3.2.1")
compile("org.hibernate:hibernate-validator")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.springframework.boot:spring-boot-starter-web")
testCompile("org.springframework.boot:spring-boot-starter-test")
runtime("mysql:mysql-connector-java")
runtime("org.hsqldb:hsqldb")
runtime("org.liquibase:liquibase-core")
}
idea {
module {
inheritOutputDirs = false
outputDir = file("${project.buildDir}/classes/main")
testOutputDir = file("${project.buildDir}/classes/test")
downloadJavadoc = true
downloadSources = true
}
project {
jdkName = "1.8"
languageLevel = "1.8"
}
}
task wrapper(type: Wrapper) {
gradleVersion = "1.6"
}
*******
Marcels-MacBook-Air:kapsalonreflection3-boot marceloverdijk$ ./gradlew clean dependencies --refresh-dependencies --configuration compile
:clean UP-TO-DATE
:dependencies
------------------------------------------------------------
Root project
------------------------------------------------------------
compile - Compile classpath for source set 'main'.
+--- org.apache.commons:commons-lang3:3.2.1
+--- org.hibernate:hibernate-validator: -> 5.0.3.Final
| +--- javax.validation:validation-api:1.1.0.Final
| +--- org.jboss.logging:jboss-logging:3.1.1.GA -> 3.1.3.GA
| \--- com.fasterxml:classmate:1.0.0
+--- org.springframework.boot:spring-boot-starter-actuator: -> 1.1.5.RELEASE
| +--- org.springframework.boot:spring-boot-starter:1.1.5.RELEASE
| | +--- org.springframework.boot:spring-boot:1.1.5.RELEASE
| | | +--- org.springframework:spring-core:4.0.6.RELEASE
| | | \--- org.springframework:spring-context:4.0.6.RELEASE
| | | +--- org.springframework:spring-aop:4.0.6.RELEASE
| | | | +--- aopalliance:aopalliance:1.0
| | | | +--- org.springframework:spring-beans:4.0.6.RELEASE
| | | | | \--- org.springframework:spring-core:4.0.6.RELEASE
| | | | \--- org.springframework:spring-core:4.0.6.RELEASE
| | | +--- org.springframework:spring-beans:4.0.6.RELEASE (*)
| | | +--- org.springframework:spring-core:4.0.6.RELEASE
| | | \--- org.springframework:spring-expression:4.0.6.RELEASE
| | | \--- org.springframework:spring-core:4.0.6.RELEASE
| | +--- org.springframework.boot:spring-boot-autoconfigure:1.1.5.RELEASE
| | | \--- org.springframework.boot:spring-boot:1.1.5.RELEASE (*)
| | +--- org.springframework.boot:spring-boot-starter-logging:1.1.5.RELEASE
| | | +--- org.slf4j:jcl-over-slf4j:1.7.7
| | | | \--- org.slf4j:slf4j-api:1.7.7
| | | +--- org.slf4j:jul-to-slf4j:1.7.7
| | | | \--- org.slf4j:slf4j-api:1.7.7
| | | +--- org.slf4j:log4j-over-slf4j:1.7.7
| | | | \--- org.slf4j:slf4j-api:1.7.7
| | | \--- ch.qos.logback:logback-classic:1.1.2
| | | +--- ch.qos.logback:logback-core:1.1.2
| | | \--- org.slf4j:slf4j-api:1.7.6 -> 1.7.7
| | +--- org.springframework:spring-core:4.0.6.RELEASE
| | \--- org.yaml:snakeyaml:1.13
| +--- org.springframework.boot:spring-boot-actuator:1.1.5.RELEASE
| | +--- org.springframework.boot:spring-boot:1.1.5.RELEASE (*)
| | +--- org.springframework.boot:spring-boot-autoconfigure:1.1.5.RELEASE (*)
| | +--- com.fasterxml.jackson.core:jackson-databind:2.3.3
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.3.0
| | | \--- com.fasterxml.jackson.core:jackson-core:2.3.3
| | +--- org.springframework:spring-core:4.0.6.RELEASE
| | \--- org.springframework:spring-context:4.0.6.RELEASE (*)
| \--- org.springframework:spring-core:4.0.6.RELEASE
+--- org.springframework.boot:spring-boot-starter-data-jpa: -> 1.1.5.RELEASE
| +--- org.springframework.boot:spring-boot-starter:1.1.5.RELEASE (*)
| +--- org.springframework.boot:spring-boot-starter-aop:1.1.5.RELEASE
| | +--- org.springframework.boot:spring-boot-starter:1.1.5.RELEASE (*)
| | +--- org.springframework:spring-aop:4.0.6.RELEASE (*)
| | +--- org.springframework:spring-core:4.0.6.RELEASE
| | +--- org.aspectj:aspectjrt:1.8.1
| | \--- org.aspectj:aspectjweaver:1.8.1
| +--- org.springframework:spring-core:4.0.6.RELEASE
| +--- org.springframework.boot:spring-boot-starter-jdbc:1.1.5.RELEASE
| | +--- org.springframework.boot:spring-boot-starter:1.1.5.RELEASE (*)
| | +--- org.springframework:spring-core:4.0.6.RELEASE
| | +--- org.springframework:spring-jdbc:4.0.6.RELEASE
| | | +--- org.springframework:spring-beans:4.0.6.RELEASE (*)
| | | +--- org.springframework:spring-core:4.0.6.RELEASE
| | | \--- org.springframework:spring-tx:4.0.6.RELEASE
| | | +--- org.springframework:spring-beans:4.0.6.RELEASE (*)
| | | \--- org.springframework:spring-core:4.0.6.RELEASE
| | +--- org.apache.tomcat:tomcat-jdbc:7.0.54
| | | \--- org.apache.tomcat:tomcat-juli:7.0.54
| | \--- org.springframework:spring-tx:4.0.6.RELEASE (*)
| +--- org.hibernate:hibernate-entitymanager:4.3.5.Final
| | +--- org.jboss.logging:jboss-logging:3.1.3.GA
| | +--- org.jboss.logging:jboss-logging-annotations:1.2.0.Beta1
| | +--- org.hibernate:hibernate-core:4.3.5.Final
| | | +--- org.jboss.logging:jboss-logging:3.1.3.GA
| | | +--- org.jboss.logging:jboss-logging-annotations:1.2.0.Beta1
| | | +--- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:1.0.0.Final
| | | +--- dom4j:dom4j:1.6.1
| | | | \--- xml-apis:xml-apis:1.0.b2
| | | +--- org.hibernate.common:hibernate-commons-annotations:4.0.4.Final
| | | | +--- org.jboss.logging:jboss-logging:3.1.3.GA
| | | | \--- org.jboss.logging:jboss-logging-annotations:1.2.0.Beta1
| | | +--- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Final
| | | +--- org.javassist:javassist:3.18.1-GA
| | | +--- antlr:antlr:2.7.7
| | | \--- org.jboss:jandex:1.1.0.Final
| | +--- dom4j:dom4j:1.6.1 (*)
| | +--- org.hibernate.common:hibernate-commons-annotations:4.0.4.Final (*)
| | +--- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Final
| | +--- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:1.0.0.Final
| | \--- org.javassist:javassist:3.18.1-GA
| +--- org.springframework:spring-orm:4.0.6.RELEASE
| | +--- org.springframework:spring-beans:4.0.6.RELEASE (*)
| | +--- org.springframework:spring-core:4.0.6.RELEASE
| | +--- org.springframework:spring-jdbc:4.0.6.RELEASE (*)
| | \--- org.springframework:spring-tx:4.0.6.RELEASE (*)
| +--- org.springframework.data:spring-data-jpa:1.6.2.RELEASE
| | +--- org.springframework.data:spring-data-commons:1.8.2.RELEASE
| | | +--- org.springframework:spring-core:3.2.10.RELEASE -> 4.0.6.RELEASE
| | | +--- org.springframework:spring-beans:3.2.10.RELEASE -> 4.0.6.RELEASE (*)
| | | +--- org.slf4j:slf4j-api:1.7.7
| | | \--- org.slf4j:jcl-over-slf4j:1.7.7 (*)
| | +--- org.springframework:spring-orm:3.2.10.RELEASE -> 4.0.6.RELEASE (*)
| | +--- org.springframework:spring-context:3.2.10.RELEASE -> 4.0.6.RELEASE (*)
| | +--- org.springframework:spring-aop:3.2.10.RELEASE -> 4.0.6.RELEASE (*)
| | +--- org.springframework:spring-tx:3.2.10.RELEASE -> 4.0.6.RELEASE (*)
| | +--- org.springframework:spring-beans:3.2.10.RELEASE -> 4.0.6.RELEASE (*)
| | +--- org.springframework:spring-core:3.2.10.RELEASE -> 4.0.6.RELEASE
| | +--- org.aspectj:aspectjrt:1.8.1
| | +--- org.slf4j:slf4j-api:1.7.7
| | \--- org.slf4j:jcl-over-slf4j:1.7.7 (*)
| \--- org.springframework:spring-aspects:4.0.6.RELEASE
| \--- org.aspectj:aspectjweaver:1.8.1
\--- org.springframework.boot:spring-boot-starter-web: -> 1.1.5.RELEASE
(*) - dependencies omitted (listed previously)
BUILD SUCCESSFUL
*******
Note the last line `\--- org.springframework.boot:spring-boot-starter-web: -> 1.1.5.RELEASE` which does not contain any dependency like `spring-web` or `spring-webmvc`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment