Skip to content

Commit

Permalink
Fix gradle warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gayaldassanayake committed Oct 8, 2024
1 parent 5dce862 commit d4bf3f7
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 45 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ enterprisePluginVersion=3.18.1
# Dependency versions
picoCLIVersion=4.7.5
gsonVersion=2.10.1
ballerinaLangVersion=2201.10.0
ballerinaLangVersion=2201.10.1
puppycrawlCheckstyleVersion=10.12.1
apacheCommonsLang3Version=3.0
commonsIoVersion=2.15.1
testngVersion=7.6.1
testngVersion=7.7.0
jacocoVersion=0.8.10
12 changes: 6 additions & 6 deletions scan-command/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ artifacts.add('default', file("${project.buildDir}/suppressions.xml")) {
}

def excludePattern = '**/module-info.java'
tasks.withType(Checkstyle) {
tasks.withType(Checkstyle).configureEach {
exclude excludePattern
}

Expand All @@ -124,8 +124,8 @@ spotbugsMain {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand All @@ -141,8 +141,8 @@ spotbugsTest {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand Down Expand Up @@ -273,7 +273,7 @@ tasks.test {
}

// Codecove configurations
def execFile = new File("${buildDir}/jacoco/test.exec");
def execFile = new File("${buildDir}/jacoco/test.exec")
def classFileArray = []
tasks.register('copyExecFilesAndJavaClassFiles') {
if (execFile.exists()) {
Expand Down
2 changes: 1 addition & 1 deletion scan-command/tool-scan/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
org = "ballerina"
name = "tool_scan"
version = "0.1.0"
distribution = "2201.10.0"
distribution = "2201.10.1"
authors = ["Ballerina"]
keywords = ["scan", "static code analysis"]
license = ["Apache-2.0"]
Expand Down
10 changes: 5 additions & 5 deletions test-compiler-plugins/ballerina-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ artifacts.add('default', file("${project.buildDir}/suppressions.xml")) {
}

def excludePattern = '**/module-info.java'
tasks.withType(Checkstyle) {
tasks.withType(Checkstyle).configureEach {
exclude excludePattern
}

Expand All @@ -106,8 +106,8 @@ spotbugsMain {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand All @@ -123,8 +123,8 @@ spotbugsTest {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand Down
10 changes: 5 additions & 5 deletions test-compiler-plugins/ballerinax-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ artifacts.add('default', file("${project.buildDir}/suppressions.xml")) {
}

def excludePattern = '**/module-info.java'
tasks.withType(Checkstyle) {
tasks.withType(Checkstyle).configureEach {
exclude excludePattern
}

Expand All @@ -106,8 +106,8 @@ spotbugsMain {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand All @@ -123,8 +123,8 @@ spotbugsTest {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand Down
10 changes: 5 additions & 5 deletions test-compiler-plugins/exampleOrg-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ artifacts.add('default', file("${project.buildDir}/suppressions.xml")) {
}

def excludePattern = '**/module-info.java'
tasks.withType(Checkstyle) {
tasks.withType(Checkstyle).configureEach {
exclude excludePattern
}

Expand All @@ -106,8 +106,8 @@ spotbugsMain {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand All @@ -123,8 +123,8 @@ spotbugsTest {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand Down
10 changes: 5 additions & 5 deletions test-compiler-plugins/invalid-ruleformat-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ artifacts.add('default', file("${project.buildDir}/suppressions.xml")) {
}

def excludePattern = '**/module-info.java'
tasks.withType(Checkstyle) {
tasks.withType(Checkstyle).configureEach {
exclude excludePattern
}

Expand All @@ -106,8 +106,8 @@ spotbugsMain {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand All @@ -123,8 +123,8 @@ spotbugsTest {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand Down
10 changes: 5 additions & 5 deletions test-compiler-plugins/invalid-rulekind-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ artifacts.add('default', file("${project.buildDir}/suppressions.xml")) {
}

def excludePattern = '**/module-info.java'
tasks.withType(Checkstyle) {
tasks.withType(Checkstyle).configureEach {
exclude excludePattern
}

Expand All @@ -106,8 +106,8 @@ spotbugsMain {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand All @@ -123,8 +123,8 @@ spotbugsTest {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand Down
10 changes: 5 additions & 5 deletions test-compiler-plugins/invalid-rules-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ artifacts.add('default', file("${project.buildDir}/suppressions.xml")) {
}

def excludePattern = '**/module-info.java'
tasks.withType(Checkstyle) {
tasks.withType(Checkstyle).configureEach {
exclude excludePattern
}

Expand All @@ -106,8 +106,8 @@ spotbugsMain {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand All @@ -123,8 +123,8 @@ spotbugsTest {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ artifacts.add('default', file("${project.buildDir}/suppressions.xml")) {
}

def excludePattern = '**/module-info.java'
tasks.withType(Checkstyle) {
tasks.withType(Checkstyle).configureEach {
exclude excludePattern
}

Expand All @@ -93,8 +93,8 @@ spotbugsMain {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand All @@ -110,8 +110,8 @@ spotbugsTest {
reportsDir = file("$project.buildDir/reports/spotbugs")

reports {
html.enabled true
text.enabled = true
html.required.set(true)
text.required.set(true)
}

def excludeFile = file("${projectDir}/spotbugs-exclude.xml")
Expand All @@ -120,4 +120,4 @@ spotbugsTest {
}
}

jar.archiveFileName = "${project.name}.jar";
jar.archiveFileName = "${project.name}.jar"

0 comments on commit d4bf3f7

Please sign in to comment.