Checkout: https://github.com/gripes/gripes-example
Add the following to build.gradle
buildscript {
versions = [
'gripes-web' : '0.1.8',
'gripes-plugin' : '0.1.9',
'gripersist' : '0.1.5',
'hibernate-core' : '4.0.0.Beta2'
]
repositories {
mavenCentral()
mavenRepo urls: "http://www.gripes-project.org/libs"
}
dependencies {
classpath group: 'gripes', name: 'gripes-plugin', version: versions['gripes-plugin']
classpath group: 'gripes', name: 'gripes-web', version: versions['gripes-web']
classpath group: 'org.hibernate', name: 'hibernate-core', version: versions['hibernate-core']
classpath group: 'org.hibernate', name: 'hibernate-entitymanager', version: versions['hibernate-core']
}
}
Then
- Run: 'gradle init'
- Gripes will update your build.gradle file, edit the gripes{} section accordingly
- Run: 'gradle setup'
- First entity class: 'gradle create -Pmodel=Page'
- Edit the entity, adding properties (i.e. String name, description)
- Create actions: 'gradle create -Paction=Page'
- Run the app: 'gradle run'
- Browse: http://localhost:8888/gripes