Equivalent of mvn dependency:tree in Grails - grails

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)

Related

how can I install grails plugin in ant build?

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

Jasper Report plugin in Grails 3.1.8

Generate PDF file using jasper report in Grails 3.1.8 . But when I
add dependencies some error is occurred. I can't adding any jasper report dependencies
in Grails 3.1.8. Please help me or any idea to use jasper report plugin in grails 3.1.8.I already used
(1)
compile "org.grails.plugins:jasper:1.11.0"
(2)
compile 'com.lowagie:itext:2.1.7.js2'
compile 'net.sf.jasperreports:jasperreports:6.2.1'
The plugin org.grails.plugins:jasper:1.11.0 is not grails 3 compatible. It is only up to Grails 2.x
There is a plugin for Grails 3 version here.https://grails.org/plugins.html#plugin/grails-jasper.
In other hand, you could run grails dependency-report for seeing what it is happening. It seems that there is a conflict between dependencies. But as I said, that plugin probably won't work with your project.
I was having the same issue. I fixed it by downloading the jasper report jar and kept it in a folder named lib, then showed the path in dependencies like this.
compile files('lib/jasperreports-5.5.0.jar')

Target specific package when running Grails integration tests using Gradle

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.*"

How to integrate grails 3.0.5 project in GGTS 3.6.4

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.

Using a Grails 2.4.2 plugin as a JAR dependency in a Grails 2.2.0 project

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.

Resources