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 trialStephen Mooney
827 PointsMy build.gradle and settings.gradle files are not working as the course is outdated.
Here is my build.gradle file
buildscript{ repositories { mavenCentral() } dependencies { classpath('org.springframework.boot:spring-boot-gradle-plugin:1.3.3.RELEASE') } }
plugins { id 'java' id 'org.springframework.boot' version '3.0.1' }
apply plugin: 'java' apply plugin: 'spring-boot'
group 'com.teamtreehouse' version '1.0-SNAPSHOT'
repositories { mavenCentral() }
dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-rest' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'com.h2database:h2:2.1.214' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' }
test { useJUnitPlatform() }
here is my settings.gradle file
pluginManagement { repositories { maven { url "https://plugins.gradle.org/m2/" } gradlePluginPortal() } }
rootProject.name = 'course-reviews-api'
I am getting the error below
PS F:\teamtreehouse\course-reviews-api> gradle build
FAILURE: Build failed with an exception.
Where: Build file 'F:\teamtreehouse\course-reviews-api\build.gradle' line: 17
-
What went wrong: A problem occurred evaluating root project 'course-reviews-api'.
Plugin with id 'spring-boot' not found.
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org