Skip to content

Commit

Permalink
Merge pull request #244 from grails/restore-source-dependencies
Browse files Browse the repository at this point in the history
Add source set dependencies back to `integrationTestImplementation`
  • Loading branch information
puneetbehl authored Oct 30, 2023
2 parents 4415733 + b769649 commit 652b6d0
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 652b6d0

Please sign in to comment.