Skip to content

Instantly share code, notes, and snippets.

@AlexHuicu
Last active June 7, 2021 12:28
Show Gist options
  • Save AlexHuicu/7cef6d49e50442fcacfd33d9fb7dfb99 to your computer and use it in GitHub Desktop.
Save AlexHuicu/7cef6d49e50442fcacfd33d9fb7dfb99 to your computer and use it in GitHub Desktop.
Gradle setup for TestParameterInjector
gradle.projectsEvaluated {
tasks.withType(JavaCompile) { // For Java tests
options.compilerArgs << "-parameters"
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {// For Kotlin tests
kotlinOptions.freeCompilerArgs += ['-java-parameters']
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment