<url>http://jira.sonarsource.com/browse/SONAR</url>
</issueManagement>
- <distributionManagement>
- <repository>
- <id>bintray</id>
- <url>https://api.bintray.com/maven/sonarsource/SonarQube/${project.groupId}/;publish=1</url>
- </repository>
- </distributionManagement>
-
<properties>
<sonarUpdateCenter.version>1.17</sonarUpdateCenter.version>
<sonarJava.version>4.0</sonarJava.version>
<!-- used for deployment to SonarSource Artifactory -->
<gitRepositoryName>sonarqube</gitRepositoryName>
+ <!-- Release: enable publication to Bintray -->
+ <artifactsToPublish>${project.groupId}:sonar-application:zip</artifactsToPublish>
</properties>
<build>
</build>
</profile>
- <profile>
- <id>javadoc</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <excludePackageNames>
- net.*:org.sonar.application:org.sonar.server:org.sonar.graph:org.sonar.batch:org.sonar.channel:org.sonar.java:org.sonar.maven*:org.sonar.plugins.*:org.sonar.colorizer:org.sonar.core:org.sonar.duplications:org.sonar.markdown:com.*
- </excludePackageNames>
- <author>false</author>
- <linksource>true</linksource>
- <reportOutputDirectory>${project.reporting.outputDirectory}/${project.version}/apidocs
- </reportOutputDirectory>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
-
<profile>
<id>protobuf-compile</id>
<activation>
</execution>
</executions>
</plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <phase>package</phase>
- <configuration>
- <failOnError>${checksum.failOnError}</failOnError>
- <target>
- <checksum file="${project.build.directory}/sonarqube-${project.version}.zip" algorithm="md5" />
- <checksum file="${project.build.directory}/sonarqube-${project.version}.zip" algorithm="sha" />
- </target>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
elif [[ "$TRAVIS_BRANCH" == "branch-"* ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo 'release branch: trigger QA, no analysis'
+ export PROJECT_VERSION=`maven_expression "project.version"`
+
mvn deploy \
$MAVEN_OPTIONS \
- -Pdeploy-sonarsource
+ -Pdeploy-sonarsource,release
elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
echo 'Internal pull request: trigger QA and analysis'