Skip to content

Commit aafe94e

Browse files
committed
chore: build components
1 parent ae82d29 commit aafe94e

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import com.vanniktech.maven.publish.SonatypeHost
2-
31
group = "com.trendyol"
42

53
plugins {
@@ -21,7 +19,7 @@ subprojectsOf("projects") {
2119

2220
spotless {
2321
kotlin {
24-
ktlint()
22+
ktlint(rootProject.libs.ktlint.cli.get().version)
2523
.setEditorConfigPath(rootProject.layout.projectDirectory.file(".editorconfig"))
2624
}
2725
}
@@ -32,7 +30,7 @@ subprojectsOf("projects") {
3230

3331
mavenPublishing {
3432
coordinates(groupId = rootProject.group.toString(), artifactId = project.name, version = rootProject.version.toString())
35-
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
33+
publishToMavenCentral()
3634
pom {
3735
name.set(project.name)
3836
description.set(project.properties["projectDescription"].toString())

buildSrc/src/main/kotlin/Helpers.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import org.gradle.api.*
2-
import org.gradle.api.provider.Property
32
import org.gradle.kotlin.dsl.invoke
43

54
fun Project.subprojectsOf(
@@ -21,7 +20,3 @@ fun Collection<Project>.of(
2120
): List<Project> = this.filter {
2221
parentProjects.contains(it.parent?.name) && !except.contains(it.name)
2322
}
24-
25-
infix fun <T> Property<T>.by(value: T) {
26-
set(value)
27-
}

gradle/libs.versions.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ quarkus = "3.24.2"
99
jakarta = "4.1.0"
1010
spring-boot-2x = "2.7.18"
1111
spring-boot-3x = "3.5.3"
12+
ktlint = "1.6.0"
1213

1314
[libraries]
1415
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx" }
@@ -25,6 +26,7 @@ spring-boot-3x-starter-test = { module = "org.springframework.boot:spring-boot-s
2526

2627
spring-boot-2x-starter = { module = "org.springframework.boot:spring-boot-starter", version.ref = "spring-boot-2x" }
2728
spring-boot-2x-starter-test = { module = "org.springframework.boot:spring-boot-starter-test", version.ref = "spring-boot-2x" }
29+
ktlint-cli = { module = "com.pinterest.ktlint:ktlint-cli", version.ref = "ktlint" }
2830

2931
# test
3032
kotest-property-jvm = { module = "io.kotest:kotest-property-jvm", version.ref = "kotest" }
@@ -41,6 +43,6 @@ detekt-formatting = { module = "io.gitlab.arturbosch.detekt:detekt-formatting",
4143
kover = { id = "org.jetbrains.kotlinx.kover", version = "0.9.1" }
4244
testLogger = { id = "com.adarshr.test-logger", version = "4.0.0" }
4345
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
44-
spotless = { id = "com.diffplug.spotless", version = "7.0.4" }
46+
spotless = { id = "com.diffplug.spotless", version = "7.1.0" }
4547
quarkus = { id = "io.quarkus", version.ref = "quarkus" }
4648
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.33.0" }

gradle/wrapper/gradle-wrapper.jar

1.65 KB
Binary file not shown.

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)