Questions tagged [gmavenplus]

GMaven Plus is a rewrite of GMaven, which integrates Groovy into the Maven build process

See also:

16 questions
4
votes
2 answers
3
votes
1 answer

Groovy 2.5.3 with Java 10 in Maven

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
Ken DeLong
  • 929
  • 2
  • 8
  • 27
2
votes
1 answer

How do I set a maven project property with a groovy script run with gmavenplus?

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…
Shea
  • 308
  • 5
  • 15
1
vote
0 answers

Using GMavenPlus to run spock groovy tests alongside java junit tests from maven surefire

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…
1
vote
1 answer

Groovyc and Java 12 preview feature

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:
Krzysztof Krasoń
  • 26,515
  • 16
  • 89
  • 115
1
vote
0 answers

Tell gmaven plugin to skip/exclude certain files

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. …
blindsnowmobile
  • 3,868
  • 6
  • 32
  • 47
1
vote
1 answer

Acessing the fully qualified path of a target folder within a groovy script in maven

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…
ycomp
  • 8,316
  • 19
  • 57
  • 95
1
vote
1 answer

Alternative to scriptPath when migrating GMaven to 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:
Sean Patrick Floyd
  • 292,901
  • 67
  • 465
  • 588
0
votes
1 answer

Integrating groovy in java in gradle

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…
0
votes
2 answers

Use compiled Groovy scripts with GMavenPlus plugin

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…
cdprete
  • 53
  • 1
  • 9
0
votes
1 answer

GMavenPlus: Groovy to JAR - Failed to find or load main class. Main class is present, manifest file appears valid

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…
Luponius
  • 89
  • 1
  • 8
0
votes
1 answer

Groovy Main method in maven submodule not automatically compiling before running

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.…
Damon
  • 305
  • 1
  • 5
  • 13
0
votes
1 answer

groovy-maven-plugin: How to add a dependency for executing groovy scripts?

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?
Tom Jerry
  • 307
  • 2
  • 10
0
votes
0 answers

getting compilation error when groovy class imported in java

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…
LowCool
  • 1,187
  • 5
  • 25
  • 51
0
votes
1 answer

Code change in Spock spec is not recognised in Idea

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…
pixel
  • 24,905
  • 36
  • 149
  • 251
1
2