SamplesMavenPublishIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Restructure parts about components and artifacts in publishing chapter

- Start with adjusting components from java plugins

(most common and simple use case, can be used to add custom artifacts,

includes updated 'javadoc' sample now)

- Extra section on creating completely new components

- Only one section about artifacts, starting with the warning,

recommending to not mix components and artifacts

    • -1
    • +0
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 3 more files in changeset.
Restructure parts about components and artifacts in publishing chapter

- Start with adjusting components from java plugins

(most common and simple use case, can be used to add custom artifacts,

includes updated 'javadoc' sample now)

- Extra section on creating completely new components

- Only one section about artifacts, starting with the warning,

recommending to not mix components and artifacts

    • -1
    • +0
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 3 more files in changeset.
Adjust samples to use the built-in javadoc/sources functionality

    • -1
    • +1
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 10 more files in changeset.
Adjust samples to use the built-in javadoc/sources functionality

    • -1
    • +1
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 10 more files in changeset.
Adjust samples to use the built-in javadoc/sources functionality

    • -1
    • +1
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 10 more files in changeset.
Adjust tests and samples to new publishing default behavior

    • -12
    • +13
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 43 more files in changeset.
Adjust tests and samples to new publishing default behavior

    • -12
    • +13
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 16 more files in changeset.
Adjust tests and samples to new publishing default behavior

    • -12
    • +13
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 16 more files in changeset.
Adjust tests and samples to new publishing default behavior

    • -12
    • +13
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 16 more files in changeset.
Let maven-publish tests not use deprecated configurations

    • -1
    • +1
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 8 more files in changeset.
Let maven-publish tests not use deprecated configurations

    • -1
    • +1
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 8 more files in changeset.
Let maven-publish tests not use deprecated configurations

    • -1
    • +1
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 8 more files in changeset.
Add Kotlin DSL samples to Publishing Maven chapter

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -11
    • +31
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 32 more files in changeset.
Merge branch 'release' into doc/publishing_overview

    • -0
    • +4
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 3 more files in changeset.
Do not use local `.m2` repository when running integration tests

Some integration tests expect that metadata is missing from `.m2`.

In practice we have something to avoid that `.m2` leaks on CI, but

nothing for local development. It appears it's pretty simple to

break integration tests because of the accidental presence of a

component in your local .m2 repository. This commit makes sure

that we isolate by default on all integration tests.

    • -0
    • +4
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 2 more files in changeset.
Removed now unused import

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -1
    • +0
    ./SamplesMavenPublishIntegrationTest.groovy
Fix SamplesMavenPublishIntegrationTest

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -11
    • +30
    ./SamplesMavenPublishIntegrationTest.groovy
Add Kotlin sample for maven-publish/distribution

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -5
    • +11
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 11 more files in changeset.
Fix failing tests for publishing chapter changes

    • -3
    • +7
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 6 more files in changeset.
Document how to publish distributions using Maven/Ivy Publish Plugins

Prior to this commit the User Guide chapter on the Distribution Plugin included a section on how to publish a distribution archive using the uploadArchives task. Now, the way more flexible publishing of distribution archives using the Ivy/Maven Publish Plugins is documented as well.

Resolves #5244.

    • -0
    • +22
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 10 more files in changeset.
Document how to publish custom artifacts using Maven and Ivy

This commit adds a sample that demonstrates how to publish a custom PublishArtifact as part of an IvyPublication or MavenPublication.

Resolves #3064.

    • -0
    • +20
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 7 more files in changeset.
Remove model blocks from POM/Ivy descriptor generator task samples

The model block is no longer needed because publishing no longer relies

on DeferredConfigurable. This commit removes it from the samples and

deletes the notes explaining why it was needed.

    • -0
    • +14
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 5 more files in changeset.
Add complete example to maven-publish chapter in User Guide

The complete example is added as the last section of the chapter and

showcases how to put together the pieces documented in detail in the

previous sections:

- publications including POM customization and custom artifacts

- repositories including conditional URL based on project version

- signing the published artifacts

Resolves #5094.

    • -27
    • +0
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 10 more files in changeset.
Document POM customization using new DSL instead of withXml()

This commit removes the documentation for POM modification, i.e. withXml()

completely because its usage is discouraged. Instead, the new dedicated

DSL for POM customization should be used.

Issue: #5094

    • -1
    • +11
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 2 more files in changeset.
Document conditional publishing for maven-publish plugin

Issue: #5116

    • -16
    • +80
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 6 more files in changeset.
Document publishing snapshots and releases to different repositories

Resolves #5095.

    • -1
    • +1
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 2 more files in changeset.
Fix Java component publishing

When we introduced the `java-library` plugin, we made sure

the published POM reflects what a downstream project in the

same build would see: `api` dependencies are exposed, `implementation`

dependencies are hidden. The legacy `compile`/`runtime` dependencies

are exposed as well for backwards compatibility.

We forgot to adjust the tests for the existing `java` plugin,

leading to a confusing difference in behavior. The `java` plugin

was still hiding the legacy `compile` and `runtime` dependencies from

consumers. This was due to a bug in the implementation of `JavaLibrary`,

which was looking for the `api` configuration instead of the `apiElements`

configuration.

    • -4
    • +4
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 24 more files in changeset.
Upgrade Apache Commons Collections to v3.2.2

Version 3.2.1 has a CVSS 10.0 vulnerability. That's the worst kind of

vulnerability that exists. By merely existing on the classpath, this

library causes the Java serialization parser for the entire JVM process

to go from being a state machine to a turing machine. A turing machine

with an exec() function!

https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8103

https://commons.apache.org/proper/commons-collections/security-reports.html

http://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/

    • -1
    • +1
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 54 more files in changeset.
check that ~/.m2 repository not touched during integration tests

+review REVIEW-5724

    • -4
    • +2
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 18 more files in changeset.
change M2Installation usages to use rule functionality; fail if test creates m2 folder

    • -2
    • +1
    ./SamplesMavenPublishIntegrationTest.groovy
  1. … 6 more files in changeset.