Skip to content

Commit 6514e38

Browse files
committed
Clean-up Gradle
1 parent 8ae445c commit 6514e38

File tree

2 files changed

+11
-21
lines changed

2 files changed

+11
-21
lines changed

build.gradle.kts

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,7 @@ import org.gradle.kotlin.dsl.configure
1515
import org.gradle.kotlin.dsl.withType
1616
import org.jetbrains.dokka.gradle.DokkaTask
1717

18-
buildscript {
19-
dependencies {
20-
classpath("org.jetbrains.kotlinx:kotlinx-knit:0.4.0")
21-
}
22-
}
23-
24-
@Suppress("DSL_SCOPE_VIOLATION") plugins {
18+
plugins {
2519
application
2620
alias(libs.plugins.kotlin.multiplatform)
2721
alias(libs.plugins.arrow.kotlin)
@@ -30,11 +24,10 @@ buildscript {
3024
alias(libs.plugins.dokka)
3125
alias(libs.plugins.kover)
3226
alias(libs.plugins.kotlinx.serialization)
33-
id("com.vanniktech.maven.publish") version "0.25.3"
27+
alias(libs.plugins.publish)
28+
alias(libs.plugins.knit)
3429
}
3530

36-
apply(plugin = "kotlinx-knit")
37-
3831
repositories {
3932
mavenCentral()
4033
}
@@ -133,10 +126,10 @@ tasks {
133126

134127
withType<Detekt>().configureEach {
135128
reports {
136-
html.required by true
137-
sarif.required by true
138-
txt.required by false
139-
xml.required by false
129+
html.required.set(true)
130+
sarif.required.set(true)
131+
txt.required.set(false)
132+
xml.required.set(false)
140133
}
141134

142135
exclude("**/example/**")
@@ -147,7 +140,3 @@ tasks {
147140
if (name == "build") dependsOn(withType<Detekt>())
148141
}
149142
}
150-
151-
infix fun <T> Property<T>.by(value: T) {
152-
set(value)
153-
}

libs.versions.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ detekt = "1.23.1"
1111
kotest-arrow="1.4.0"
1212
kotlinx-json="1.6.0"
1313
kotlinx-knit="0.4.0"
14+
publish="0.25.3"
15+
knit="0.4.0"
1416

1517
[libraries]
1618
arrow-core = { module = "io.arrow-kt:arrow-core", version.ref = "arrow" }
@@ -32,12 +34,11 @@ kotlinx-knit-test = { module = "org.jetbrains.kotlinx:kotlinx-knit-test", versio
3234
[plugins]
3335
arrow-formatter = { id = "io.arrow-kt.arrow-gradle-config-formatter", version.ref = "arrowGradle" }
3436
arrow-kotlin = { id = "io.arrow-kt.arrow-gradle-config-kotlin", version.ref = "arrowGradle" }
35-
arrow-nexus = { id = "io.arrow-kt.arrow-gradle-config-nexus", version.ref = "arrowGradle" }
36-
arrow-publish = { id = "io.arrow-kt.arrow-gradle-config-publish", version.ref = "arrowGradle" }
37-
arrow-versioning = { id = "io.arrow-kt.arrow-gradle-config-versioning", version.ref = "arrowGradle" }
3837
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
3938
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
4039
kotest-multiplatform = { id = "io.kotest.multiplatform", version.ref = "kotest-plugin" }
4140
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
4241
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
4342
kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
43+
publish = { id = "com.vanniktech.maven.publish", version.ref="publish" }
44+
knit = { id = "org.jetbrains.kotlinx.knit", version.ref="knit" }

0 commit comments

Comments
 (0)