Skip to content

Commit

Permalink
Merge pull request #17 from karvozavr/upgrade-the-world
Browse files Browse the repository at this point in the history
Upgrade kotlin=1.19.10 java=17 gradle=8.4
  • Loading branch information
elukianov authored Nov 7, 2023
2 parents f69d570 + 4f2d232 commit 8d50784
Show file tree
Hide file tree
Showing 16 changed files with 49 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up JDK 1.11
- name: Set up JDK 1.17
uses: actions/setup-java@v1
with:
java-version: 1.11
java-version: 1.17

- name: Build with Gradle
run: ./tools/scripts/buildWithE2e.sh
Expand Down
9 changes: 4 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@ subprojects {
}

repositories {
jcenter()
mavenCentral()
mavenLocal()
}

detekt {
config = files("$parentProjectDir/tools/detekt/detekt-config.yml")
buildUponDefaultConfig = true
input = files("src/main/kotlin", "src/test/kotlin", "src/test/gatling")
source = files("src/main/kotlin", "src/test/kotlin", "src/test/gatling")

reports {
html.enabled = true
Expand Down Expand Up @@ -123,15 +122,15 @@ subprojects {

withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
allWarningsAsErrors = failOnWarning
freeCompilerArgs = listOf("-Xjvm-default=enable")
freeCompilerArgs = listOf("-Xjvm-default=all-compatibility")
}
}

withType<JavaCompile> {
options.compilerArgs.add("-Xlint:all")
targetCompatibility = JavaVersion.VERSION_17.toString()
}

withType<Test> {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Global.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
object Global {
const val kotlin_version = "1.6.0"
const val kotlin_version = "1.9.10"
}
8 changes: 4 additions & 4 deletions buildSrc/src/main/kotlin/ProjectDependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object LibVers {
const val resilience4j_circuitbreaker = "1.7.1"
const val resilience4j_bulkhead = "1.7.1"
const val kbdd = "1.1.1"
const val koin = "2.0.1"
const val koin = "3.5.0"
const val rest_assured = "4.4.0"
const val corounit = "1.1.1"
const val spring_rabbit_test = "2.4.0"
Expand Down Expand Up @@ -76,7 +76,7 @@ object Libs {
const val testcontainers_core = "org.testcontainers:testcontainers:${LibVers.testcontainers}"
const val wiremock = "com.github.tomakehurst:wiremock-jre8:${LibVers.wiremock}"
const val kbdd = "ru.fix:kbdd:${LibVers.kbdd}"
const val koin = "org.koin:koin-core:${LibVers.koin}"
const val koin = "io.insert-koin:koin-core:${LibVers.koin}"
const val rest_assured = "io.rest-assured:rest-assured:${LibVers.rest_assured}"
const val rest_assured_kotlin = "io.rest-assured:kotlin-extensions:${LibVers.rest_assured}"
const val spring_rabbit_test = "org.springframework.amqp:spring-rabbit-test:${LibVers.spring_rabbit_test}"
Expand Down Expand Up @@ -108,7 +108,7 @@ object Libs {
object PluginVers {
const val kotlin = Global.kotlin_version
const val spring_boot = LibVers.spring_boot
const val detekt = "1.19.0"
const val detekt = "1.23.3"
const val detekt_formatting = detekt
const val spring_dependency_management = "1.0.11.RELEASE"
const val spring_kotlin = Global.kotlin_version
Expand All @@ -118,7 +118,7 @@ object PluginVers {
const val allure = "2.9.6"
const val allure_cli = "2.15.0"
const val allure_java = "2.15.0"
const val gatling = "3.7.2"
const val gatling = "3.9.5.6"
}

object Plugins {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package com.stringconcat.ddd.common.types.base

@Suppress("UnnecessaryAbstractClass")
abstract class AggregateRoot<T>(id: T, version: Version) : DomainEntity<T>(id, version)
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 4 additions & 0 deletions kitchen/application/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@ dependencies {
testFixturesImplementation(Libs.spring_rabbit_test)
testFixturesImplementation(Libs.spring_boot_starter_amqp)

}

tasks.build {
dependsOn("bootJar")
}
6 changes: 6 additions & 0 deletions shop/application/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.springframework.boot.gradle.tasks.bundling.BootJar

project.base.archivesName.set("shop-application")

plugins {
Expand Down Expand Up @@ -87,4 +89,8 @@ dependencies {
testFixturesImplementation(Libs.spring_boot_starter_web)
testFixturesImplementation(Libs.spring_boot_starter_amqp)

}

tasks.build {
dependsOn("bootJar")
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import com.stringconcat.ddd.tests.common.StandConfiguration
import io.qameta.allure.Epic
import io.qameta.allure.Story
import org.junit.jupiter.api.Test
import org.koin.core.KoinComponent
import org.koin.core.inject
import org.koin.core.component.KoinComponent
import org.koin.core.component.inject
import ru.fix.corounit.allure.invoke
import ru.fix.corounit.allure.repeatUntilSuccess

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.stringconcat.ddd.e2e.MealId
import com.stringconcat.ddd.e2e.OrderId
import com.stringconcat.ddd.e2e.Url
import io.kotest.matchers.shouldBe
import org.koin.core.KoinComponent
import org.koin.core.component.KoinComponent
import ru.fix.corounit.allure.Step
import ru.fix.kbdd.asserts.asString
import ru.fix.kbdd.asserts.isContains
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package com.stringconcat.ddd.e2e.steps
import com.stringconcat.ddd.e2e.ID
import com.stringconcat.ddd.e2e.OrderId
import com.stringconcat.ddd.tests.common.StandConfiguration
import org.koin.core.KoinComponent
import org.koin.core.inject
import org.koin.core.component.KoinComponent
import org.koin.core.component.inject
import ru.fix.corounit.allure.Step
import ru.fix.kbdd.asserts.get
import ru.fix.kbdd.asserts.isEquals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.stringconcat.ddd.e2e.mealName
import com.stringconcat.ddd.e2e.price
import io.kotest.matchers.shouldBe
import org.apache.http.HttpHeaders
import org.koin.core.KoinComponent
import org.koin.core.component.KoinComponent
import ru.fix.corounit.allure.Step
import ru.fix.kbdd.asserts.asString
import ru.fix.kbdd.asserts.get
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.stringconcat.ddd.e2e.steps

import com.stringconcat.ddd.e2e.Url
import org.koin.core.KoinComponent
import org.koin.core.component.KoinComponent
import ru.fix.corounit.allure.Step
import ru.fix.kbdd.asserts.isEquals
import ru.fix.kbdd.rest.Rest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.stringconcat.ddd.e2e.OrderId
import com.stringconcat.ddd.e2e.SELF
import com.stringconcat.ddd.e2e.Url
import io.kotest.matchers.shouldBe
import org.koin.core.KoinComponent
import org.koin.core.component.KoinComponent
import ru.fix.corounit.allure.Step
import ru.fix.kbdd.asserts.asString
import ru.fix.kbdd.asserts.filter
Expand Down
4 changes: 4 additions & 0 deletions tests/mock-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ dependencies {
}
}

tasks.build {
dependsOn("bootJar")
}

tasks.register<Copy>("copyPacts") {
val srcDir = "${rootProject.buildDir}/pacts"
val destDir = "${project.buildDir}/pacts"
Expand Down
14 changes: 14 additions & 0 deletions tools/detekt/detekt-config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
style:
NewLineAtEndOfFile:
active: false
ExplicitItLambdaParameter:
active: false


complexity:
Expand All @@ -17,6 +19,18 @@ formatting:
active: false
ImportOrdering:
active: false
Wrapping:
active: false
ArgumentListWrapping:
active: false
NoEmptyFirstLineInMethodBlock:
active: false


naming:
VariableNaming:
active: false


performance:
SpreadOperator:
Expand Down

0 comments on commit 8d50784

Please sign in to comment.