Skip to content

Commit 548a221

Browse files
Whatever gradle wants
1 parent dbe222b commit 548a221

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

sdk-common/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import org.jetbrains.dokka.gradle.AbstractDokkaTask
2+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
23

34
plugins {
45
`java-library`
@@ -83,6 +84,7 @@ val generateVersionClass =
8384

8485
tasks {
8586
withType<JavaCompile>().configureEach { dependsOn(generateVersionClass) }
87+
withType<KotlinCompile>().configureEach { dependsOn(generateVersionClass) }
8688
withType<org.gradle.jvm.tasks.Jar>().configureEach { dependsOn(generateVersionClass) }
8789
withType<AbstractDokkaTask>().configureEach { dependsOn(generateVersionClass) }
8890
}

sdk-core/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import org.gradle.kotlin.dsl.withType
12
import org.jetbrains.dokka.gradle.AbstractDokkaTask
3+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
24

35
plugins {
46
`java-library`
@@ -100,6 +102,7 @@ protobuf { protoc { artifact = "com.google.protobuf:protoc:$protobufVersion" } }
100102

101103
tasks {
102104
withType<JavaCompile> { dependsOn(generateJsonSchema2Pojo, generateProto) }
105+
withType<KotlinCompile>().configureEach { dependsOn(generateJsonSchema2Pojo, generateProto) }
103106
withType<org.gradle.jvm.tasks.Jar>().configureEach {
104107
dependsOn(generateJsonSchema2Pojo, generateProto)
105108
}

0 commit comments

Comments
 (0)