Migrating Grails 2.x Applications to Grails 3.x

What does it take to migrate a Grails 2.x project to Grails 3.x

At we work we have a number of huge applications running on Grails 2. When we first heard about the Grails 3 release we couldn’t wait to upgrade our applications and then we realized we couldn’t. About a year ago our team started to do some investigation into what it would take to upgrade all of our applications. What we quickly found out is that our applications weren’t the problem, it was all of the plugins.

Grails 3

In this article, we are going to walk through the problems that faced us and I am proud to say that those problems no longer exist today. We are in the middle of upgrading all of our applications at work and I will let you know how we are doing it. 

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?

g3summit

 

 

 

 

 

https://g3summit.com/conference/fort_lauderdale/2016/11/home

Grails 3.1.0 Released

Just helping spread the news that Grails 3.1.0 was released today. There are some really great additions and bug fixes in this release. It was also great to see that they updated Spring Boot to 1.3.0 and the Spring Framework to 4.2. Here is the release notes from Graeme Rocher himself.

* Profile improvements, allowing profiles to be packaged as JAR files and deployed to any Maven repository.
* REST profile – a new profile that strips away the web UI parts of Grails and creates a focused environment to create REST web services with new support for JSON views
* AngularJS profile – a new profile to help ease the development of AngularJS applications and get your up and running quickly with AngularJS + Grails
* JSON Views – as already mentioned, building web services is much easier with JSON views, checkout https://github.com/grails/grails-views for a guide
* GORM 5 – in the latest release of GORM we now have support for Neo4j 2.3+, MongoDB 3+ and Hibernate 5
* Plugin Publishing Plugins – There are new Gradle plugins to make it easier to configure a Grails plugin to be published to Bintray
For more information about the release see the following links:

Java is King & Groovy Rises on the TIOBE Index

As a rule of thumb I don’t generally rely on a single source when it comes to the popularity of programming languages. One source that I do use though is the TIOBE index. They just announced that Java was their language of the year for 2015.

Java has won the TIOBE Index programming language award of the year. This is because Java has the largest increase in popularity in one year time (+5.94%). Java leaves runner ups Visual Basic.NET (+1.51%) and Python (+1.24%) far behind. At first sight, it might seem surprising that an old language like Java wins this award. Especially if you take into consideration that Java won the same award exactly 10 years ago. On second thought, Java is currently number one in the enterprise back-end market and number one in the still growing mobile application development market (Android). Moreover, Java has become a language that integrates modern language features such as lambda expressions and streams. The future looks bright for Java.

I use Java at my day job and in my personal projects so this makes me really happy to hear. Java is not only holding strong but the future does indeed look bright for Java. Another language that I really love is Groovy. Last year Pivotal dropped support for Groovy and they moved to the Apache foundation. Through all of that they came in really strong moving from 82 to 17. Wow, congrats Groovy!

Really encouraged to see the languages I use all the time high up on this list.

tiobe_index

 

 

Uninstalling GVM or SDK Man on Mac OSX

Let me be real clear that I am not in any way advocating Uninstalling GVM or SDK Man here. I am actually removing SDK Man from my machine so that I can install it for a screencast. That would probably be the only actual reason you could ever want to uninstall it. If you need to though here is how I did it.

First you need to edit the following 3 files

  1. .bashrc
  2. .bash_profile
  3. .profile

And remove the following snippet from each of them.


Finally delete the ‘~/.gvm’ or  ‘~/.sdkman’ folder. If you open up a new terminal and type gvm or sdk they should no longer work. When you finish your screencast or whatever crazy reason brought you to uninstall SDK Man you can follow these instructions to reinstall it.

SpringOne 2GX 2015: Days 2-4

My plan was to create a blog post for each day of the conference but that quickly fell through. If you haven’t seen it already I posted a summary of day one here. Days 2-4 (Tuesday – Thursday) were basically the meat and potatoes of the conference and they were all about content. Part of the reason my plan fell through was the fact that I was taking notes in each of my sessions and my brain went on a complete overload bender.

Right from the very first session I attended I was faced with some difficult decisions. Each session time slot had a choice of 9 different presentations in the following categories

  • Core Spring
  • Groovy Advanced Track
  • G&G Special Topics (Groovy & Grails)
  • Groovy Ecosystem
  • Core Groovy
  • Web & JavaScript
  • Big Data
  • Cloud Native
  • Data Integration

SpringOne 2GX 2015: Day 1

SpringOne 2GX is finally here and its off to a great start. I was at SpringOne 2GX 2013 in Santa Clara and walked away from that conference impressed. It was because of that impression that I am coming into this years conference with some big expectations. I got into Washington D.C. early so that a coworker and I could do a little sightseeing. We took a cab down to The Capitol and walked around the for a few hours. Here are some photos from our trip around this amazing city.

Marriott Marquis Washington, DC

The conference is being held at the Marriott Marquis in downtown DC. When I pulled up the building I knew it was going to be a good week because entrance is just amazing. Walking into the hotel I was told that this is now the biggest hotel in DC. The lobby is stunning and massive in size with rooms over looking it. The conference is on the lower levels of the hotel and the setup is amazing. Here are some pictures of the hotel.

Dinner & Keynote

After walking around the city all day and checking into the conference it was time for dinner. We had a great meal, dessert and some coffee it was time for the keynote. We found out right away that there are over 1000 registered users at the conference and to be honest I thought it was more looking at the grand ballroom filled. We were also told that we would get “almost immediate” access to the conference recordings. This makes picking sessions a little bit easier because I know that I can watch the ones I miss. The keynote was pretty much what I expected it to be. It revolved a lot around Cloud Foundry and Spring Boot. There was a full demo of writing an application in Spring Boot and deploying it to the Cloud. Their cloud solution look really awesome but I am still trying to figure out if its something I would use or if this is more of an enterprise solution. Finally there was an update on the current state of the Spring Framework and a roadmap of what is to come. The keynote should be posted online at some point and when it is I will update this post with it. Again here are a few pics from the dinner and keynote.

Well day one is over and I am already having a blast. The city, people and hotel are all amazing. I am in heaven with my fellow geeks and looking towards a week of getting my learn on. If you’re here and you find me please say hi.

Heading to SpringOne 2GX 2015 Next Week

I absolutely love learning, playing with new technology and talking about those experiences. That is why I really enjoy blogging here and creating content for my YouTube Channel. That along with spending a few days with coworkers I rarely get to see is why I am so excited that I am heading to SpringOne 2GX 2015 in Washington D.C. next week. I was at SpringOne 2 years out in California and I really enjoyed myself and learned a lot so I have big expectations for this years conference.

I am getting in early Monday morning and baring any fires that need putting out at work I am planning on taking this opportunity to do a little sight seeing with my friend Lance. I have been to DC before but I didn’t get to do any sight seeing so I hope I can get a bunch in. I plan on taking as many pictures as I can next week so I will try and get a sight seeing / conference wrap up done as soon as I get back.

Marriott Marquis · Washington, DC

The conference is being held at Marriott Marquis and this place looks absolutely amazing from the pictures.

wasco_main01_r

 

 

 

 

 

SpringOne 2GX 2015

If you aren’t familiar with this conference their description is below. I do a lot of work in this space

This is a one-of-a-kind conference for application developers, solution and data architects: people who develop business applications, create multi-device aware web applications, process vast quantities of enterprise data, design cloud architectures, and manage high performance infrastructure. The sessions are specifically tailored for Developers and Architects using the popular open source Spring IO Projects, Groovy & Grails, Cloud Foundry, RabbitMQ, Redis, Geode, Hadoop and Tomcat technologies. Whether you’re building mission-critical web or business applications, crunching huge amounts of distributed data, or designing the next killer cloud application, SpringOne2GX will keep you up to date with the latest enterprise technology.

Spring Boot Support In IntelliJ

The other day in my Introduction to Grails 3 screencast I briefly mentioned Spring Boot. With Grails 3 being built on top of Spring Boot it doesn’t hurt to learn a little about Spring Boot. Since IntelliJ is already my IDE of choice when it comes to pretty much anything I am working on these days I was excited to see that it now supports Spring Boot. Below is a screencast that was created by JetBrains, the creators of IntelliJ.