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

Gradle plugin #746

Open
hugo-vrijswijk opened this issue Feb 23, 2021 · 1 comment
Open

Gradle plugin #746

hugo-vrijswijk opened this issue Feb 23, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@hugo-vrijswijk
Copy link
Member

We currently have a plugin for sbt and Maven. The question has come up a couple of times of late, so I think we need to track interest in support for Gradle as well.

Gradle has pretty good documentation for implementing a plugin. From the looks of it, it can be implemented as a simple library, so the development can be another sbt module.

Ideally, the implementation would be closer to sbt than the Maven plugin. For sbt, the sbt-interface is used, which is called programmatically from a process started by Stryker4s. I don't know if Gradle has a similar interface for test frameworks, or if we have to look at per-framework support and a generic solution.

Workaround

The command-runner can be used as a workaround to run Stryker4s on Gradle projects without a plugin.

stryker4s.conf:

stryker4s {
  mutate=["app/src/main/scala/**.scala"],
  test-runner: { command: "./gradlew", args: "test" }
}

Launching using coursier:

$ coursier launch io.stryker-mutator::stryker4s-command-runner:latest.release
@hugo-vrijswijk hugo-vrijswijk added the enhancement New feature or request label Feb 23, 2021
@YVbakker
Copy link
Contributor

will be possible after #1522

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

No branches or pull requests

2 participants