Skip to content

Commit

Permalink
Up dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
donbeave committed Nov 20, 2023
1 parent 6a20ac0 commit 01d0c1f
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 27 deletions.
15 changes: 12 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,21 @@ jambalaya-tenancy-spock = "0.6.0"
# Libraries
apollo = "3.8.2"
common-protos = "2.26.0"
graphql-data-loader = "3.2.1"
grpc = "1.58.0"
graphql-data-loader = "3.2.2"
grpc = "1.59.0"
guava = "31.1-jre"
mapstruct = "1.5.5.Final"
micronaut = "4.1.5"
micronaut = "4.2.0"
okhttp = "4.10.0"
protobuf = "3.24.4"
slugify = "3.0.6"
error-prone = "2.23.0"
icu4j = "72.1"
spock = "2.3-groovy-4.0"
jooq = "3.18.7"
opentelemetry = "1.32.0"
opentelemetry-semconv = "1.22.0-alpha"
spotbugs = "4.8.0"

[libraries]
# Libraries
Expand All @@ -56,3 +60,8 @@ tomcat-annotations-api = { module = "org.apache.tomcat:annotations-api", version
error-prone-annotations = { module = "com.google.errorprone:error_prone_annotations", version.ref = "error-prone" }
icu4j = { module = "com.ibm.icu:icu4j", version.ref = "icu4j" }
spock-core = { module = "org.spockframework:spock-core", version.ref = "spock" }
micronaut-inject-java = { module = "io.micronaut:micronaut-inject-java", version.ref = "micronaut" }
jooq = { module = "org.jooq:jooq", version.ref = "jooq" }
opentelemetry-api = { module = "io.opentelemetry:opentelemetry-api", version.ref = "opentelemetry" }
opentelemetry-semconv = { module = "io.opentelemetry.semconv:opentelemetry-semconv", version.ref = "opentelemetry-semconv" }
spotbugs-annotations = { module = "com.github.spotbugs:spotbugs-annotations", version.ref = "spotbugs" }
2 changes: 1 addition & 1 deletion jambalaya-checks-jooq/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies {
api(project(":jambalaya-checks"))
testImplementation(project(":jambalaya-example-jooq"))

implementation("org.jooq:jooq:3.18.7")
implementation(jambalayaLibs.jooq)

// Kotlin
testImplementation(kotlin("stdlib-jdk8"))
Expand Down
2 changes: 1 addition & 1 deletion jambalaya-checks/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description = "Preconditions."
apply(plugin = "jambalaya-library-conventions")

dependencies {
api("com.github.spotbugs:spotbugs-annotations:4.8.0")
api(jambalayaLibs.spotbugs.annotations)

// Kotlin
testImplementation(kotlin("stdlib-jdk8"))
Expand Down
8 changes: 4 additions & 4 deletions jambalaya-example-grpc-interface/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ plugins {

dependencies {
// gRPC
api("io.grpc:grpc-protobuf:1.58.0")
api("io.grpc:grpc-services:1.58.0")
api("io.grpc:grpc-stub:1.58.0")
api("io.grpc:grpc-netty-shaded:1.58.0")
api("io.grpc:grpc-protobuf:${jambalayaLibs.versions.grpc.get()}")
api("io.grpc:grpc-services:${jambalayaLibs.versions.grpc.get()}")
api("io.grpc:grpc-stub:${jambalayaLibs.versions.grpc.get()}")
api("io.grpc:grpc-netty-shaded:${jambalayaLibs.versions.grpc.get()}")

compileOnly(jambalayaLibs.tomcat.annotations.api)
}
Expand Down
4 changes: 2 additions & 2 deletions jambalaya-example-jooq/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

dependencies {
api("org.jooq:jooq:3.18.7")
api(jambalayaLibs.jooq)

api("com.github.spotbugs:spotbugs-annotations:4.8.0")
api(jambalayaLibs.spotbugs.annotations)
}
2 changes: 1 addition & 1 deletion jambalaya-jsr310/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description = "JSR 310 utils."
apply(plugin = "jambalaya-library-conventions")

dependencies {
api("com.github.spotbugs:spotbugs-annotations:4.8.0")
api(jambalayaLibs.spotbugs.annotations)

// Kotlin
testImplementation(kotlin("stdlib-jdk8"))
Expand Down
6 changes: 3 additions & 3 deletions jambalaya-junit-opentelemetry/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ apply(plugin = "jambalaya-library-conventions")

dependencies {
// OpenTelemetry
api("io.opentelemetry:opentelemetry-api:1.31.0")
api("io.opentelemetry:opentelemetry-semconv:1.30.1-alpha")
api(jambalayaLibs.opentelemetry.api)
api(jambalayaLibs.opentelemetry.semconv)

api("com.github.spotbugs:spotbugs-annotations:4.8.0")
api(jambalayaLibs.spotbugs.annotations)

// JUnit
implementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
import java.util.Map;
import java.util.logging.Logger;

import static io.opentelemetry.semconv.trace.attributes.SemanticAttributes.CODE_FUNCTION;
import static io.opentelemetry.semconv.trace.attributes.SemanticAttributes.CODE_NAMESPACE;
import static io.opentelemetry.semconv.trace.attributes.SemanticAttributes.THREAD_ID;
import static io.opentelemetry.semconv.trace.attributes.SemanticAttributes.THREAD_NAME;
import static io.opentelemetry.semconv.SemanticAttributes.CODE_FUNCTION;
import static io.opentelemetry.semconv.SemanticAttributes.CODE_NAMESPACE;
import static io.opentelemetry.semconv.SemanticAttributes.THREAD_ID;
import static io.opentelemetry.semconv.SemanticAttributes.THREAD_NAME;

/**
* @author Alexey Zhokhov
Expand Down Expand Up @@ -64,7 +64,7 @@ private static Span startSpan(String spanName) {
public void beforeEach(ExtensionContext context) {
Span span = startSpan(context.getDisplayName());

span.setAttribute(THREAD_ID, Thread.currentThread().getId());
span.setAttribute(THREAD_ID, Thread.currentThread().threadId());
span.setAttribute(THREAD_NAME, Thread.currentThread().getName());
span.setAttribute(CODE_FUNCTION, context.getRequiredTestMethod().getName());
span.setAttribute(CODE_NAMESPACE, context.getRequiredTestClass().getName());
Expand Down
2 changes: 1 addition & 1 deletion jambalaya-kotlin-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ apply(plugin = "jambalaya-library-conventions")
dependencies {
testImplementation(project(":jambalaya-example-kotlin-test-graphql"))

api("com.github.spotbugs:spotbugs-annotations:4.8.0")
api(jambalayaLibs.spotbugs.annotations)

// Kotlin
testImplementation(kotlin("stdlib-jdk8"))
Expand Down
4 changes: 2 additions & 2 deletions jambalaya-micronaut-mapstruct-protobuf/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ dependencies {
api(jambalayaLibs.mapstruct)

// Micronaut
annotationProcessor("io.micronaut:micronaut-inject-java:4.1.10")
compileOnly("io.micronaut:micronaut-inject-java:4.1.10")
annotationProcessor(jambalayaLibs.micronaut.inject.java)
compileOnly(jambalayaLibs.micronaut.inject.java)

// Kotlin
testImplementation(kotlin("stdlib-jdk8"))
Expand Down
2 changes: 1 addition & 1 deletion jambalaya-opentelemetry/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ apply(plugin = "jambalaya-library-conventions")

dependencies {
// OpenTelemetry
api("io.opentelemetry:opentelemetry-api:1.31.0")
api(jambalayaLibs.opentelemetry.api)

compileOnly(jambalayaLibs.error.prone.annotations)
}
4 changes: 2 additions & 2 deletions jambalaya-tenancy-grpc-interface/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ apply(plugin = "jambalaya-library-conventions")

dependencies {
// gRPC
api("io.grpc:grpc-protobuf:1.58.0")
api("io.grpc:grpc-stub:1.58.0")
api("io.grpc:grpc-protobuf:${jambalayaLibs.versions.grpc.get()}")
api("io.grpc:grpc-stub:${jambalayaLibs.versions.grpc.get()}")

// TODO remove me later
compileOnly("javax.annotation:javax.annotation-api:1.3.2")
Expand Down
2 changes: 1 addition & 1 deletion publish-sonatype-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ set -e
./jambalaya-tenancy-grpc-interface/publish-sonatype-release.sh
./jambalaya-tenancy-jooq/publish-sonatype-release.sh
./jambalaya-tenancy-junit/publish-sonatype-release.sh
./jambalaya-tenancy-spock/publish-sonatype-release.sh
#./jambalaya-tenancy-spock/publish-sonatype-release.sh

0 comments on commit 01d0c1f

Please sign in to comment.