Skip to content

Commit 3ad4637

Browse files
authored
Migrate gradle build script to kotlin
1 parent f42c11b commit 3ad4637

File tree

4 files changed

+35
-35
lines changed

4 files changed

+35
-35
lines changed

data-redis-cache/build.gradle

Lines changed: 0 additions & 34 deletions
This file was deleted.

data-redis-cache/build.gradle.kts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
plugins {
2+
java
3+
id("org.springframework.boot") version "3.5.4"
4+
id("io.spring.dependency-management") version "1.1.7"
5+
}
6+
7+
group = "zin.rashidi"
8+
version = "0.0.1-SNAPSHOT"
9+
10+
java {
11+
toolchain {
12+
languageVersion = JavaLanguageVersion.of(21)
13+
}
14+
}
15+
16+
repositories {
17+
mavenCentral()
18+
}
19+
20+
dependencies {
21+
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
22+
implementation("org.springframework.boot:spring-boot-starter-data-redis")
23+
runtimeOnly("org.postgresql:postgresql")
24+
testImplementation("org.springframework.boot:spring-boot-starter-test")
25+
testImplementation("org.springframework.boot:spring-boot-testcontainers")
26+
testImplementation("org.testcontainers:junit-jupiter")
27+
testImplementation("org.testcontainers:postgresql")
28+
testImplementation("com.redis:testcontainers-redis")
29+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
30+
}
31+
32+
tasks.named<Test>("test") {
33+
useJUnitPlatform()
34+
}

data-redis-cache/settings.gradle

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = "data-redis-cache"

0 commit comments

Comments
 (0)