Skip to content

Commit

Permalink
Fix for framework version constraints in Gradle (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Traverse authored Aug 24, 2023
1 parent 102ac56 commit c3f937e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 7 additions & 7 deletions gradle/base-java.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ repositories {
dependencies {

// Enforce a single consistent set of versions for core frameworks across the entire project
implementation enforcedPlatform(group: "io.netty", name: "netty-bom", version: "${netty_version}")
implementation enforcedPlatform(group: "io.grpc", name: "grpc-bom", version: "${grpc_version}")
implementation enforcedPlatform(group: "com.google.protobuf", name: "protobuf-bom", version: "${proto_version}")
implementation enforcedPlatform(group: "com.google.guava", name: "guava-bom", version: "${guava_version}")
implementation enforcedPlatform(group: "com.fasterxml.jackson", name: "jackson-bom", version: "${jackson_version}")
implementation enforcedPlatform(group: "org.slf4j", name: "slf4j-parent", version: "${slf4j_version}")
implementation enforcedPlatform(group: "org.apache.logging.log4j", name: "log4j-bom", version: "${log4j_version}")
implementation platform(group: "io.netty", name: "netty-bom", version: "${netty_version}")
implementation platform(group: "io.grpc", name: "grpc-bom", version: "${grpc_version}")
implementation platform(group: "com.google.protobuf", name: "protobuf-bom", version: "${proto_version}")
implementation platform(group: "com.google.guava", name: "guava-bom", version: "${guava_version}")
implementation platform(group: "com.fasterxml.jackson", name: "jackson-bom", version: "${jackson_version}")
implementation platform(group: "org.slf4j", name: "slf4j-parent", version: "${slf4j_version}")
implementation platform(group: "org.apache.logging.log4j", name: "log4j-bom", version: "${log4j_version}")

// Logging with SLF 4J, available in all Java modules
implementation group: 'org.slf4j', name: 'slf4j-api', version: "$slf4j_version"
Expand Down
4 changes: 1 addition & 3 deletions tracdap-libs/tracdap-lib-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ description = "TRAC D.A.P. common library, interfaces and utilities used across

dependencies {

// Export framework version constraints for 3rd party plugins, but do not enforce them
// Enforcing hard constraints on 3rd-party code with API dependencies is flagged as an error by Gradle (rightly so)!
// Constraints for modules that are part of the TRAC codebase are hard enforced in base-java.gradle
// Export framework version constraints for 3rd party plugins
api platform(group: "io.netty", name: "netty-bom", version: "${netty_version}")
api platform(group: "io.grpc", name: "grpc-bom", version: "${grpc_version}")
api platform(group: "com.google.protobuf", name: "protobuf-bom", version: "${proto_version}")
Expand Down

0 comments on commit c3f937e

Please sign in to comment.