learning-spring-boot / learning-spring-boot-code

Source code from "Learning Spring Boot" (original and upgrades)
http://greglturnquist.com/learning-spring-boot
Other
49 stars 34 forks source link

Build not working #1

Closed gregturn closed 8 years ago

gregturn commented 8 years ago

Opened this ticket based on http://blog.greglturnquist.com/2015/07/debug-and-maintain-your-spring-boot-app.html#comment-355367:

Regarding “learning spring boot”: – Creating a functional environment is one of the hardest things in software development. Unfortunately you have not started with this topic in your book. Yes, I understand that it gets old the fastest, but on the other hand some of your readers will be in the dilemma where I am: Your code doesn’t work and I don’t know how to fix the dev environment to get it working. – A bit same is with utilizing source code, preferably through a fork in GitHub: Especially Eclipse is frustrating in that it has several different mechanisms how to do it, some of them don’t work at all, some are counter-intuitive and some require correct plugins to work. I probably know that part already, but you could really afford to have one section of these basics and tell one of the good ways to do it. – Also when ever I read a development book, I ALWAYS do it the same way: I either copy-paste or use from the sources the correct place and compile it. And only if that works, I start to read the content: what does it do & how was it created the way it was. But you work the other way around: you approach the content first and getting it compiled is very much secondary. When the person has struggles with the environment or compilation, your approach is frustrating as ….

I don’t know how many attempt I am doing now and none of them have worked but they have had different issues. I have followed different instructions around the web to create them, but so far I have always found instructions that were either too old, too short (didn’t explain far enough for getting everything to work) or whatever. I have tried five versions of IDE: – Red Hat JBoss Developer Studio 9 beta (Eclipse) – Red Hat JBoss Developer Studio 8 (Eclipse) – Eclipse Mars – Eclipse Luna – Groovy/Grail Tool Suite (Eclipse) Several AS: – Tomcat 8 – Tomcat 7 – Wildfly 8.2 – Wildfly some other version – Jetty Other: – Gradle 2.4 and 2.7 – Maven 1?, Maven 2, Maven 3? – Lots of settings

As you can guess quantity doesn’t improve quality, but I don’t want to spend days on an issue, so if I don’t solve it fast enough, I try something else.

gregturn commented 8 years ago

As of https://github.com/learning-spring-boot/learning-spring-boot-code/commit/1131adb261e2c681b0c7c89c33d74bfccb7c096f, I've upgraded all the gradle build files to 2.3. I ran several parts via ./gradlew bootRun, and they run fine. If there are specific stack traces you can capture and report via new issues, I'm all for it.

gregturn commented 8 years ago

As of https://github.com/learning-spring-boot/learning-spring-boot-code/commit/380f383a28fb4c1acfc533d3ae8cbc89945aa025, I have restructured the gradle build so you can import this entire repo into your repository and build it as well.