Skip to content

Commit

Permalink
moved java classes to kotlin to avoid verification errors (redhat-dev…
Browse files Browse the repository at this point in the history
…eloper#780)

Signed-off-by: Andre Dietisheim <[email protected]>
  • Loading branch information
adietish committed Oct 24, 2024
1 parent 1033840 commit 99545a1
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 1 deletion.
9 changes: 9 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 @@ -134,6 +135,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 99545a1

Please sign in to comment.