Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
We've seen that Gradle is used for managing our dependencies, or the libraries that our application will depend on. In this video, we'll utilize a Gradle plugin that will allow us to launch our application on a running web server.
Dependency Management with Gradle
For more information on getting up & running with Gradle, check out our workshop at teamtreehouse.com/library/dependency-management-with-gradle.
Gradle Version 3 and up
Current versions of Gradle no longer use the buildscript
syntax. The Spring Boot plugin syntax has also changed. Here is a working Gradle build script for more recent versions of Gradle:
plugins {
id 'java'
id 'idea'
id 'eclipse'
id 'org.springframework.boot' version '1.4.3.RELEASE'
}
group 'com.teamtreehouse'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile 'org.springframework.boot:spring-boot-starter-web'
}
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up