Skip to content

Commit c15999e

Browse files
bnormdemiurg906
authored andcommitted
Mark the test-gen directory as a generated source in IDEA
1 parent 443cc94 commit c15999e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

compiler-plugin/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
kotlin("jvm")
33
`java-test-fixtures`
44
id("com.github.gmazzo.buildconfig")
5+
idea
56
}
67

78
sourceSets {
@@ -14,10 +15,14 @@ sourceSets {
1415
}
1516
test {
1617
java.setSrcDirs(listOf("test", "test-gen"))
17-
resources.setSrcDirs(listOf("testResources"))
18+
resources.setSrcDirs(listOf("testData"))
1819
}
1920
}
2021

22+
idea {
23+
module.generatedSourceDirs.add(projectDir.resolve("test-gen"))
24+
}
25+
2126
val annotationsRuntimeClasspath: Configuration by configurations.creating { isTransitive = false }
2227

2328
dependencies {

0 commit comments

Comments
 (0)