groovy / GMavenPlus

A rewrite of GMaven, a Maven plugin for Groovy
Other
282 stars 35 forks source link

Plugin not working with Groovy 4.0.11 #238

Closed wllianwd closed 1 year ago

wllianwd commented 1 year ago

After trying to update to groovy 4.0.11, plugin started failing.

Error:

[INFO] --- gmavenplus-plugin:2.1.0:compile (default) @ spock-subjects-collaborators-extension ---
[INFO] Using isolated classloader, without GMavenPlus classpath.
[INFO] Unable to get Groovy version from GroovySystem, trying InvokerHelper.
[WARNING] Unable to get Groovy version from InvokerHelper or GroovySystem, trying jar name.

...
[ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:2.1.0:compile (default) on project spock-subjects-collaborators-extension: Execution default of goal org.codehaus.gmavenplus:gmavenplus-plugin:2.1.0:compile failed: Unable to determine Groovy version. Is Groovy declared as a dependency? -> [Help 1]

Pom:

<project>
    ...
    <properties>
        ...
        <groovy.version>4.0.10</groovy.version> <!-- Updating this to 4.0.11 make it fail -->
    </properties>

    <build>
            <plugin>
                <groupId>org.codehaus.gmavenplus</groupId>
                <artifactId>gmavenplus-plugin</artifactId>
                <version>2.1.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>addSources</goal>
                            <goal>compile</goal>
                            <goal>groovydoc-jar</goal>
                            <goal>addTestSources</goal>
                            <goal>compileTests</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.groovy</groupId>
                        <artifactId>groovy</artifactId>
                        <version>${groovy.version}</version>
                        <scope>runtime</scope>
                    </dependency>
                </dependencies>
            </plugin>
    </build>
</project>
wllianwd commented 1 year ago

The groovy was corrupted locally 🤒

keeganwitt commented 1 year ago

Glad you got it figured out!