-
Notifications
You must be signed in to change notification settings - Fork 104
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
Remove Artifactory publishing logic from gradle build #3256
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 |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
* limitations under the License. | ||
*/ | ||
|
||
apply plugin: 'com.jfrog.artifactory' | ||
apply plugin: 'signing' | ||
|
||
// Add various details to the pom file to allow for publishing | ||
|
@@ -74,17 +73,6 @@ if (ext.publishLibrary) { | |
} | ||
} | ||
} | ||
artifactoryPublish { | ||
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. This does mean that 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. Yeah. I've filed #3257 to do just that. Given that |
||
// As a safeguard, only actually publish to artifactory if -PpublishBuild=true is passed to gradle | ||
// Note: skip is documented, but onlyIf seems to also be required to make this work for some reason | ||
// See: https://gist.github.com/DALDEI/40925568cef57e16e8a7 | ||
def publishBuild = Boolean.parseBoolean(publishBuild) | ||
skip = !publishBuild | ||
onlyIf { | ||
publishBuild | ||
} | ||
publications(publishing.publications.library) | ||
} | ||
createDistribution.configure { | ||
afterEvaluate { | ||
dependsOn generatePomFileForLibraryPublication | ||
|
@@ -128,25 +116,3 @@ publishing { | |
} | ||
} | ||
} | ||
|
||
if (System.getenv('ARTIFACTORY_USER') != null && System.getenv('ARTIFACTORY_KEY') != null) { | ||
artifactory { | ||
clientConfig.setIncludeEnvVars(true) | ||
publish { | ||
def artifactoryUrl = System.getenv('ARTIFACTORY_URL') ?: 'https://ossartifacts.jfrog.io/artifactory/' | ||
contextUrl = artifactoryUrl | ||
repository { | ||
repoKey = System.getenv('ARTIFACTORY_REPO') ?: 'fdb-record-layer' | ||
username = System.getenv('ARTIFACTORY_USER') | ||
password = System.getenv('ARTIFACTORY_KEY') | ||
} | ||
defaults { | ||
publications('mavenJava') | ||
publishPom = publishBuild | ||
publishArtifacts = publishBuild | ||
publishBuildInfo = publishBuild | ||
publishIvy = false | ||
} | ||
} | ||
} | ||
} |
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.
Can this be removed from
libs.versions.toml
now?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.
Oh whoops. Definitely meant to remove it the first time. Yeah, it's unreferenced now. Removed