Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from GMaven to GMavenPlus #1745

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

keeganwitt
Copy link

@keeganwitt keeganwitt commented Nov 5, 2023

Splitting the migration to GMavenPlus in #1742 into a separate PR.

@appiepollo14
Copy link

Works perfectly on JDK11!

@keeganwitt
Copy link
Author

Works perfectly on JDK11!

Ah, interesting. I was getting some weird Mockito errors I didn't understand on Java 8.

@appiepollo14
Copy link

No I'm sorry, It doesn't work like a charm. Mvn clean package does work in fact. But mvn clean install throws the same errors on the integration tests as I've written in my pull request. IMO some groovy exception throwing is different once switching to gmavenplus....?

@appiepollo14
Copy link

Checkout master, build with JDK 8, works
Checkout master, build with JDK 11 to java 1.8, exception in phase 'class generation' in source unit, unsupported Target MODULE
Checkout master, build with JDK 11, to java 11, with gmavenplus, throws errors as mentioned earlier.

Any guidance?

@keeganwitt
Copy link
Author

I don't understand yet why changing plugins would cause a change in behavior. The only thing I can guess is that there's different versions of Groovy dependencies on the classpath during compilation, but I haven't found them yet.

@appiepollo14
Copy link

Hi @keeganwitt did you figure anything out or have any ideas on how to figure it out? If not I'm kinda stuck

@keeganwitt
Copy link
Author

Hi @keeganwitt did you figure anything out or have any ideas on how to figure it out? If not I'm kinda stuck

Not yet. I've reached out to the other Groovy devs to see if they have any ideas. This seems very strange.

@keeganwitt
Copy link
Author

keeganwitt commented Nov 9, 2023

I can't even build the main branch on Windows, even when using Docker like

docker run --rm -v "${HOME}/.m2:/root/.m2" -v "${pwd}:/project" -w /project maven:3.8-eclipse-temurin-8 mvn clean test

I get multiple package does not exist and "cannot find symbol" compilation errors.

@appiepollo14
Copy link

@keeganwitt Im no windhoos user so I can't guide you 🥺

@keeganwitt
Copy link
Author

What's strange is I'm getting lots of errors like

[ERROR] /project/modules/json-schema-validator/src/main/java/io/restassured/module/jsv/JsonSchemaValidator.java:[188,29] cannot find symbol
[ERROR]   symbol:   class JsonSchemaFactory
[ERROR]   location: class io.restassured.module.jsv.JsonSchemaValidator

And neither JsonSchemaFactory or JsonSchemaValidator are Groovy classes.

@keeganwitt keeganwitt marked this pull request as ready for review November 22, 2023 03:32
@keeganwitt
Copy link
Author

Integration tests are failing, but compilation is succeeding.

@johanhaleby
Copy link
Collaborator

johanhaleby commented Dec 8, 2023

What's the status here? Can we get the tests to work? I would love to make this switch.

@keeganwitt
Copy link
Author

I'm having trouble understanding why it is the tests are failing. I need to understand the tests better I guess.

@appiepollo14
Copy link

@johanhaleby can you take a look and explain the tests that are failing. Or determine whether they fail as expected or because of the gmaven upgrade and wether we should change the tests accordingly.

@keeganwitt
Copy link
Author

keeganwitt commented Dec 17, 2023

I'm not sure why. But the tests on this branch pass when I run them in an Ubuntu VM. It appears the tests require they be run on Linux.

@keeganwitt
Copy link
Author

I created #1757 to ensure the changes run successfully before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants