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

Can the 1.7 version be released since 1.6 does not work with Grails 2.5.3 #15

Open
zaccak opened this issue Feb 18, 2016 · 9 comments
Open

Comments

@zaccak
Copy link

zaccak commented Feb 18, 2016

Running the 1.6 version on Grails 2.5.3 results in:

Compilation error: startup failed:
/xxx/target/work/plugins/export-1.6/src/groovy/de/andreasschmitt/export/exporter/ExporterUtil.groovy: 5: unable to resolve class org.apache.commons.beanutils.PropertyUtils
@ line 5, column 1.
import org.apache.commons.beanutils.PropertyUtils
^
1 error

This is fixed in the 1.7 snapshot over a year ago. Can the 1.7 be released as final? Thanks!

@frangarcia
Copy link

It would be nice to hace 1.7 released when possible but in the meantime, if you want to use the plugin with 2.5.3, please try to use the snapshot version of the plugin.

grails.project.dependency.resolution = {
  ...

  repositories {
    ...
    mavenRepo "http://repo.grails.org/grails/core"
  }

  dependencies {
    ...
    compile 'commons-beanutils:commons-beanutils:1.8.3'
  }
  plugins {
    ...
    compile ":export:1.7-SNAPSHOT"
  }
}

Let me know if that works for you.

@zaccak
Copy link
Author

zaccak commented Feb 18, 2016

The snapshot works without the:
dependencies {
...
compile 'commons-beanutils:commons-beanutils:1.8.3'
}

@frangarcia
Copy link

Good to know it. Thanks!

@daptordarattler
Copy link

1.6 works with Grails 2.5.3
Just add this in your repository section

repositories {
...
      mavenRepo "http://repo.grails.org/grails/core"
}

1.7 actually has a bug where the auto export is expect the parameter 'format' but then 'f' is used. It needs to change to format since in the sample code that's actually what is being expected

@psnehal
Copy link

psnehal commented Jul 7, 2016

Any chance that it will work with grails 3?

@jeffscottbrown
Copy link
Member

Any chance that it will work with grails 3?

@psnehal It depends on what you mean by "it". There is a version of the export plugin for Grails 3. https://bintray.com/grails/plugins/org.grails.plugins:export

@psnehal
Copy link

psnehal commented Jul 7, 2016

Thank you Jeff for replying. I was adding different version no. Now its works.

@psnehal
Copy link

psnehal commented Jul 7, 2016

Adding def grailsApplication in controller gives following error.
Please let me know if you know anything about this error:

ERROR grails.boot.GrailsApp - Compilation Error: startup failed:
my-app/grails-app/controllers/testconsig1/Fileup1Controller.groovy: -1: The return type of java.lang.Object getGrailsApplication() in testconsig1.Fileup1Controller is incompatible with grails.core.GrailsApplication in grails.web.api.WebAttributes
. At [-1:-1] @ line -1, column -1.
1 error

@burtbeckwith
Copy link
Member

Controllers in Grails 2 and Grails 3 already have an implicit dependency injection for GrailsApplication, so you're adding a second. In Grails 2 it's not typed (def grailsApplication) but in Grails 3 it is typed (GrailsApplication grailsApplication), so you've effectively added an override, but with a less specific return type which is invalid. Just delete your def grailsApplication and use the one that's already there.

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

6 participants