Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setting up publishing to Maven central. - Added required elements to POM such as License, Developers, Issue Management, SCM, Distribution Management, etc. - Added plugins required for publishing to Maven central - Added Maven settings files for deploy task (using Travis environment variables) - Updated travis configuration file to use job configuration where master will always run sonar and deploy where as pull requests, branches and forks will only run tests. - Import keys to GPG before the build for signing. - Made sure tests are run on master when its in a fork - Restricted deploys to be only from master of the original repo (not forks) - Moved override log4j configuration to surefire plugin configuration than just having it in the profile as it needs to be available for builds that doesn't use coverage-per-test profile - Replaced deprecated sonar.branch with sonar.branch.name
- Loading branch information
1 parent
8a72346
commit bef69c9
Showing
3 changed files
with
145 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/SETTINGS/1.0.0" xsi:schemalocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
<servers> | ||
<server> | ||
<id>ossrh</id> | ||
<username>${env.SONATYPE_USERNAME}</username> | ||
<password>${env.SONATYPE_PASSWORD}</password> | ||
</server> | ||
</servers> | ||
|
||
<profiles> | ||
<profile> | ||
<id>ossrh</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<properties> | ||
<gpg.keyname>${env.GPG_KEYNAME}</gpg.keyname> | ||
<gpg.executable>${env.GPG_EXECUTABLE}</gpg.executable> | ||
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
</settings> |
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
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