Skip to content

Commit

Permalink
Add source set dependencies back to integrationTestImplementation
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermocalvo committed Oct 27, 2023
1 parent 4415733 commit b769649
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import groovy.transform.CompileDynamic
import groovy.transform.CompileStatic
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.dsl.DependencyHandler
import org.gradle.api.tasks.SourceSet
import org.gradle.api.tasks.SourceSetContainer
import org.gradle.api.tasks.SourceSetOutput
Expand Down Expand Up @@ -61,6 +62,9 @@ class IntegrationTestGradlePlugin implements Plugin<Project> {
final File resources = new File(project.projectDir, "grails-app/conf")
integrationTest.resources.srcDir(resources)

final DependencyHandler dependencies = project.dependencies
dependencies.add("integrationTestImplementation", mainSourceSetOutput)
dependencies.add("integrationTestImplementation", testSourceSetOutput)
project.configurations.named("integrationTestImplementation") {
it.extendsFrom(project.configurations.named("testImplementation").get())
}
Expand Down

0 comments on commit b769649

Please sign in to comment.