Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBlake Larson
13,014 PointsGradle error
Getting an error "Error:Cause: org.gradle.internal.component.external.model.DefaultModuleComponentSelector"
Here is my build.gradle..
group 'com.teamtreehouse' version '1.0-SNAPSHOT'
buildscript{ repositories{ mavenCentral() } dependencies{ classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.4.1.RELEASE' } }
apply plugin: 'java' apply plugin: 'spring-boot'
sourceCompatibility = 1.5
repositories { mavenCentral() }
dependencies { ************
compile 'org.springframework.boot:spring-boot-starter-thymleaf' ** This is the change.
} *************
THIS REFRESHES FINE..
group 'com.teamtreehouse' version '1.0-SNAPSHOT'
buildscript{ repositories{ mavenCentral() } dependencies{ classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.4.1.RELEASE' } }
apply plugin: 'java' apply plugin: 'spring-boot'
sourceCompatibility = 1.5
repositories { mavenCentral() }
dependencies { compile 'org.springframework.boot:spring-boot-starter-web:1.4.1.RELEASE' }
1 Answer
Blake Larson
13,014 PointsThis worked if anyone has the same problem.
group 'com.teamtreehouse' version '1.0-SNAPSHOT'
buildscript { repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.1.RELEASE") } }
apply plugin: 'java' apply plugin: 'spring-boot'
jar { baseName = 'gs-serving-web-content' version = '0.1.0' }
repositories { mavenCentral() }
sourceCompatibility = 1.8 targetCompatibility = 1.8
dependencies { compile("org.springframework.boot:spring-boot-starter-thymeleaf") compile("org.springframework.boot:spring-boot-devtools") testCompile("junit:junit") }