-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing pom issues that prevented publishing
* fixing two issues that prevented us from publishing to maven central - fixing sourceJar typo -> sourcesJar - configure the pom for all artifact filters * partial fix for #5212
- Loading branch information
1 parent
f0dddbc
commit 933970c
Showing
1 changed file
with
41 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -623,9 +623,9 @@ task testUtilsJavadocJar(type: Jar, dependsOn: testUtilsJavadoc){ | |
from "$docBuildDir/testUtilsJavadoc" | ||
} | ||
|
||
task testUtilsSourceJar(type: Jar){ | ||
task testUtilsSourcesJar(type: Jar){ | ||
baseName = "$project.name-test-utils" | ||
classifier = 'source' | ||
classifier = 'sources' | ||
from sourceSets.testUtils.allSource | ||
} | ||
|
||
|
@@ -732,7 +732,7 @@ artifacts { | |
archives sourcesJar | ||
archives testUtilsJar | ||
archives testUtilsJavadocJar | ||
archives testUtilsSourceJar | ||
archives testUtilsSourcesJar | ||
|
||
} | ||
//remove zip and tar added by the application plugin | ||
|
@@ -749,12 +749,44 @@ signing { | |
|
||
def gatkArtifactFilter = { artifact, file -> artifact.name == 'gatk' } | ||
def gatkTestUtilsArtifactFilter = {artifact, file -> artifact.name == 'gatk-test-utils' } | ||
def basePomConfiguration = { | ||
packaging 'jar' | ||
description 'Development on GATK 4' | ||
url 'http://github.com/broadinstitute/gatk' | ||
|
||
scm { | ||
url 'scm:[email protected]:broadinstitute/gatk.git' | ||
connection 'scm:[email protected]:broadinstitute/gatk.git' | ||
developerConnection 'scm:[email protected]:broadinstitute/gatk.git' | ||
} | ||
|
||
developers { | ||
developer { | ||
id = "gatkdev" | ||
name = "GATK Development Team" | ||
email = "[email protected]" | ||
} | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'BSD 3-Clause' | ||
url 'https://github.com/broadinstitute/gatk/blob/master/LICENSE.TXT' | ||
distribution 'repo' | ||
} | ||
} | ||
} | ||
|
||
install { | ||
install { | ||
repositories.mavenInstaller { | ||
addFilter('gatk', gatkArtifactFilter) | ||
.project(basePomConfiguration) | ||
.project{ name "GATK4"} | ||
|
||
addFilter('gatk-test-utils', gatkTestUtilsArtifactFilter) | ||
.project(basePomConfiguration) | ||
.project{ name "GATK4 Test Utilities" } | ||
} | ||
} | ||
} | ||
|
@@ -780,37 +812,14 @@ uploadArchives { | |
authentication(userName: System.env.ARTIFACTORY_USERNAME, password: System.env.ARTIFACTORY_PASSWORD) | ||
} | ||
|
||
addFilter('gatk', gatkArtifactFilter) | ||
addFilter('gatk-test-utils', gatkTestUtilsArtifactFilter) | ||
.project(basePomConfiguration) | ||
.project{ name "GATK4 Test Utilities" } | ||
|
||
addFilter('gatk', gatkArtifactFilter) | ||
.project(basePomConfiguration) | ||
.project{ name "GATK4"} | ||
|
||
pom.project { | ||
name 'GATK4' | ||
packaging 'jar' | ||
description 'Development on GATK 4' | ||
url 'http://github.com/broadinstitute/gatk' | ||
|
||
scm { | ||
url 'scm:[email protected]:broadinstitute/gatk.git' | ||
connection 'scm:[email protected]:broadinstitute/gatk.git' | ||
developerConnection 'scm:[email protected]:broadinstitute/gatk.git' | ||
} | ||
|
||
developers { | ||
developer { | ||
id = "gatkdev" | ||
name = "GATK Development Team" | ||
email = "[email protected]" | ||
} | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'BSD 3-Clause' | ||
url 'https://github.com/broadinstitute/gatk/blob/master/LICENSE.TXT' | ||
distribution 'repo' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|