Skip to content

Commit

Permalink
Added common _object.gson file and compiling the json-views for the p…
Browse files Browse the repository at this point in the history
…ackaging. Releasing v2.0.4
  • Loading branch information
sagrawal31 committed Mar 10, 2018
1 parent 2caf16c commit 5b1dd0e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
13 changes: 8 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ buildscript {
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.grails.plugins:views-gradle:1.2.7"
}
}

version "2.0.3"
version "2.0.4"
group "com.wizpanda.plugins"

apply plugin:"idea"
apply plugin:"org.grails.grails-plugin"
apply plugin:"org.grails.grails-plugin-publish"
apply plugin:"org.grails.grails-gsp"
apply plugin: "idea"
apply plugin: "org.grails.grails-plugin"
apply plugin: "org.grails.grails-plugin-publish"
apply plugin: "org.grails.grails-gsp"
apply plugin: "org.grails.plugins.views-json"

repositories {
mavenLocal()
Expand Down Expand Up @@ -42,6 +44,7 @@ dependencies {

compile "org.hashids:hashids:1.0.1"
compile "joda-time:joda-time:2.9.4"
provided "org.grails.plugins:views-json:1.2.7"

profile "org.grails.profiles:web-plugin"

Expand Down
5 changes: 5 additions & 0 deletions grails-app/views/object/_object.gson
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import groovy.transform.*

@Field Object object

json g.render(object)

0 comments on commit 5b1dd0e

Please sign in to comment.