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

J llama
J llama
12,631 Points

A BUILD FILE THAT WORKS HERE U GO

Since our lovely friends at treehouse (WHO WE ARE SHELLING OUT $25 A MONTH TO) wont update any of the videos in regard to the most popular back-end business language/framework combination in the universe, here you go: A gradle build file that actually works.

"buildscript { ext { springBootVersion = '1.3.1.RELEASE' } repositories { mavenCentral() } dependencies { classpath("io.spring.gradle:dependency-management-plugin:0.6.1.RELEASE") classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.2.RELEASE") } }

apply plugin: 'java' apply plugin: 'idea' apply plugin: 'spring-boot'

jar { baseName = 'todotoday' version = '0.0.1-SNAPSHOT' }

repositories { mavenCentral() }

dependencies { compile 'org.springframework.boot:spring-boot-starter-thymeleaf' compile 'org.springframework:spring-orm:4.2.4.RELEASE' compile 'org.springframework.data:spring-data-jpa:1.9.2.RELEASE' compile 'org.hibernate:hibernate-core:5.0.6.Final' compile 'org.hibernate:hibernate-entitymanager:5.0.6.Final' compile 'org.apache.tomcat:tomcat-dbcp:8.0.30'

runtime 'com.h2database:h2'
runtime 'javax.transaction:jta:1.1'
runtime 'org.aspectj:aspectjweaver:1.8.7'

testCompile 'org.springframework.boot:spring-boot-starter-test'

}

task wrapper(type: Wrapper) { gradleVersion = '2.13' }"

Dude, The first sentence you wrote I fully agree with you.

Btw your code is hard to read so I help you out πŸ‘πŸ½

jar { baseName = 'todotoday' version = '0.0.1-SNAPSHOT' }

repositories { mavenCentral() }

dependencies { compile 'org.springframework.boot:spring-boot-starter-thymeleaf' compile 'org.springframework:spring-orm:4.2.4.RELEASE' compile 'org.springframework.data:spring-data-jpa:1.9.2.RELEASE' compile 'org.hibernate:hibernate-core:5.0.6.Final' compile 'org.hibernate:hibernate-entitymanager:5.0.6.Final' compile 'org.apache.tomcat:tomcat-dbcp:8.0.30'

runtime 'com.h2database:h2'
runtime 'javax.transaction:jta:1.1'
runtime 'org.aspectj:aspectjweaver:1.8.7'

testCompile 'org.springframework.boot:spring-boot-starter-test'
}

May I know which chapter is from? or challenge? Gradle or Marvel? Or JAVA webbdev?

J llama
J llama
12,631 Points

User auth in spring. Again I cant comment on your post bc treehouse is horrible and doesnt allow that feature. Is there anyone even working for this company anymore? Jesus christ

2 Answers

hey this must be a bug :s I can't do that either. It happened yesterday. Have you contacted support? :s They can work from home, I mean this is online :s

J llama
J llama
12,631 Points

they do nothing

I think they have fixed it 🀭Anyway are you reading from JAVA webbdev course or? :) I just trying to understand maven from the course JAVA Intermediate, I wonder if it is necessary? Please let me know. Because I am almost going to jump over that chapter Maven coz it look pain like the course Gradle.

J llama
J llama
12,631 Points

yes java web dev course. crappy course. use udemy

I have udemy the problem is that some teachers are not responding and some course needs to update.. But thanks for letting me know ^^