We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2e7dea commit b3a1347Copy full SHA for b3a1347
plugin/android-junit5/build.gradle.kts
@@ -94,9 +94,6 @@ val versionClassTask = tasks.register<Copy>("createVersionClass") {
94
)
95
outputs.upToDateWhen { false }
96
}
97
-tasks.named("compileKotlin").configure {
98
- dependsOn(versionClassTask)
99
-}
100
sourceSets {
101
main {
102
java.srcDir("build/generated/sources/plugin")
@@ -138,3 +135,10 @@ dependencies {
138
135
139
136
140
137
project.configureDeployment(Artifacts.Plugin)
+
+// Register source-processing tasks as dependants of the custom source generation task
+listOf("compileKotlin", "androidSourcesJar", "dokkaJavadoc").forEach { taskName ->
141
+ tasks.named(taskName).configure {
142
+ dependsOn(versionClassTask)
143
+ }
144
+}
0 commit comments