Skip to content

Commit

Permalink
moved java classes to kotlin to avoid verification errors (#780)
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Dietisheim <[email protected]>
  • Loading branch information
adietish committed Oct 24, 2024
1 parent 1033840 commit 714b309
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
alias(libs.plugins.gradleIntelliJPlugin) // Gradle IntelliJ Plugin
alias(libs.plugins.kotlinJvm)
id("idea")
id("java")
}

group = "com.redhat.devtools.intellij"
Expand Down Expand Up @@ -110,6 +111,14 @@ intellijPlatform {
}

tasks {
compileJava {
options.isIncremental = false
}

compileKotlin {
incremental = false
}

wrapper {
gradleVersion = providers.gradleProperty("gradleVersion").get()
}
Expand All @@ -134,6 +143,14 @@ configurations.all {
}

sourceSets {
main {
java.srcDir("src/main/kotlin")
kotlin.srcDir("src/main/kotlin")
}
test {
java.srcDir("src/test/kotlin")
kotlin.srcDir("src/test/kotlin")
}
create("it") {
description = "integrationTest"
compileClasspath += sourceSets.main.get().compileClasspath + sourceSets.test.get().compileClasspath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
******************************************************************************/
package com.redhat.devtools.intellij.kubernetes.model.mocks

import io.fabric8.kubernetes.client.Config
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.anyOrNull
import com.nhaarman.mockitokotlin2.doAnswer
Expand Down Expand Up @@ -209,7 +210,7 @@ object Mocks {
fun clientConfig(
currentContext: NamedContext?,
allContexts: List<NamedContext>,
configuration: io.fabric8.kubernetes.client.Config = mock()
configuration: Config = mock()
): ClientConfig {
val saveFuture: CompletableFuture<Boolean> = mock()
return mock {
Expand Down

0 comments on commit 714b309

Please sign in to comment.