How to compile Groovy before Java in a Gradle Build

I had an interesting problem come up at work last week and I would like to share it with you today. A coworker was having an issue with a Gradle build. Whenever he tried to compile the project it threw an error saying it couldn’t find the Groovy class he was trying to call from Java.

compile groovy before java

In this article, we are going to walk through setting up a project that will illustrate this problem. We will then examine what normal behavior is in a Gradle build and how we can make a change to fix this problem that we were facing. 

Groovy: What happens when you assign a BigInteger to an Integer

Have you ever tried assigning to large of a number to an Integer?

This question came in from a student in my Apache Groovy Development Course. It was actually quite interesting because it tripped me up at first before I understand what was going on behind the scenes. 

The Complete Apache Groovy Developer Course

The student was asking why when they created an integer but assigned to large of a number to it did the results end up like this.

How you can contribute to the Groovy Website

A simple way that you can contribute to an open source project.

& Anyone who knows me knows that I am a huge fan of The Groovy Programming Language. So much so that I did my part to spread the good word about Groovy by creating a course titled “The Complete Apache Groovy Developer Course“. 

Apache Groovy Website

I recently had the opportunity to contribute to the Groovy website. In this article, I will tell you all about what I did and how you can contribute as well. 

Inserting a Groovy Date into a Time Stamp Column

Groovy provides a great API for working with Date/Time values

Working with Dates in any language is one of those core fundamentals you need to know right away. Lucky for us, Groovy makes it super simple to work with dates. 

Working with Groovy Date

I am working on a project where I am using straight SQL to insert a record into a database using Groovy. It’s pretty darn easy in most languages to grab the current date/time and in Java, you can do so just by creating a new instance of the Date class.

My Course is listed on the Groovy Website

I am so excited to announce that my course “The Complete Apache Groovy Developer Course” has been added to the Groovy Website. I want to send out a huge thank you to Guillaume Laforge and the entire team for allowing this. In the true nature of open source I added the course myself to the website. It was really fun learning how the Groovy website was built. I am probably going to do a quick screencast on how I did that so stay tuned. In the meantime I really hope this helps more people find the course because I really do believe this is a great way to learn the Groovy language. To see my course simply click on the link below and choose courses from the left hand navigation.

What’s New in IntelliJ IDEA 2016.2

If you are a frequent visitor to this blog or my YouTube channel you probably already know that I am a huge fan of IntelliJ. I love the new subscription model that they are using and the frequency of updates coming out. I just updated to 2016.2 and here is a list of the new features along with a video overview of some of the cool stuff.

The Complete Apache Groovy Developer Course is now LIVE

This might only be my 2nd course but there aren’t many things as exciting as finding out your course is live in the wild for Students to purchase! I have put a lot of time into this course and I want to thank the Groovy community for their support and all of the great resources that helped me along the way. I hope you will take this course and I look forward to your feedback. I have a special coupon code below for the readers of this blog that will get the first 100 students a 50% discount off of the regular price.










Groovy Course Teaser

If you’re not a subscriber to my YouTube channel (what are you waiting for) you’re missing out on some great content. This week I started releasing videos from upcoming course “The Complete Apache Groovy Developer Course”. There are 5 videos in the playlist now and I will be releasing a video every single day up until the course is launched.


G3 Summit

While I am still waiting on hearing back from SpringOne to see if I was selected to speak I am trying to plan out conferences for the year. A coworker just told me about the G3 Summit at the end of November in Florida. This is a conference for the Groovy, Grails and Gradle Community. I can think of way worse things to do than get out of the cold weather here in Cleveland and head down to Florida to hang out and learn from some great people. This is the first I am hearing about this conference so I think this is the first year. I have a few that I want to hit but I really need to figure out where I am going this year. What does your schedule look like?




Java & Groovy on the Tiobe Index – May 2016

Two of my favorite languages are doing really well in the Tiobe Index for May 2016. Java is continuing to hold the top spot and Groovy is again on the rise and sitting at #17. If you’re not sure what the Tiobe Index is…

The TIOBE Programming Community index is an indicator of the popularity of programming languages. The index is updated once a month. The ratings are based on the number of skilled engineers world-wide, courses and third party vendors. Popular search engines such as Google, Bing, Yahoo!, Wikipedia, Amazon, YouTube and Baidu are used to calculate the ratings. It is important to note that the TIOBE index is not about the best programming language or the language in which most lines of code have been written.

I don’t take this index as the end all be all but it is usually a good indicator as to what’s going on.