Skip to content

Commit 1fe2cf6

Browse files
author
jruaux
committed
build: Using spring boot plugin
1 parent 146c326 commit 1fe2cf6

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ subprojects { subproj ->
9898

9999
dependencies {
100100
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
101-
testImplementation group: 'org.testcontainers', name: 'junit-jupiter', version: testcontainersVersion
101+
testImplementation group: 'org.testcontainers', name: 'junit-jupiter'
102102
testImplementation(group: 'com.redis.testcontainers', name: 'testcontainers-redis', version: testcontainersRedisVersion) {
103103
exclude group: 'com.redis', module: 'lettucemod'
104104
}
@@ -108,6 +108,15 @@ subprojects { subproj ->
108108
useJUnitPlatform()
109109
}
110110

111+
bootJar {
112+
enabled = false
113+
}
114+
115+
jar {
116+
enabled = true
117+
archiveClassifier = ''
118+
}
119+
111120
configurations.all {
112121
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
113122
if (details.requested.name == 'lettuce-core' ) {

settings.gradle

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ buildscript {
2828
classpath "org.kordamp.gradle:java-project-gradle-plugin:$kordampPluginVersion"
2929
classpath "org.kordamp.gradle:jacoco-gradle-plugin:$kordampPluginVersion"
3030
classpath "org.kordamp.gradle:kordamp-parentbuild:$kordampBuildVersion"
31+
classpath "org.springframework.boot:spring-boot-gradle-plugin:$bootPluginVersion"
3132
}
3233
}
3334

@@ -51,6 +52,8 @@ projects {
5152
}
5253
dirs(['core']) {
5354
id 'java-library'
55+
id 'org.springframework.boot'
56+
id 'io.spring.dependency-management'
5457
}
5558
path(':redis-kafka-connect') {
5659
id 'com.github.johnrengelman.shadow'
@@ -72,13 +75,6 @@ enforce {
7275
}
7376
rule(enforcer.rules.ForceDependencies) { r ->
7477
r.dependencies.addAll "com.redis:lettucemod:$lettucemodVersion",
75-
"org.slf4j:slf4j-api:$slf4jVersion",
76-
"com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion",
77-
"com.fasterxml.jackson.core:jackson-databind:$jacksonVersion",
78-
"com.fasterxml.jackson.core:jackson-core:$jacksonVersion",
79-
"com.fasterxml.jackson.datatype:jackson-datatype-jdk8:$jacksonVersion",
80-
"org.testcontainers:testcontainers:$testcontainersVersion",
81-
"org.testcontainers:junit-jupiter:$testcontainersVersion",
82-
"com.google.guava:guava:$guavaVersion"
78+
"org.testcontainers:testcontainers:$testcontainersVersion"
8379
}
8480
}

0 commit comments

Comments
 (0)