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 trial

Java Intro to Java Web Development with Spark Diving into Web Development Meet Spark

Problem with gradle, doesn't accept compile, but I don't know how to use implement to get spark working

I tried some implement variations of the line used in video but it was not working

1 Answer

Sean Watson
Sean Watson
8,509 Points

The video had

compile 'com.sparkjava:spark-core:2.x.x

not sure which version, but Gradle changed compile to implementation

make your line look like this, 2.9.4 is the latest version of spark

    implementation 'com.sparkjava:spark-core:2.9.4'