Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to integrate with grails 3 , rest-api profile , Is anyone aware about the configuration need to be done. #40

Open
wsourabh opened this issue Apr 11, 2016 · 3 comments

Comments

@wsourabh
Copy link

always getting
screen shot 2016-04-12 at 1 35 43 am

my build.gradle looks like

`buildscript {
    ext {
        grailsVersion = project.grailsVersion
    }
    repositories {
        mavenLocal()
        mavenCentral()
        maven { url "https://repo.grails.org/grails/core" }
        maven { url "https://plugins.gradle.org/m2/" }
    }
    dependencies {
        classpath "org.grails:grails-gradle-plugin:$grailsVersion"
        classpath "org.grails.plugins:hibernate4:5.0.2"
        classpath "org.grails.plugins:views-gradle:1.0.4"
        classpath "gradle.plugin.org.gradle.api.plugins:gradle-gaelyk-plugin:0.7.0"
        classpath 'org.gradle.api.plugins:gradle-appengine-geb-plugin:0.4'
    }
}

version "0.1"
group "tm2"

apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"war"
apply plugin:"org.grails.grails-web"
apply plugin:"org.grails.plugins.views-json"
apply plugin: 'gaelyk'
apply plugin: 'appengine-geb'

ext {
    grailsVersion = project.grailsVersion
    gradleWrapperVersion = project.gradleWrapperVersion
    gaeVersion = '1.9.34'
    groovyVersion = '2.3.0'
}

repositories {
    mavenLocal()
    maven { url "https://repo.grails.org/grails/core" }
}

dependencyManagement {
    imports {
        mavenBom "org.grails:grails-bom:$grailsVersion"
    }
    applyMavenExclusions false
}

dependencies {
    compile "org.codehaus.groovy:groovy-all:${groovyVersion}"
    compile "com.google.appengine:appengine-api-1.0-sdk:$gaeVersion",
    "com.google.appengine:appengine-api-labs:$gaeVersion"
    compile 'org.sitemesh:sitemesh:3.0-alpha-2'
    compile 'org.gaelyk:gaelyk:2.1.2'
    compile 'org.codehaus.gpars:gpars-appengine:0.1'
    compile 'org.gaelyk:gaelyk-console:2.0'
    testCompile 'org.gaelyk:gaelyk-spock:0.4'
    testCompile "com.google.appengine:appengine-api-stubs:$gaeVersion",
            "com.google.appengine:appengine-testing:$gaeVersion"

    functionalTestCompile 'org.seleniumhq.selenium:selenium-firefox-driver:2.40.0'
    functionalTestCompile 'org.gebish:geb-spock:0.9.2'

    appengineSdk "com.google.appengine:appengine-java-sdk:$gaeVersion"
    compile 'org.codehaus.gpars:gpars-appengine:0.1'
    compile "org.springframework.boot:spring-boot-starter-logging"
    compile "org.springframework.boot:spring-boot-autoconfigure"
    compile "org.grails:grails-core"
    compile "org.springframework.boot:spring-boot-starter-actuator"
    compile "org.springframework.boot:spring-boot-starter-tomcat"
    compile "org.grails:grails-plugin-url-mappings"
    compile "org.grails:grails-plugin-rest"
    compile "org.grails:grails-plugin-codecs"
    compile "org.grails:grails-plugin-interceptors"
    compile "org.grails:grails-plugin-services"
    compile "org.grails:grails-plugin-datasource"
    compile "org.grails:grails-plugin-databinding"
    compile "org.grails:grails-plugin-async"
    compile "org.grails:grails-web-boot"
    compile "org.grails:grails-logging"
    compile "org.grails.plugins:cache"
    compile "org.grails.plugins:hibernate4"
    compile "org.hibernate:hibernate-ehcache"
    compile "org.grails.plugins:views-json"
    console "org.grails:grails-console"
    profile "org.grails.profiles:rest-api:3.1.4"
    runtime "com.h2database:h2"
    testCompile "org.grails:grails-plugin-testing"
    testCompile "org.grails.plugins:geb"
    testCompile "org.grails:grails-datastore-rest-client"
    testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
    testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"
}

task wrapper(type: Wrapper) {
    gradleVersion = '2.1.12'
}
`
@musketyr
Copy link
Contributor

try to move the apply plugin: 'gaelyk' line up the apply plugin:"org.grails.grails-web". I can't remember at the moment but I guess gaelyk is adding groovy plugin more aggressively.

@chiragkhatsuriya
Copy link

@wsourabh any update on this? were you able to run GAE and Grails REST Full API?

@musketyr
Copy link
Contributor

@chiragkhatsuriya sadly I don't have much bandwidth to work on Gaelyk anymore so no progress so far. As App Engine now supports Java 8 and has no longer Java-class whitelist it would make sense to make Gaelyk extensions more lightweight. Also take a note that for Grails datastore you should be able to use GORM JPA to do persistence which can also make your live on App Engine slightly easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants