Skip to content

Commit

Permalink
Changes to finish off the initial push
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus-dev committed Jan 29, 2024
1 parent bb68261 commit 35a48f4
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 13 deletions.
3 changes: 2 additions & 1 deletion HIRS_AttestationCA/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java'
id 'io.spring.dependency-management' version '1.1.0'
id 'com.google.protobuf' version '0.9.4'
id 'checkstyle' version '10.12.7'
id 'checkstyle'
}

java {
Expand Down Expand Up @@ -59,6 +59,7 @@ dependencies {
annotationProcessor libs.lombok
}
checkstyle {
toolVersion = '10.12.7'
configFile file("${rootDir}/config/checkstyle/checkstyle.xml")
}
checkstyleMain {
Expand Down
18 changes: 18 additions & 0 deletions HIRS_AttestationCAPortal/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
id 'com.netflix.nebula.ospackage' version '11.4.0'
id 'org.springframework.boot' version '3.0.6'
id 'io.spring.dependency-management' version '1.1.0'
id 'checkstyle'
}

// Get version from main project gradle
Expand Down Expand Up @@ -59,6 +60,23 @@ dependencies {
testImplementation 'org.hsqldb:hsqldb'
}

checkstyle {
toolVersion = '10.12.7'
configFile file("${rootDir}/config/checkstyle/checkstyle.xml")
}
checkstyleMain {
source ='src/main/java'
}
checkstyleTest {
source ='src/test/java'
}
tasks.withType(Checkstyle) {
reports {
xml.required = false
html.required = true
}
}

test {
useJUnitPlatform()
}
Expand Down
2 changes: 2 additions & 0 deletions HIRS_AttestationCAPortal/config/checkstyle/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@

<suppressions>
<suppress checks="MagicNumber" files=".*[/\\]src[/\\]test[/\\]+" />
<suppress checks="FinalParameters" files=".*[/\\]src[/\\]test[/\\]+" />
<suppress checks="JavadocPackage" files=".*[/\\]src[/\\]test[/\\]+" />
</suppressions>
28 changes: 17 additions & 11 deletions HIRS_Structs/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'java'
// id 'checkstyle'
id 'checkstyle'
}

java {
Expand All @@ -22,17 +22,23 @@ dependencies {
testImplementation libs.testng
}

//ext.configDir = new File(projectDir, 'config')
//ext.checkstyleConfigDir = "$configDir/checkstyle"
checkstyle {
toolVersion = '10.12.7'
configFile file("${rootDir}/config/checkstyle/checkstyle.xml")
}
checkstyleMain {
source ='src/main/java'
}
checkstyleTest {
source ='src/test/java'
}
tasks.withType(Checkstyle) {
reports {
xml.required = false
html.required = true
}
}

//checkstyle {
// toolVersion = '5.7'
// configFile = checkstyleConfigFile
// configProperties.put('basedir', checkstyleConfigDir)
// ignoreFailures = false
// showViolations = true
//}
//
//publishing {
// publications {
// maven(MavenPublication) {
Expand Down
2 changes: 2 additions & 0 deletions HIRS_Structs/config/checkstyle/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@

<suppressions>
<suppress checks="MagicNumber" files=".*[/\\]src[/\\]test[/\\]+" />
<suppress checks="FinalParameters" files=".*[/\\]src[/\\]test[/\\]+" />
<suppress checks="JavadocPackage" files=".*[/\\]src[/\\]test[/\\]+" />
</suppressions>
18 changes: 18 additions & 0 deletions HIRS_Utils/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'java'
id 'checkstyle'
}
// Get version from main project gradle
def packVersion = properties.get("packageVersion");
Expand Down Expand Up @@ -54,6 +55,23 @@ dependencies {

}

checkstyle {
toolVersion = '10.12.7'
configFile file("${rootDir}/config/checkstyle/checkstyle.xml")
}
checkstyleMain {
source ='src/main/java'
}
checkstyleTest {
source ='src/test/java'
}
tasks.withType(Checkstyle) {
reports {
xml.required = false
html.required = true
}
}

test {
useJUnitPlatform()
}
Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ plugins {

subprojects {
apply plugin: "com.github.spotbugs"
//apply plugin: 'checkstyle'

spotbugs {
excludeFilter = file('config/spotbugs/spotbugs-exclude.xml')
Expand Down

0 comments on commit 35a48f4

Please sign in to comment.