File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
gradle-conventions/src/main/kotlin Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
- import gradle.kotlin.dsl.accessors._46680087f5e33e6a2d850d9e9b86aaa7.main
6
5
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
7
6
import util.csm.ProcessCsmTemplate
8
7
import util.other.libs
9
8
import kotlin.io.path.createDirectories
10
9
11
10
val kotlin = the<KotlinJvmProjectExtension >()
12
11
13
- val templatesDir = kotlin.sourceSets.main.map {
12
+ val mainSourceSet = kotlin.sourceSets.named(" main" )
13
+ val templatesDir = mainSourceSet.map {
14
14
it.kotlin.srcDirs.single { dir -> dir.name == " kotlin" }.toPath().parent.resolve(" templates" )
15
15
}
16
16
@@ -28,6 +28,6 @@ val processCsmTemplates =
28
28
sourcesDir,
29
29
)
30
30
31
- kotlin.sourceSets.main {
31
+ mainSourceSet.configure {
32
32
kotlin.srcDirs(processCsmTemplates.map { it.sourcesDir })
33
33
}
You can’t perform that action at this time.
0 commit comments