/talk_maritimedevcon_groovy

Demo code for talk at Maritime DevCon 2016.

Primary LanguageGroovyApache License 2.0Apache-2.0

Groovy examples

  • Example A Log Files

  • Example B REST client

  • Example C Acme Dao / persistence

    • sql_client : does not use Acme-Dao jar, uses JDBC
    • dao_client : simple usage of Acme-Dao jar
    • Post-Talk dao_client_using_java8 : simple usage of Java 8 method in Acme-Dao jar
    • Post-Talk dao_client_with_streams : comparison of Java 8 syntax vs Groovy syntax re: streams
    • dao_client_xml : generate XML with MarkupBuilder
    • dao_client_servlet : use a Groovy script as a servlet
    • dao_client_meta : use meta-programming to add method to AccountDao
  • Post-Talk Example D House example from Nothing is Something by Sandi Metz

  • These examples require Groovy:

  • Some examples require Gradle:

    • see http://gradle.org
    • Installation is standard:
      • unzip
      • define GRADLE_HOME env var
      • add GRADLE_HOME/bin to PATH