Skip to content

Instantly share code, notes, and snippets.

@danveloper
Created Nov 28, 2016
Embed
What would you like to do?
  • Create a new folder
  • Create a build.gradle file
  • Inside the build.gradle file, put the following:
buildscript {
  repositories {
    jcenter()
  }
  dependencies {
    classpath 'io.ratpack:ratpack-gradle:1.4.4'
  }
}

apply plugin: 'io.ratpack.ratpack-groovy'

repositories {
  jcenter()
}
  • Create directory structure inside your folder:

    • mkdir -p src/ratpack
  • Create a ratpack.groovy file inside of src/ratpack

  • Put this in there:

import static ratpack.groovy.Groovy.ratpack

ratpack {
  handlers {
    all {
      render "Hello World!"
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment