Browse Source

add spotbugs to gradle build

update dist path for jenkins archives

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892607 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_5_1_0
Andreas Beeker 2 years ago
parent
commit
c6e44a1400
3 changed files with 10 additions and 1 deletions
  1. 6
    0
      build.gradle
  2. 1
    1
      jenkins/create_jobs.groovy
  3. 3
    0
      poi-ooxml-full/build.gradle

+ 6
- 0
build.gradle View File

dependencies { dependencies {
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1' classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1'
classpath 'de.thetaphi:forbiddenapis:3.1' classpath 'de.thetaphi:forbiddenapis:3.1'
classpath 'gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.7.3'
} }
} }


apply plugin: 'maven-publish' apply plugin: 'maven-publish'
apply plugin: 'signing' apply plugin: 'signing'
apply plugin: 'de.thetaphi.forbiddenapis' apply plugin: 'de.thetaphi.forbiddenapis'
apply plugin: 'com.github.spotbugs'


version = '5.0.1-SNAPSHOT' version = '5.0.1-SNAPSHOT'
ext { ext {
signing { signing {
sign publishing.publications.POI sign publishing.publications.POI
} }

spotbugs {
ignoreFailures = true
}
} }


// initial try to provide a combined JavaDoc, grouping is still missing here, though! // initial try to provide a combined JavaDoc, grouping is still missing here, though!

+ 1
- 1
jenkins/create_jobs.groovy View File

} }
} }
// in archive, junit and jacoco publishers, matches beneath build/*/build/... are for Gradle-build results // in archive, junit and jacoco publishers, matches beneath build/*/build/... are for Gradle-build results
archiveArtifacts('build/dist/*.tar.gz,build/findbugs.html,build/coverage/**,poi-integration/build/test-results/**,*/build/libs/*.jar')
archiveArtifacts('build/dist/*.tgz,build/dist/maven/*/*.jar,build/coverage/**')
warnings(['Java Compiler (javac)', 'JavaDoc Tool'], null) { warnings(['Java Compiler (javac)', 'JavaDoc Tool'], null) {
resolveRelativePaths() resolveRelativePaths()
} }

+ 3
- 0
poi-ooxml-full/build.gradle View File

} }
} }
} }

spotbugsTest.enabled = false
spotbugsMain.enabled = false

Loading…
Cancel
Save