diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 0e0b161bc..1aa1b4bc5 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -28,24 +28,3 @@ jobs: uses: github/codeql-action/analyze@v3 with: category: "/language:java" - - static-analysis: - name: Static Analysis - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: 17 - cache: 'gradle' - - - name: Run static analysis - run: ./gradlew build staticAnalysis -P staticAnalysisMarker - - - uses: actions/upload-artifact@v4 - with: - name: staticAnalysis - path: | - build/reports/staticAnalysis diff --git a/build.gradle b/build.gradle index 0bbbf1007..512ea3b6c 100755 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,9 @@ -import com.github.spotbugs.snom.SpotBugsReport import static de.fayard.refreshVersions.core.Versions.versionFor plugins { id 'java' id 'io.github.goooler.shadow' //TODO find alternative id 'jacoco' - id 'com.github.spotbugs' id 'org.asciidoctor.jvm.convert' } @@ -104,39 +102,6 @@ jacocoTestReport { getExecutionData().setFrom("$buildDir/jacoco/test.exec") } -///////////////////////// -// STATIC ANALYSIS ////// -///////////////////////// - -spotbugs { - ignoreFailures = false - excludeFilter = file("config/spotbugs/excludeFilter.xml") -} -spotbugsMain { - onlyIf {project.hasProperty('staticAnalysisMarker')} - reports(({ - html { - required = true - destination = file("$buildDir/reports/staticAnalysis/spotbugs-main.html") - stylesheet = 'fancy-hist.xsl' - } - } as Closure>)) -} -spotbugsTest { - onlyIf {project.hasProperty('staticAnalysisMarker')} - reports(({ - html { - required = true - destination = file("$buildDir/reports/staticAnalysis/spotbugs-test.html") - stylesheet = 'fancy-hist.xsl' - } - } as Closure>)) -} - -task staticAnalysis(type: GradleBuild) { - tasks = ['spotbugsMain', 'spotbugsTest'] -} - task generateManpageAsciiDoc(type: JavaExec) { dependsOn(classes) group = "Documentation" diff --git a/config/spotbugs/excludeFilter.xml b/config/spotbugs/excludeFilter.xml deleted file mode 100644 index 1fea3301b..000000000 --- a/config/spotbugs/excludeFilter.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/versions.properties b/versions.properties index dd3174f04..61f9cd690 100644 --- a/versions.properties +++ b/versions.properties @@ -47,8 +47,6 @@ version.com.github.crowdin..crowdin-api-client-java=1.17.1 plugin.org.asciidoctor.jvm.convert=3.3.2 -plugin.com.github.spotbugs=5.2.5 - plugin.io.github.goooler.shadow=8.1.7 ## Jacoco Version needs manual update