Changeset 7f673bb


Ignore:
Timestamp:
Dec 7, 2017 7:31:30 PM (3 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
1f569b7
Parents:
a02cccaa
Message:

Travis CI: Dynamically add SonarQube? plugin to build.gradle

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • .travis.yml

    ra02cccaa r7f673bb  
    1717        - sudo perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security
    1818        - echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security
     19
     20before_install:
     21 - |
     22    if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
     23      echo "plugins {
     24    id 'org.sonarqube' version '2.6.1'
     25}
     26" | cat - build.gradle > build.gradle.temp
     27      mv build.gradle.temp build.gradle
     28    fi
    1929
    2030before_cache:
  • build.gradle

    ra02cccaa r7f673bb  
    1 // SonarQube is currently only supported on Java 8
    2 // https://docs.sonarqube.org/display/SONAR/Requirements#Requirements-SupportedPlatforms
    3 if (JavaVersion.current() == JavaVersion.VERSION_1_8) {
    4     plugins {
    5         id "org.sonarqube" version "2.6.1"
    6     }
    7 }
    8 
    91// Exclude apps/ dir itself, but include its subdirs
    102def javaProjects = subprojects - project(':apps')
Note: See TracChangeset for help on using the changeset viewer.