Skip to content

chore: Use ExecOperations #122

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

Merged
merged 1 commit into from
May 27, 2025
Merged

chore: Use ExecOperations #122

merged 1 commit into from
May 27, 2025

Conversation

slandelle
Copy link
Member

Motivation:

Project#javaExec is deprecated and will be removed in Gradle 9, see https://docs.gradle.org/8.14.1/userguide/upgrading_version_8.html#task_project

Motivation:

Project#javaExec is deprecated and will be removed in Gradle 9, see https://docs.gradle.org/8.14.1/userguide/upgrading_version_8.html#task_project
@slandelle slandelle requested a review from Isammoc May 27, 2025 10:26
@@ -81,6 +87,8 @@ class GatlingRunTask extends DefaultTask {
}
} else {
def gatlingExt = project.extensions.getByType(GatlingPluginExtension)
final def thisExecOperations = execOperations
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I don't do this, I get:

    Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'execOperations' for task ':gatlingRun' of type io.gatling.gradle.GatlingRunTask.
        at org.gradle.internal.metaobject.AbstractDynamicObject.getMissingProperty(AbstractDynamicObject.java:85)
        at org.gradle.internal.metaobject.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:62)
        at io.gatling.gradle.GatlingRunTask_Decorated.getProperty(Unknown Source)
        at io.gatling.gradle.GatlingRunTask$_gatlingRun_closure3.doCall$original(GatlingRunTask.groovy:100)
        at io.gatling.gradle.GatlingRunTask$_gatlingRun_closure3.doCall(GatlingRunTask.groovy)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you try with this.execOperations (instead of execOperations alone?)
I know that groovy try to find on it or on delegate when available

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I did, and it fails the same way. I agree it's a groovy issue and not a gradle one.

@slandelle slandelle merged commit bd895d5 into main May 27, 2025
1 check passed
@slandelle slandelle deleted the chore-exec-operations branch May 27, 2025 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants