File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
gradle-api/src/main/kotlin/io/spine/protodata/gradle
gradle-plugin/src/functionalTest/resources/custom-paths Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 27
27
package io.spine.protodata.gradle
28
28
29
29
import com.google.common.collect.Multimap
30
+ import org.gradle.api.provider.Provider
30
31
import org.gradle.api.tasks.SourceSet
31
32
32
33
/* *
@@ -79,6 +80,15 @@ public interface CodegenSettings {
79
80
*/
80
81
public val paths: Multimap <String , SourcePaths >
81
82
83
+ /* *
84
+ * Configures a particular launch of ProtoData for the given source set.
85
+ *
86
+ * @param sourceSet the source set for which ProtoData is launched.
87
+ * @param configure the block configuring the launch.
88
+ */
89
+ public fun launchFor (sourceSet : Provider <SourceSet >, configure : Launch .() -> Unit ): Unit =
90
+ launchFor(sourceSet.get().name, configure)
91
+
82
92
/* *
83
93
* Configures a particular launch of ProtoData for the given source set.
84
94
*
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ protoData {
63
63
}
64
64
}
65
65
66
- launchFor(sourceSets.test.get() ) {
66
+ launchFor(sourceSets.test) {
67
67
sourceFileSet {
68
68
source = " $buildDir /generated-proto/test/kotlin"
69
69
target = " $buildDir /footest"
You can’t perform that action at this time.
0 commit comments