Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
osoykan committed Jan 21, 2025
1 parent 6334c66 commit 48b0099
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
11 changes: 0 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import org.gradle.kotlin.dsl.libs
import org.gradle.plugins.ide.idea.model.IdeaModel
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
kotlin("jvm").version(libs.versions.kotlin)
alias(libs.plugins.dokka)
alias(libs.plugins.spotless)
alias(libs.plugins.testLogger)
alias(libs.plugins.kover)
Expand All @@ -18,10 +16,6 @@ plugins {
group = "com.trendyol"
version = CI.version(project)

allprojects {
extra.set("dokka.outputDirectory", rootDir.resolve("docs"))
}

kover {
reports {
filters {
Expand Down Expand Up @@ -53,7 +47,6 @@ subprojects.of("lib", "spring", "examples", "ktor") {
apply {
plugin("kotlin")
plugin(rootProject.libs.plugins.spotless.get().pluginId)
plugin(rootProject.libs.plugins.dokka.get().pluginId)
plugin(rootProject.libs.plugins.testLogger.get().pluginId)
plugin(rootProject.libs.plugins.kover.get().pluginId)
plugin(rootProject.libs.plugins.detekt.get().pluginId)
Expand Down Expand Up @@ -156,7 +149,3 @@ subprojects.of("lib", "spring", "ktor", filter = { p -> publishedProjects.contai
}
}

tasks.withType<DokkaMultiModuleTask>().configureEach {
outputDirectory.set(file(rootDir.resolve("docs/source")))
}

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package com.trendyol.stove.testing.e2e.standalone.kafka
import com.github.benmanes.caffeine.cache.*

object Caching {
fun <K, V> of(): Cache<K, V> = Caffeine.newBuilder().build()
fun <K : Any, V : Any> of(): Cache<K, V> = Caffeine.newBuilder().build()
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package com.trendyol.stove.testing.e2e.wiremock

import com.github.benmanes.caffeine.cache.Cache

fun <K, V> Cache<K, V>.containsKey(key: K): Boolean = this.getIfPresent(key) != null
fun <K : Any, V : Any> Cache<K, V>.containsKey(key: K): Boolean = this.getIfPresent(key) != null
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package com.trendyol.stove.testing.e2e.kafka
import com.github.benmanes.caffeine.cache.*

object Caching {
fun <K, V> of(): Cache<K, V> = Caffeine.newBuilder().build()
fun <K : Any, V : Any> of(): Cache<K, V> = Caffeine.newBuilder().build()
}

0 comments on commit 48b0099

Please sign in to comment.