Skip to content

Commit

Permalink
Merge pull request #15 from Xenowa/compiler-plugin-integration
Browse files Browse the repository at this point in the history
Add support for loading static analyzer plugins
  • Loading branch information
MaryamZi authored Jun 23, 2024
2 parents 098a3cd + 2f257a0 commit 13ac6e0
Show file tree
Hide file tree
Showing 154 changed files with 4,173 additions and 205 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/full_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
java-version: '17.0.7'

- name: Set Up Ballerina
uses: ballerina-platform/[email protected].0
uses: ballerina-platform/[email protected].1
with:
version: latest

Expand Down Expand Up @@ -64,9 +64,9 @@ jobs:
java-version: '17.0.7'

- name: Set Up Ballerina
uses: ballerina-platform/[email protected].0
uses: ballerina-platform/[email protected].1
with:
version: '2201.9.0'
version: '2201.9.1'

- name: Build with Gradle
env:
Expand Down
60 changes: 60 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,66 @@ plugins {
id "net.researchgate.release"
}

subprojects {
apply plugin: 'java-library'
}

project(':scan-command') {
dependencies {
tasks.test{
dependsOn ':test-compiler-plugins:exampleOrg-plugin:build'
dependsOn ':test-compiler-plugins:ballerina-plugin:build'
dependsOn ':test-compiler-plugins:ballerinax-plugin:build'
dependsOn ':test-compiler-plugins:invalid-rulefilemissing-plugin:build'
dependsOn ':test-compiler-plugins:invalid-rules-plugin:build'
dependsOn ':test-compiler-plugins:invalid-ruleformat-plugin:build'
dependsOn ':test-compiler-plugins:invalid-rulekind-plugin:build'
}
}
}

project(':test-compiler-plugins:exampleOrg-plugin') {
dependencies {
implementation project(':scan-command')
}
}

project(':test-compiler-plugins:ballerina-plugin') {
dependencies {
implementation project(':scan-command')
}
}

project(':test-compiler-plugins:ballerinax-plugin') {
dependencies {
implementation project(':scan-command')
}
}

project(':test-compiler-plugins:invalid-rulefilemissing-plugin') {
dependencies {
implementation project(':scan-command')
}
}

project(':test-compiler-plugins:invalid-rules-plugin') {
dependencies {
implementation project(':scan-command')
}
}

project(':test-compiler-plugins:invalid-ruleformat-plugin') {
dependencies {
implementation project(':scan-command')
}
}

project(':test-compiler-plugins:invalid-rulekind-plugin') {
dependencies {
implementation project(':scan-command')
}
}

// Release scan tool to GitHub
def moduleVersion = project.version.replace("-SNAPSHOT", "")
release {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ releasePluginVersion=2.8.0
# Dependency versions
picoCLIVersion=4.7.5
gsonVersion=2.10.1
ballerinaLangVersion=2201.9.0
ballerinaLangVersion=2201.9.1
puppycrawlCheckstyleVersion=10.12.1
apacheCommonsLang3Version=3.0
commonsIoVersion=2.15.1
Expand Down
Loading

0 comments on commit 13ac6e0

Please sign in to comment.