-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validating runtime dependencies for conflicts #518
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,11 @@ subprojects { | |
withJavadocJar() | ||
withSourcesJar() | ||
} | ||
configurations.runtimeClasspath { | ||
resolutionStrategy { | ||
failOnVersionConflict() | ||
} | ||
} | ||
|
||
checkstyle { | ||
toolVersion = "10.12.0" | ||
|
@@ -123,29 +128,32 @@ subprojects { | |
|
||
azureSdkVersion = "1.2.21" | ||
|
||
testcontainersVersion = "1.19.4" | ||
testcontainersVersion = "1.19.7" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. was this needed as part of this PR? if it's maybe a separate commit will help. |
||
|
||
testcontainersFakeGcsServerVersion = "0.2.0" | ||
} | ||
|
||
dependencies { | ||
compileOnly "org.apache.kafka:kafka-clients:$kafkaVersion" | ||
compileOnly "org.apache.kafka:kafka-storage-api:$kafkaVersion" | ||
compileOnly("org.apache.kafka:kafka-storage-api:$kafkaVersion") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wondering if this is a style change only or it has some implications in the context of this PR? |
||
|
||
implementation enforcedPlatform("com.fasterxml.jackson:jackson-bom:$jacksonVersion") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could we add some comments on what this "enforcePlatform" does and why we needed it here? e.g. as it's only added for jacksone, does it mean that we would need to know in advance which dependencies may conflict, so we can flag it as we are doing here? |
||
compileOnly "org.slf4j:slf4j-api:$slf4jVersion" | ||
|
||
testImplementation "org.apache.kafka:kafka-clients:$kafkaVersion" | ||
testImplementation "org.apache.kafka:kafka-storage-api:$kafkaVersion" | ||
testImplementation("org.apache.kafka:kafka-storage-api:$kafkaVersion") | ||
|
||
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion" | ||
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion" | ||
testImplementation 'org.junit.platform:junit-platform-launcher:$junitPlatformVersion' | ||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion" | ||
testImplementation(platform("org.junit:junit-bom:$junitVersion")) | ||
testImplementation "org.junit.jupiter:junit-jupiter-api" | ||
testImplementation "org.junit.jupiter:junit-jupiter-params" | ||
testImplementation "org.junit.platform:junit-platform-launcher" | ||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine" | ||
|
||
testImplementation "org.assertj:assertj-core:$assertJVersion" | ||
|
||
testImplementation "org.mockito:mockito-core:$mockitoVersion" | ||
testImplementation "org.mockito:mockito-junit-jupiter:$mockitoVersion" | ||
testImplementation(platform("org.mockito:mockito-bom:$mockitoVersion")) | ||
testImplementation "org.mockito:mockito-core" | ||
testImplementation "org.mockito:mockito-junit-jupiter" | ||
|
||
testImplementation "org.awaitility:awaitility:$awaitilityVersion" | ||
|
||
|
@@ -241,8 +249,8 @@ distributions { | |
from(project(":core").configurations.runtimeClasspath) | ||
from(project(":storage:core").jar) | ||
from(project(":storage:core").configurations.runtimeClasspath) | ||
from(project(":storage:filesystem").jar) | ||
from(project(":storage:filesystem").configurations.runtimeClasspath) | ||
from(project(":storage:plugins:filesystem").jar) | ||
from(project(":storage:plugins:filesystem").configurations.runtimeClasspath) | ||
} | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright 2024 Aiven Oy | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
subprojects { | ||
configurations { | ||
providedRuntime | ||
implementation.extendsFrom(providedRuntime) | ||
} | ||
Comment on lines
+18
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe some comments here as well |
||
|
||
dependencies { | ||
implementation project(":storage:core") | ||
|
||
providedRuntime project(":core") | ||
|
||
testImplementation(testFixtures(project(":storage:core"))) | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add some comments here to clarify how is affecting the deps validation? e.g. usage of platform feature, etc.