Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Gr8Conf 2016 - What's new in Grails 3

Grails project lead Graeme Rocher delivers an update on Grails 3 including the latest features of GORM. Grails 3.2 introduces AngularJS scaffolding and support for RxJava and MongoDB in GORM amongst other new features.

  • Login to see the comments

Gr8Conf 2016 - What's new in Grails 3

  1. 1. What’s new in Grails?
  2. 2. Graeme Rocher Grails Project Lead @graemerocher rocherg@ociweb.com
  3. 3. Grails 3 Status Update • Grails 3.1.8 current release of 3.x line • Grails 3.0.x and 2.x in maintenance mode • Grails 2.x plugins being migrated (the good ones)
  4. 4. New Plugin Portal • Thanks to the Agile Orbit crew!
  5. 5. slack-signup.grails.org
  6. 6. Grails 3 Recap • New architecture - Spring Boot, Gradle, Profiles • Same philosophy - Conventions, DRY, Plugins 3.0
  7. 7. Application Profiles • Not just web applications • REST APIs, SPA, Big Data, Micro Services • The world has changed! • Expand Grails’ reach
  8. 8. Grails 3 Feature Recap • Grails 3.0.x a solid base for the future • Foundational components stable • Great time to jump into plugin development • Improvements coming all the time!
  9. 9. Then came Grails 3.1 • Spring Boot 1.3, Spring 4.2 • Massive improvements to profiles • REST (Web API) Profile • AngularJS Profile • GORM 5
  10. 10. Announcing Grails 3.2 • RxGORM • MongoDB 3.0 RX driver support • RxGORM REST client • GORM Multi Tenancy • GORM for Neo4j 3.x / Bolt support • AngularJS scaffolding • Further refinements to REST support
  11. 11. Profile Improvements • New Gradle Plugins • Now just JAR files • A Profile for creating Profiles! • Extensibility
  12. 12. The REST Profile • Easy creation of REST APIs • Easy customisability with JSON views • Security support with spring-security-rest • Integration unit and functional testing
  13. 13. The REST Profile • Profile specific commands: • create-domain-resource - creates an @Resource domain • create-restful-controller - Creates a RestfulController • Default commands provide focused templates
  14. 14. JSON Views • Statically compiled, extensible JSON views: json.person { name "bob" } {"person":{"name":"bob"}}
  15. 15. DEMO - JSON Views
  16. 16. JSON Views • Restoring the V in MVC • Fast, flexible and expressive • Pre-compilation for production environments • Grails 3.2: Template inheritance, global templates, HAL pagination and more • Find out more http://views.grails.org/1.1.x
  17. 17. The AngularJS Profile • Extends the REST profile • Adds project setup for AngularJS • Code generation for AngularJS • Grails 3.2: AngularJS scaffolding
  18. 18. The AngularJS Profile • Profile specific commands: • create-ng-controller - Creates an AngularJS controller • create-ng-service - Creates an AngularJS service • Default commands provide focused templates
  19. 19. DEMO - Angular Scaffolding
  20. 20. GORM 5 Suite • GORM Reborn - Trait based • Hibernate 5 • MongoDB 3 • Neo4j 2.3 • Cassandra 3.0
  21. 21. GORM 5 - Hibernate • Support for Hibernate 3, 4 and 5 (and 5.1) • Completely rewritten and based on traits • Grails 2, Grails 3, Spring Boot or Standalone
  22. 22. GORM 5 - MongoDB • Rewritten for MongoDB 3.x driver • Uses codecs to avoid Document to Object conversion (much faster) • Grails 2, Grails 3, Spring Boot or Standalone
  23. 23. GORM 5 - Neo4j • Rewritten for Neo4j 2.3.x • Robust Cypher and Transaction support • Embedded, REST & HA modes supported • Grails 2, Grails 3, Spring Boot or Standalone
  24. 24. Announcing GORM 6 Suite • RxGORM • MongoDB RX Support • RxGORM REST Client • Neo4j 3.x / Bolt Driver • Native Multi Tenancy 3.0
  25. 25. RxGORM • GORM for RxJava • Reactive • Stateless • Non-Blocking • Lightweight 3.0
  26. 26. DEMO - RxGORM
  27. 27. Summary • Big plans in the future for profiles and the Grails platform • Grails evolving to tackle new challenges • The Grails community and plugin ecosystem as important as ever
  28. 28. Q & A
  29. 29. Thank You! Graeme Rocher rocherg@ociweb.com ociweb.com/grails
  30. 30. Come speak to the OCI Grails Team! Web: grails.org StackOverflow: http://stackoverflow.com/tags/grails Slack: http://slack-signup.grails.org Twitter: @grailsframework

×