Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions data-redis-cache/build.gradle

This file was deleted.

34 changes: 34 additions & 0 deletions data-redis-cache/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
plugins {
java
id("org.springframework.boot") version "3.5.4"
id("io.spring.dependency-management") version "1.1.7"
Comment on lines +3 to +4

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The org.springframework.boot plugin already applies the io.spring.dependency-management plugin, so applying it explicitly is redundant. You can remove it to simplify your build script.

plugins {
    java
    id("org.springframework.boot") version "3.5.4"
}

}

group = "zin.rashidi"
version = "0.0.1-SNAPSHOT"

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}

repositories {
mavenCentral()
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-data-redis")
runtimeOnly("org.postgresql:postgresql")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.boot:spring-boot-testcontainers")
testImplementation("org.testcontainers:junit-jupiter")
testImplementation("org.testcontainers:postgresql")
testImplementation("com.redis:testcontainers-redis")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The spring-boot-starter-test dependency includes all necessary components for running JUnit 5 tests, making the junit-platform-launcher dependency redundant with modern Gradle setups. It can be removed to simplify your dependency graph.

testRuntimeOnly("org.junit.platform:junit-platform-launcher")

}

tasks.named<Test>("test") {
useJUnitPlatform()
}
1 change: 0 additions & 1 deletion data-redis-cache/settings.gradle

This file was deleted.

1 change: 1 addition & 0 deletions data-redis-cache/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "data-redis-cache"
Loading