Skip to content

Commit 1d9a587

Browse files
committed
Cleanup gradle scripts
1 parent 44fa307 commit 1d9a587

File tree

5 files changed

+4
-28
lines changed

5 files changed

+4
-28
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
alias(libs.plugins.kotlin.mutliplatform) apply false
33
alias(libs.plugins.kotlin.binaryCompatibility)
44
alias(libs.plugins.nexus.publish)
5-
id("convention.properties")
5+
convention.properties
66
}
77

88
allprojects {

buildSrc/src/main/kotlin/convention.properties.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ allprojects {
88
ext["ossrhPassword"] = ""
99

1010
val secretPropsFile: File = project.rootProject.file("local.properties")
11-
@Suppress("IMPLICIT_CAST_TO_ANY")
1211
if (secretPropsFile.exists()) {
1312
secretPropsFile
1413
.reader()

generator/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ graphql {
3939

4040
ktlint {
4141
version.set(libs.versions.ktlint)
42-
debug.set(true)
4342
reporters {
4443
reporter(ReporterType.HTML)
4544
}

json-schema-validator/build.gradle.kts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plugins {
1313
alias(libs.plugins.detekt)
1414
alias(libs.plugins.ktlint)
1515
alias(libs.plugins.kotlin.dokka)
16-
id("convention.publication")
16+
convention.publication
1717
}
1818

1919
val generatedSourceDirectory: Provider<Directory> = layout.buildDirectory.dir("generated/source/unicode")
@@ -141,13 +141,7 @@ kotlin {
141141
}
142142
}
143143
js(IR) {
144-
browser {
145-
commonWebpackConfig {
146-
cssSupport {
147-
enabled.set(true)
148-
}
149-
}
150-
}
144+
browser()
151145
generateTypeScriptDefinitions()
152146
nodejs()
153147
}

test-suites/build.gradle.kts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,6 @@ kotlin {
7171
implementation(libs.kotest.runner.junit5)
7272
}
7373
}
74-
75-
// in order to support test suites for all targets I have to use the expect/actual functionality
76-
// but some of the targets does not have test tasks (but they are in the sources)
77-
// so I remove them to let the compiler check that all actual implementations are in place
78-
listOf(
79-
macOsTargets,
80-
linuxTargets,
81-
windowsTargets,
82-
).asSequence().flatten().forEach {
83-
if (it is KotlinTargetWithTests<*, *>) {
84-
// don't need to remove test sources from targets with tests
85-
return@forEach
86-
}
87-
val sourceSetForTarget = getByName("${it.name}Test")
88-
remove(sourceSetForTarget)
89-
}
9074
}
9175

9276
afterEvaluate {
@@ -118,7 +102,7 @@ kotlin {
118102
}
119103

120104
dependencies {
121-
kover(project(":json-schema-validator"))
105+
kover(projects.jsonSchemaValidator)
122106
}
123107

124108
private val remotesFile =

0 commit comments

Comments
 (0)