Skip to content

Commit 2f4a509

Browse files
committed
[build] Using spring boot gradle plugin
1 parent a734589 commit 2f4a509

File tree

6 files changed

+19
-16
lines changed

6 files changed

+19
-16
lines changed

build.gradle

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,19 @@ config {
33
description = 'Testcontainers Redis'
44
inceptionYear = '2020'
55
tags = ['spring', 'batch', 'redis']
6-
76
links {
87
website = "https://github.com/redis-developer/${project.rootProject.name}"
98
issueTracker = "https://github.com/redis-developer/${project.rootProject.name}/issues"
109
scm = "https://github.com/redis-developer/${project.rootProject.name}.git"
1110
}
12-
1311
scm {
1412
url = "https://github.com/redis-developer/${project.rootProject.name}"
1513
connection = "scm:git:https://github.com/redis-developer/${project.rootProject.name}.git"
1614
developerConnection = "scm:git:git@github.com:redis-developer/${project.rootProject.name}.git"
1715
}
18-
1916
specification {
2017
enabled = true
2118
}
22-
2319
implementation {
2420
enabled = true
2521
}
@@ -61,17 +57,22 @@ allprojects {
6157
}
6258

6359
subprojects {
64-
6560
config {
6661
info {
6762
description = project.project_description
6863
}
6964
}
70-
7165
test {
7266
useJUnitPlatform()
7367
}
74-
68+
bootJar {
69+
enabled = false
70+
}
71+
jar {
72+
enabled = true
73+
archiveClassifier = ''
74+
}
75+
7576
sourceCompatibility = 8
7677
targetCompatibility = 8
7778

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
group=com.redis.testcontainers
22

3-
kordampPluginVersion=0.47.0
3+
bootPluginVersion=2.5.7
4+
dependencyPluginVersion=1.0.11.RELEASE
45
kordampBuildVersion=2.6.0
6+
kordampPluginVersion=0.47.0
57

68
awaitilityVersion=4.1.1
7-
junitVersion=5.7.2
89
lettucemodVersion=1.8.0
9-
slf4jVersion=1.7.32
1010
testcontainersVersion=1.15.3

lombok.config

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

settings.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ buildscript {
77
dependencies {
88
classpath "org.kordamp.gradle:java-project-gradle-plugin:$kordampPluginVersion"
99
classpath "org.kordamp.gradle:kordamp-parentbuild:$kordampBuildVersion"
10+
classpath "org.springframework.boot:spring-boot-gradle-plugin:$bootPluginVersion"
11+
classpath "io.spring.gradle:dependency-management-plugin:$dependencyPluginVersion"
1012
}
1113
}
1214

@@ -27,6 +29,8 @@ projects {
2729
dirs(['subprojects']) {
2830
id 'java-library'
2931
id 'java-library-distribution'
32+
id 'org.springframework.boot'
33+
id 'io.spring.dependency-management'
3034
}
3135
}
3236
}
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
dependencies {
22
api project(':testcontainers-redis')
33
api group: 'com.redis.testcontainers', name: 'junit-jupiter', version: testcontainersVersion
4-
api group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junitVersion
5-
api group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: junitVersion
6-
runtimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junitVersion
7-
implementation group: 'org.slf4j', name: 'slf4j-simple', version: slf4jVersion
4+
api 'org.junit.jupiter:junit-jupiter-api'
5+
api 'org.junit.jupiter:junit-jupiter-params'
6+
runtimeOnly 'org.junit.jupiter:junit-jupiter-engine'
87
api group: 'com.redis', name: 'lettucemod', version: lettucemodVersion
98
api group: 'org.awaitility', name: 'awaitility', version: awaitilityVersion
109
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
dependencies {
22
testImplementation project(':testcontainers-redis-junit-jupiter')
3+
testImplementation 'org.slf4j:slf4j-simple'
34
}

0 commit comments

Comments
 (0)