Skip to content

Commit

Permalink
Mark "integrationTest" and "dev" directories as test sources in IntelliJ
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-bcl committed Nov 6, 2024
1 parent 3843d6a commit d2756cc
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ plugins {
id("idea")
}

idea {
module {
isDownloadJavadoc = true
isDownloadSources = true
}
}

val agentDeps: Configuration by configurations.creating

dependencies {
Expand Down Expand Up @@ -81,6 +74,7 @@ subprojects {
plugin("jacoco-report-aggregation")
plugin("org.sonarqube")
plugin("com.gorylenko.gradle-git-properties")
plugin("idea")
plugin(JibConfigPlugin::class.java)
plugin(ClassPathPlugin::class.java)
}
Expand Down Expand Up @@ -116,4 +110,13 @@ subprojects {
.map { it.tasks.getByName("check") })
}
}

idea {
module {
testSources.from(sourceSets["dev"].allSource.srcDirs)
testResources.from(sourceSets["dev"].resources.srcDirs)
testSources.from(sourceSets["integrationTest"].allSource.srcDirs)
testResources.from(sourceSets["integrationTest"].resources.srcDirs)
}
}
}

0 comments on commit d2756cc

Please sign in to comment.