-
Notifications
You must be signed in to change notification settings - Fork 89
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
[JENKINS-67974] Java 11 support for MemoryAssert#assertGC #324
Conversation
src/main/java/org/jenkinsci/maven/plugins/hpi/InitializeMojo.java
Outdated
Show resolved
Hide resolved
Ready, tested with Java 17 and my other PRs with Needs a change to the test harness to actually start bundling the hook, and upgrade insane, and get the integration tests to pass. I am preparing that PR next. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions but looks good.
@@ -22,13 +29,14 @@ | |||
* | |||
* @author Basil Crow | |||
*/ | |||
@Mojo(name = "initialize", defaultPhase = LifecyclePhase.INITIALIZE) | |||
@Mojo(name = "initialize", requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.INITIALIZE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would make more sense to do this in a test preparation phase if we can?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. I might split this out into a different mojo soonish in some separate PR.
src/main/java/org/jenkinsci/maven/plugins/hpi/InitializeMojo.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
Downstream of #322. Upstream of jenkinsci/jenkins-test-harness#400. Still in draft state pending the resolution of apache/netbeans#3743. Tested in Java 17 with
mvn clean verify -Dtest=org.jenkinsci.plugins.workflow.libs.LibraryMemoryTest -Djenkins.version=2.341 -Dhpi-plugin.version=3.27-SNAPSHOT
.