Skip to content

Commit

Permalink
Simplify dep mngmnt, update libs
Browse files Browse the repository at this point in the history
  • Loading branch information
Haarolean committed Jan 17, 2025
1 parent 336eb76 commit ac99710
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
5 changes: 4 additions & 1 deletion api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
alias(libs.plugins.spring.boot)
alias(libs.plugins.git.properties)
alias(libs.plugins.docker.remote.api)
alias(libs.plugins.spring.dependency.management)
}

import com.bmuschko.gradle.docker.tasks.image.DockerBuildImage
Expand Down Expand Up @@ -127,4 +128,6 @@ tasks.register('buildDockerImage', DockerBuildImage) {
images.add("ghcr.io/kafbat/kafka-ui:${project.version}")
}

tasks.build.finalizedBy buildDockerImage
if (prod) {
tasks.build.finalizedBy buildDockerImage
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ext {
prod = resolveBooleanProperty("prod")
}

if (prod) {
if (prod) { // TODO shouldn't be prod, 'publish' instead?
nexusPublishing {
repositories {
sonatype {
Expand Down
13 changes: 8 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ spring-boot = '3.4.1'
aws-msk-auth = '2.2.0'
azure-identity = '1.14.2'

apache-commons = '2.12.0'
apache-commons-lang3 = '3.12.0'
apache-commons-io = '2.16.1'
apache-commons-pool2 = '2.12.0'
apache-datasketches = '3.1.0'
apache-commons-compress = '1.26.0'

assertj = '3.25.3'
avro = '1.11.4'
byte-buddy = '1.14.19'
confluent = '7.8.0'
confluent-ccs = '7.8.0-ccs'

mapstruct = '1.6.2'
lombok = '1.18.34'
Expand All @@ -38,6 +40,7 @@ aspectj = '1.9.21'

[plugins]
spring-boot = { id = 'org.springframework.boot', version = '3.4.1' }
spring-dependency-management = { id = 'io.spring.dependency-management', version = '1.1.3' }
git-properties = { id = 'com.gorylenko.gradle-git-properties', version = '2.4.2' }
openapi-generator = { id = 'org.openapi.generator', version = '7.9.0' }
allure = { id = 'io.qameta.allure', version='2.10.0' }
Expand Down Expand Up @@ -66,15 +69,15 @@ mapstruct = {module = 'org.mapstruct:mapstruct', version.ref = 'mapstruct'}
mapstruct-processor = {module = 'org.mapstruct:mapstruct-processor', version.ref = 'mapstruct'}
jakarta-annotation-api = {module = 'jakarta.annotation:jakarta.annotation-api', version.ref = 'jakarta-annotation-api'}
jackson-databind-nullable = {module = 'org.openapitools:jackson-databind-nullable', version.ref = 'jackson-databind-nullable'}
kafka-clients = { module = 'org.apache.kafka:kafka-clients', version = "${versions.confluent}-ccs"}
kafka-clients = { module = 'org.apache.kafka:kafka-clients', version.ref = 'confluent-ccs'}

apache-commons = { module = 'org.apache.commons:commons-lang3', version.ref = 'apache-commons'}
apache-commons = { module = 'org.apache.commons:commons-lang3', version.ref = 'apache-commons-lang3'}
apache-commons-compress = { module = 'org.apache.commons:commons-compress', version.ref = 'apache-commons-compress'}
apache-commons-io = { module = 'commons-io:commons-io', version.ref = 'apache-commons-io'}
apache-commons-pool2 = { module = 'org.apache.commons:commons-pool2', version.ref = 'apache-commons'}
apache-commons-pool2 = { module = 'org.apache.commons:commons-pool2', version.ref = 'apache-commons-pool2'}
apache-datasketches = { module = 'org.apache.datasketches:datasketches-java', version.ref='apache-datasketches'}
apache-avro = { module = 'org.apache.avro:avro', version.ref = 'avro'}
apache-kafka = { module = 'org.apache.kafka:kafka_2.13', version = "${versions.confluent}-ccs"}
apache-kafka = { module = 'org.apache.kafka:kafka_2.13', version.ref = 'confluent-ccs'}

confluent-schema-registry-client = { module = 'io.confluent:kafka-schema-registry-client', version.ref = 'confluent'}
confluent-avro-serializer = { module = 'io.confluent:kafka-avro-serializer', version.ref = 'confluent'}
Expand Down
4 changes: 2 additions & 2 deletions serde-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ artifacts {
archives sourceJar, javadocJar
}

if (prod) {
if (prod) { // TODO shouldn't be prod, 'publish' instead?
signing {
sign(publishing.publications)
}
}

publishing {
if (prod) {
if (prod) { // TODO shouldn't be prod, 'publish' instead?
repositories {
maven {
url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2"
Expand Down

0 comments on commit ac99710

Please sign in to comment.