Skip to content

Commit

Permalink
Merge pull request #36 from abdulrahim458/FISH-9578-add-spotbugs
Browse files Browse the repository at this point in the history
FISH-9578 add spotbugs
  • Loading branch information
abdulrahim458 authored Sep 16, 2024
2 parents b839109 + c5e7b02 commit 6ecd2c4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
12 changes: 0 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@ pipeline {
payaraBuildNumber = "${BUILD_NUMBER}"
}
stages {
stage('Checkout master') {
steps {
script {
checkout changelog: false, poll: true, scm: [$class: 'GitSCM',
branches: [[name: "master"]],
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],
userRemoteConfigs: [[credentialsId: 'payara-devops-github-personal-access-token-as-username-password', url:"https://github.com/payara/ecosystem-intellij-community-plugin.git"]]]
}
}
}
stage('Build') {
steps {
script {
Expand Down
17 changes: 16 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'java'
id 'org.jetbrains.intellij' version '1.17.2'
id 'com.github.spotbugs' version '5.0.14' // Add SpotBugs plugin
}

apply plugin: 'org.jetbrains.intellij'
Expand All @@ -22,12 +23,26 @@ repositories {
}

dependencies {

implementation 'fish.payara.tools:payara-cloud:1.0-Alpha4'
implementation 'fish.payara.cloud:cloud-api:1.0.1'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.9.1'
}

// SpotBugs Configuration
spotbugs {
toolVersion = '4.2.3' // Set the SpotBugs version
effort = 'max' // Maximum analysis effort
reportLevel = 'low' // Report all issues
ignoreFailures = true // Fail the build on SpotBugs violations (set to true if you want the build to continue)
}

tasks.withType(com.github.spotbugs.snom.SpotBugsTask) {
reports {
xml.enabled = true // Enable XML report
html.enabled = false // Enable HTML report
}
}

intellij {
version = '242.20224.387'
type = 'IC'
Expand Down

0 comments on commit 6ecd2c4

Please sign in to comment.