I can target a specific package with the grails command:
grails test-app com.mypackage.* -integration
How to do the same using Gradle wrapper?
Tried ./gradlew integrationTest com.mypackage.*, but no luck.
(Grails 3.1.10, Gradle wrapper 2.13)
./gradlew iT --tests "com.mypackage.*"
Related
I am using ant build tool for my Grails 1.3.7 project.
I verified all Grails 1.3.7 documentation too. Even I am not able to find how to install(add) a plugin in ant build tool(build.xml).
Install with grails install-plugin /home/user/grails-someplugin-1.0.zip
I am using IDEA 15. I have a grails 3 project setup. The app server I need to deploy to has Java Version 7. My local JDK is Java 8. I have set some properties in my build.gradle to use the target version 1.7.
apply plugin: 'java'
compileJava {
targetCompatibility = '1.7'
}
When I rebuild my project, it generates class files for 1.7, but when I run a maven war build from the IDEA menu, the classes are rebuilt and end up being Java 8 versions. I have set Java version in my project to 1.7 as well, but this did not help. How can I get to where I am producing a war file from my grails app that contains 1.7 versioned class files?
Thanks!
What are you using to build war file? "grails war" or "gradle war". Try to use gradle.
I am using grails-3.0.5 cause of i want to use groovy 2.4.4.
I created project by command
>grails create-app Student
>grails clean
Fine its working and created project.
But when i executed below command then command is there.
>grails integrate-with --eclipse
Can anyone help me how to integrate with eclipse.
I don't use eclipse and don't know what kind of integration do you mean, but grails 3 is using gradle as a build tool and eclipse plugin is added automatically to the build.gradle file. You can execute ./gradlew eclipse (or on windows gradlew.bat eclipse) to generate all eclipse related files.
To clean eclipse files you can use: ./gradlew cleanEclipse.
I have a custom plugin built using Grails 2.4.2 that is to be used with multiple Grails projects as a regular JAR dependency. I have successfully exported the plugin as JAR and installed into my local Maven repository and added the corresponding dependency statements in the "dependencies" block of the BuildConfig.groovy files of the respective parent projects. e.g.:
compile 'my_package:my_custom_plugin:1.0'
One of the parent project is build using Grails 2.4.2. When I run that project with the above mentioned configuration using the command: grails run-app, it runs fine without any errors.
However, when I do the same kind of configuration in another project built using Grails 2.2.0 and run it using the command: grails run-app, it gives the following error:
Error | Fatal error during compilation org.apache.tools.ant.BuildException: java.lang.NoClassDefFoundError: org/grails/datastore/mapping/dirty/checking/DirtyCheckable (Use --stacktrace to see the full trace)
NOTE: Both these parent projects run fine when I add the same plugin as a plugin instead of as a JAR dependency using the statement like this in the BuildConfig.groovy:
grails.plugin.location."my_custom_plugin" = "../my_custom_plugin/"
Can anybody kindly guide me as to how can I resolve this issue?
Any help would be greatly appreciated.
I am trying to find out some dependencies added to a grails plugin that I am using in my grails project. Is there any equivalent of maven command mvn dependency:tree in Grails/Ivy
How about grails dependency-report (docs)