Skip to content

Commit

Permalink
add comments for maven publishing
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Kurait <[email protected]>
  • Loading branch information
AndreKurait committed Oct 24, 2024
1 parent 4ccf213 commit 05ac28d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ ext {
// Apply the version to all projects
allprojects {
version = finalVersion
group = 'org.opensearch.migrations.trafficcapture' // Ensure groupId is consistent
// This should eventually change, see https://opensearch.atlassian.net/browse/MIGRATIONS-2167
group = 'org.opensearch.migrations.trafficcapture'
}

subprojects { subproject ->
Expand Down Expand Up @@ -172,6 +173,9 @@ subprojects {
mavenJava(MavenPublication) {
versionMapping {
allVariants {
// Test fixtures are published as a separate jar in maven
// This ensures dependencies that are only declared in test
// fixtures have a version number in the pom
if (project.plugins.hasPlugin('java-test-fixtures')) {
fromResolutionOf('testFixturesRuntimeClasspath')
}
Expand Down

0 comments on commit 05ac28d

Please sign in to comment.