Skip to content

Commit

Permalink
chore(dependencies): upgrade spring boot to v3.1.5 #0
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamHavlicek committed Nov 10, 2023
1 parent b80410f commit ec28510
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 27 deletions.
11 changes: 7 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id("org.springframework.boot") version "2.7.17"
id("org.springframework.boot") version "3.1.5"
id("io.spring.dependency-management") version "1.1.3"
id("org.jetbrains.kotlin.plugin.noarg") version "1.9.20"
kotlin("jvm") version "1.9.20"
Expand All @@ -11,7 +11,7 @@ plugins {

group = "com.app"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_18
java.sourceCompatibility = JavaVersion.VERSION_21

noArg {
annotation("jakarta.persistence.Entity")
Expand All @@ -30,7 +30,7 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-validation")
testImplementation("org.springframework.boot:spring-boot-starter-test")
developmentOnly("org.springframework.boot:spring-boot-devtools")
implementation("com.linecorp.kotlin-jdsl:spring-data-kotlin-jdsl-starter:2.2.1.RELEASE")
implementation("com.linecorp.kotlin-jdsl:spring-data-kotlin-jdsl-starter-jakarta:2.2.1.RELEASE")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.junit.jupiter:junit-jupiter:5.9.0")
Expand All @@ -51,11 +51,14 @@ dependencies {
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "18"
jvmTarget = "21"
}
}

tasks.withType<Test>().configureEach {
useJUnitPlatform()
}

tasks.bootBuildImage {
builder.set("paketobuildpacks/builder-jammy-base:latest")
}
2 changes: 1 addition & 1 deletion src/main/kotlin/com/app/TodoDDDApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ import org.springframework.context.annotation.Bean
class TodoDDDApplication

fun main(args: Array<String>) {
val context = runApplication<TodoDDDApplication>(*args)
runApplication<TodoDDDApplication>(*args)
}
2 changes: 1 addition & 1 deletion src/main/kotlin/com/app/features/todo/data/models/Todo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.app.features.todo.domain.entities.Todo as TodoEntity
import org.hibernate.annotations.DynamicUpdate
import org.springframework.data.annotation.LastModifiedDate
import java.util.Date
import javax.persistence.*
import jakarta.persistence.*

@Entity(name = "Todos")
@DynamicUpdate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.app.features.todo.domain.repositories.ITodoRepository
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.repository.findByIdOrNull
import org.springframework.stereotype.Repository
import javax.transaction.Transactional
import jakarta.transaction.Transactional
import com.app.features.todo.domain.entities.Todo as TodoEntity

interface ITodoJpaRepository : JpaRepository<Todo, Int>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import com.linecorp.kotlinjdsl.querydsl.expression.column
import com.linecorp.kotlinjdsl.spring.data.listQuery
import com.linecorp.kotlinjdsl.spring.data.singleQuery
import org.springframework.stereotype.Service
import javax.persistence.EntityManager
import javax.persistence.NoResultException
import javax.persistence.PersistenceContext
import javax.transaction.Transactional
import jakarta.persistence.EntityManager
import jakarta.persistence.NoResultException
import jakarta.persistence.PersistenceContext
import jakarta.transaction.Transactional

@Service
class TodoQueryServiceImpl(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.app.features.todo.domain.entities

import javax.validation.constraints.Min
import javax.validation.constraints.NotEmpty
import jakarta.validation.constraints.Min
import jakarta.validation.constraints.NotEmpty


data class TodoCreateModel(
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/app/features/user/data/models/User.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.app.features.user.domain.entities.UserReadModel
import org.hibernate.annotations.DynamicUpdate
import org.springframework.data.annotation.LastModifiedDate
import java.util.*
import javax.persistence.*
import jakarta.persistence.*
import com.app.features.user.domain.entities.User as UserEntity

@Entity(name = "Users")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.repository.findByIdOrNull
import org.springframework.stereotype.Repository
import java.util.*
import javax.transaction.Transactional
import jakarta.transaction.Transactional
import com.app.features.user.domain.entities.User as UserEntity


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import com.linecorp.kotlinjdsl.querydsl.expression.column
import com.linecorp.kotlinjdsl.spring.data.SpringDataQueryFactory
import com.linecorp.kotlinjdsl.spring.data.singleQuery
import org.springframework.stereotype.Service
import javax.persistence.EntityManager
import javax.persistence.NoResultException
import javax.persistence.PersistenceContext
import javax.transaction.Transactional
import jakarta.persistence.EntityManager
import jakarta.persistence.NoResultException
import jakarta.persistence.PersistenceContext
import jakarta.transaction.Transactional

@Service
class UserQueryServiceImpl(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package com.app.features.user.domain.entities

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import io.swagger.v3.oas.annotations.media.Schema
import javax.validation.constraints.Email
import javax.validation.constraints.Size
import javax.validation.constraints.NotEmpty
import javax.validation.constraints.NotNull
import jakarta.validation.constraints.Email
import jakarta.validation.constraints.Size
import jakarta.validation.constraints.NotEmpty
import jakarta.validation.constraints.NotNull


@Schema(description = "User create DTO")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package com.app.features.user.domain.entities

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import io.swagger.v3.oas.annotations.media.Schema
import javax.validation.constraints.Email
import javax.validation.constraints.NotEmpty
import javax.validation.constraints.Size
import jakarta.validation.constraints.Email
import jakarta.validation.constraints.NotEmpty
import jakarta.validation.constraints.Size

@Schema(description = "User update DTO")
@JsonIgnoreProperties(ignoreUnknown = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import org.springframework.http.server.reactive.ServerHttpRequest
import org.springframework.web.bind.annotation.*
import org.springframework.web.context.annotation.RequestScope
import java.net.URI
import javax.validation.Valid
import jakarta.validation.Valid


@RestController
Expand Down

0 comments on commit ec28510

Please sign in to comment.