Skip to content

Commit

Permalink
remove sonar analysis (#234)
Browse files Browse the repository at this point in the history
Sonar keeps failing after few successful runs. Removing it for now.
  • Loading branch information
manikmagar committed Jan 17, 2022
1 parent d0feeed commit 3cd8ed9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,7 @@ on:
- '*.*'
pull_request:
types: [opened, synchronize, reopened]

jobs:
code-analysis:
name: code-analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'
check-latest: true
- name: Cache SonarCloud packages
uses: actions/cache@v2.1.7
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v2.1.7
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build sonarqube --info
build:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
23 changes: 23 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ plugins {
id "com.adarshr.test-logger" version "2.1.1"
id "com.geoffgranum.gradle-conventional-changelog" version "0.3.1"
id "org.sonarqube" version "3.3"
id "org.jreleaser" version "0.10.0"
id "jacoco"
}

Expand Down Expand Up @@ -209,3 +210,25 @@ build.dependsOn(container)

group = 'com.javastreets'
sourceCompatibility = '1.8'
jreleaser {
project {
website = 'https://javastreets.com'
authors = ['manikmagar']
description = "Mule Flow Diagrams - Generate graph diagram of your mule application."
license = 'MIT'
extraProperties.put('inceptionYear', '2021')
}
release {
github {
owner = 'manikmagar'
overwrite = true
}
}
distributions {
mulefd {
artifact {
path = 'build/distributions/{{distributionName}}-{{projectVersion}}.zip'
}
}
}
}
4 changes: 4 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sonar.projectKey=manikmagar_mulefd
sonar.organization=manikmagar
sonar.host.url=https://sonarcloud.io
sonar.coverage.jacoco.xmlReportPaths=${buildDir}/jacocoXml

0 comments on commit 3cd8ed9

Please sign in to comment.