Skip to content

Commit

Permalink
Fix Travis build - use JDK 8 and 11, remove build notifications, alwa…
Browse files Browse the repository at this point in the history
…ys build javadoc
  • Loading branch information
manovotn committed Sep 16, 2020
1 parent 93b8679 commit b3b8b18
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ sudo: false
install: mvn -Pstaging install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
script: mvn -Pstaging test -B
jdk:
- oraclejdk8
- openjdk8
- openjdk11

cache:
directories:
- $HOME/.m2

notifications:
email:
- cdi-dev@lists.jboss.org
irc:
channels:
- "chat.freenode.net#cdi-dev"
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
- $HOME/.m2/repository
41 changes: 41 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,45 @@
<defaultGoal>clean package</defaultGoal>
</build>

<properties>
<sonatypeOssDistMgmtNexusUrl>https://jakarta.oss.sonatype.org/</sonatypeOssDistMgmtNexusUrl>
<sonatypeOssDistMgmtStagingUrl>${sonatypeOssDistMgmtNexusUrl}content/repositories/staging/</sonatypeOssDistMgmtStagingUrl>
</properties>

<profiles>
<!-- A profile that allows to consume staged but unreleased Jakarta artifacts -->
<profile>
<id>staging</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<repositories>
<repository>
<id>sonatype-nexus-staging</id>
<name>Sonatype Nexus Staging</name>
<url>${sonatypeOssDistMgmtStagingUrl}</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>sonatype-nexus-staging</id>
<name>Sonatype Nexus Staging</name>
<url>${sonatypeOssDistMgmtStagingUrl}</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

</project>

0 comments on commit b3b8b18

Please sign in to comment.