language: java
jdk:
  - oraclejdk8
  - oraclejdk11
script:
  - mvn checkstyle:check
  - mvn pmd:check
  - mvn findbugs:check

language: java
jdk: oraclejdk8
script:
  - mvn checkstyle:check
  - mvn pmd:check
  - mvn spotbugs:check

Use spotbugs instead of findbugs. Use only JDK 8 to test build.
Use spotbugs instead of findbugs.
Use only JDK 8 to test build.