Skip to content

Commit 855c5d2

Browse files
adwsinghrhernandez35
authored andcommitted
Mark integrationTest sourcesets as test in IntelliJ
1 parent 0fd419b commit 855c5d2

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import org.jreleaser.model.Active
55
plugins {
66
base
77
alias(libs.plugins.jreleaser)
8+
idea
89
}
910

1011
task("addGitHooks") {
@@ -77,3 +78,20 @@ jreleaser {
7778
}
7879
}
7980
}
81+
82+
83+
subprojects {
84+
plugins.withId("java") {
85+
apply(plugin = "idea")
86+
afterEvaluate {
87+
val sourceSets = the<SourceSetContainer>()
88+
sourceSets.findByName("it")?.let {
89+
idea {
90+
module {
91+
testSources.from(sourceSets["it"].java.srcDirs)
92+
}
93+
}
94+
}
95+
}
96+
}
97+
}

0 commit comments

Comments
 (0)