diff --git a/20-grails/build.gradle b/20-grails/build.gradle new file mode 100644 index 0000000..bf43f6c --- /dev/null +++ b/20-grails/build.gradle @@ -0,0 +1,28 @@ +buildscript { + repositories { + jcenter() + } + dependencies { + classpath "org.grails:grails-gradle-plugin:2.0.0" + } +} + +version "0.1" +group "com.ysoft.training" + +apply plugin: "grails" + +repositories { + grails.central() //creates a maven repo for the Grails Central repository (Core libraries and plugins) +} + +grails { + grailsVersion = '2.3.5' + groovyVersion = '2.1.9' + springLoadedVersion '1.1.3' +} + +dependencies { + bootstrap "org.grails.plugins:tomcat:7.0.50" // No container is deployed by default, so add this + compile 'org.grails.plugins:resources:1.2' // Just an example of adding a Grails plugin +} \ No newline at end of file diff --git a/README.md b/README.md index eb85b51..3206aa4 100644 --- a/README.md +++ b/README.md @@ -206,4 +206,18 @@ src/main/webapp into web application. Application is accessible at: http://localhost:8080/19-war-jetty -Press CTRL+C to stop server. \ No newline at end of file +Press CTRL+C to stop server. + +## 20-grails + +Grails is framework for building web applications. +This example let you bootstrap initial Grails project. + + gradle init + +Gradle Grails plugin will create project skeleton. +You can start sample portal by: + + gradle grails-run-app + +Result is available at: http://localhost:8080/20-grails \ No newline at end of file