restfulapi / restful-api

Grails plugin to facilitate exposing non-trivial RESTful APIs
Apache License 2.0
52 stars 27 forks source link

Grails 2.4.3 #18

Open neoecos opened 9 years ago

neoecos commented 9 years ago

This projects is not able to run within Grails 2.4.3

I cloned the repo, ran grails set-grails-version 2.4.3 and then ran grails test-app

$ grails test-app
| Compiling 14 source files

  [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
  [groovyc] /home/sortiz/dev/tpaga/contrib/restful-api/target/plugins/release-2.2.1/src/groovy/grails/plugins/publish/svn/SvnDeployer.groovy: 7: unable to resolve class org.apache.commons.io.FilenameUtils
  [groovyc]  @ line 7, column 1.
  [groovyc]    import org.apache.commons.io.FilenameUtils
  [groovyc]    ^
  [groovyc] 
  [groovyc] /home/sortiz/dev/tpaga/contrib/restful-api/target/plugins/release-2.2.1/src/groovy/grails/plugins/publish/svn/SvnDeployer.groovy: 6: unable to resolve class org.apache.commons.io.FileUtils
  [groovyc]  @ line 6, column 1.
  [groovyc]    import org.apache.commons.io.FileUtils
  [groovyc]    ^
  [groovyc] 
  [groovyc] 2 errors
| Compiling 14 source files.
| Error Compilation error: startup failed:
/home/sortiz/dev/tpaga/contrib/restful-api/target/plugins/release-2.2.1/src/groovy/grails/plugins/publish/svn/SvnDeployer.groovy: 7: unable to resolve class org.apache.commons.io.FilenameUtils
 @ line 7, column 1.
   import org.apache.commons.io.FilenameUtils
   ^

/home/sortiz/dev/tpaga/contrib/restful-api/target/plugins/release-2.2.1/src/groovy/grails/plugins/publish/svn/SvnDeployer.groovy: 6: unable to resolve class org.apache.commons.io.FileUtils
 @ line 6, column 1.
   import org.apache.commons.io.FileUtils
   ^

2 errors
neoecos commented 9 years ago

I used GVM to install Grails 2.2.1 and runs smoothly

$ grails -version

Grails version: 2.2.1

$ grails test-app
| Compiling 3 source files

| Tests PASSED - view reports in /home/sortiz/dev/tpaga/contrib/restful-api/target/test-reports
sriddell commented 9 years ago

You can't run grails test-app in the root of the project - all the test suites are actually in test/test-restful-api. That's a dedicated grails app that references it as an in-place plugin and has the test suites.

The app is still developed against grails 2.2.1, and the test project is configured for that. Changes in grails in 2.3.x and 2.4.x require some changes to the test project in order to run, but the test suites do run against 2.3.x and 2.4.x (we test against 2.2.1, and the latest 2.3.x and 2.4.x on each release).

The instructions running the tests for the plugin against 2.2.x, 2.3.x and 2.4.x are located in docs/README-TESTING.md.

kengjungwa commented 9 years ago

In the BuildConfig.groovy, you might want to try putting grails.project.dependency.resolver = "maven"