m-dzianishchyts opened a new pull request, #651:
URL: https://github.com/apache/cayenne/pull/651

   ## What does this PR do?
   
   Moves source and Javadoc JAR generation into a dedicated `release` Maven 
profile.
   
   Normal Maven builds now produce only the main and test artifacts. When the 
`release` profile is enabled, Maven also attaches `-sources.jar` and 
`-javadoc.jar` for publication.
   
   Previously, source JAR generation was enabled for every Maven build, while 
Javadoc JAR generation was not configured as part of the Maven release artifact 
lifecycle.
   
   After the change, the release guide at 
https://cayenne.apache.org/dev/release-guide.html should use the `release` 
profile:
   
   ```diff
    cd cayenne
    mvn release:clean
    mvn release:prepare -DpreparationGoals="clean install" 
-DautoVersionSubmodules=true
   -mvn release:perform -P gpg [-Dgpg.keyname=B8AF90BF]
   +mvn release:perform -P release,gpg [-Dgpg.keyname=B8AF90BF]
   ```
   
   ## Testing
   
   Verified that:
   
   ```bash
   mvn clean install -DskipTests
   ```
   
   does not generate or install source or Javadoc JARs.
   
   Verified that:
   
   ```bash
   mvn clean install -Prelease -DskipTests
   ```
   
   generates and installs:
   
   ```text
   *-sources.jar
   *-javadoc.jar
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to