I am trying to upgrade my joint Java/Groovy projects to Java 10, but my hopes and aspirations appear to be being smashed upon the jagged rocks of Project Jigsaw.
The relevant section of my Maven 3.6.0 POM looks like
…
I have a pom file that uses a property that I'd like to set within an external groovy script. This groovy script needs some existing properties to determine what to set the new property is, but, when I set the property…
I am trying to run "spock groovy tests alongside java junit tests from maven surefire"
I followed the examples
https://github.com/groovy/GMavenPlus/wiki/Examples#joint-compilation…
I'm trying to compile a project that has some tests written in groovy.
The project has --enable-preview for Java 12.
I'm using gmavenplus-plugin to do that:
…
Is it possible to tell the gmaven plugin to "skip" the compilation of a single groovy file inside of a directory that has already been given as a source?
For some background, I'm using gmaven + junit to unit test some Jenkins pipeline libraries. …
How would I access the actual fully qualified path so that I can write a file to it in the groovy script?
the properties
target/generated-resources/config
the GMavenPlus…
I am migrating a legacy Maven build with the GMaven plugin to GMavenPlus and running into the issue that I don't know how I can call external Groovy classes from a local source folder inside my Groovy script.
Here's my previous setup:
…
Im trying to integrate groovy in java with build tools as gradle,
There are several examples with maven build, but with gradle its still missing.
I tried of adding plugin of groovy, but for compiler plugin like gmavenplus.
I try to add it as…
I'm trying to use the GMavenPlus Plugin to run some Groovy scripts from Maven which have been compiled and packaged into a jar.
The script is something very simple:
package foo.bar.scripts
import groovy.transform.Field
@Field
private static final…
I've done a successfull mvn clean install on the project I built and the structure appears correct, all classes included and manifest is under META-INF including class-paths and main-class. Not sure what's not matching up here, but the class…
I have a maven multi module groovy project. When I run a main method in a groovy class thats in one of the submodules, intellij is not re-compiling before running it. It always runs the version last compiled when I manually initiated maven:compile.…
I want to execute a small groovy script via the groovy-maven-plugin(or gmavenplus) during build, I need a third-party dependency, but the project itself doesn't need this dependency, how to add this dependency only for executing groovy scriptes?
This is rewrite of my previous question as that got confusing. basically I have groovy mix java maven project. I want to invoke my groovy class in java file I have written code like this
import login.Login;
import groovy.lang.GroovyObject;
import…
I have a simple PoC of a Spock integration with maven.
The problem I face is that when I modify code in Spock spec and run it in idea then change is not picked up and the old code is executed. I need to call mvn verify in order to reflect the…