mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-02-06 19:19:59 +00:00
Some checks failed
Dotnet Provisioner Unit Tests / Restore and Run Unit Tests (ubuntu-20.04) (push) Has been cancelled
Dotnet Provisioner Unit Tests / Restore and Run Unit Tests (windows-2022) (push) Has been cancelled
HIRS Build and Unit Test / ACA_Provisioner_Unit_Tests (push) Has been cancelled
HIRS System Tests / DockerTests (push) Has been cancelled
Dotnet Provisioner Unit Tests / Evaluate Tests (push) Has been cancelled
* issue_863: Successfully moved all the dependencies to toml file and currently replacing dependencies listed in the build.gradle file with the ones referenced in the toml file * issue_863: finished updating dependency versions. Ready for PR * issue_863: downgraded versions since there was an issue with the dependencies versions and the ci/cd pipeline in git. will update each depedency slowly to ensure that upgrades are down correctly. * issue_863: upgrading this slowly but surely * issue_863: upgrading this slowly but surely again. testing to see if github's ci/cd is happy still with these set of changes. * issue_863: upgrading this slowly but surely again. testing to see if github's ci/cd is happy still with these set of changes (again) * issue_863: upgrading this slowly but surely again. testing to see if github's ci/cd is happy still with these set of changes (again) partIII * issue_863: Part IV of upgrading this slowly to see if github's ci/cd is happy still with these set of changes (again) * issue_863: Part V of upgrading this slowly to see if github's ci/cd is happy still with these set of changes (again) * issue_863: Part VI of updating dependencies slowly * issue_863: Part VII of updating dependencies * issue_863: Part 8 of updating dependencies * issue_863: Part 9 of updating dependencies * issue_863: Part 10 of updating dependencies * issue_863: Part 12 of updating dependencies * issue_863: Part 13 of updating dependencies * issue_863: Part 14 of updating dependencies * issue_863: Part 15 of updating dependencies * issue_863: Updating tomcat core. * issue_863: removed some critical vulnerable dependencies * issue_863: updated spring boot version. second try at it. * issue_863: undid spring update. need to figure out how to smoothly transition to newer spring. * issue_863: updated spring boot, hibernate, and spring retry. Removed an unused dependency. * issue_863: removed unused dependencies and am currently resolving critical vulnerable dependendcies * issue_863: reverted changes from last commit. let's see if that makes a difference * issue_863: Updated gradle version, fixed more vulnerabilities, now figuring what to do with the remaining vulnerabilities. * issue_863: Updated gradle plugins version, fixed more vulnerabilities, now figuring what to do with the remaining vulnerabilities. * issue_863: Updated gradle plugins version again. Ready for PR. Vulnerability issues will be addressed in another PR. I've cut down vulnerabilities by quite a lot and I want to test the new OWASP plugin against the remaining vulnerabilities. * issue_863: Finishing touches to the PR. Upgraded some more dependencies and removed unused one. * issue_863: Removed testng from codebase. Has been officially replaced with spring junit.
94 lines
2.1 KiB
Groovy
94 lines
2.1 KiB
Groovy
import com.github.spotbugs.snom.SpotBugsTask
|
|
|
|
import java.util.concurrent.TimeUnit
|
|
|
|
plugins {
|
|
// Apply the application plugin to add support for building a CLI application in Java.
|
|
id 'application'
|
|
id 'checkstyle'
|
|
id 'com.github.spotbugs' version '6.0.13' apply false
|
|
id 'org.owasp.dependencycheck' version '11.1.1'
|
|
id 'java'
|
|
}
|
|
|
|
// Global checkstyle file
|
|
ext.checkstyleConfigFile = new File(rootDir, "/config/checkstyle/sun_checks.xml")
|
|
|
|
subprojects {
|
|
apply plugin: "com.github.spotbugs"
|
|
apply plugin: "java"
|
|
apply plugin: "checkstyle"
|
|
apply plugin: "org.owasp.dependencycheck"
|
|
|
|
repositories {
|
|
flatDir { dirs "lib" }
|
|
mavenCentral()
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
}
|
|
}
|
|
|
|
checkstyle {
|
|
toolVersion = '10.20.0'
|
|
configFile file("${rootDir}/config/checkstyle/checkstyle.xml")
|
|
}
|
|
|
|
checkstyleMain {
|
|
source = 'src/main/java'
|
|
}
|
|
checkstyleTest {
|
|
source = 'src/test/java'
|
|
}
|
|
|
|
tasks.withType(Checkstyle).configureEach {
|
|
reports {
|
|
xml.required = false
|
|
html.required = true
|
|
}
|
|
}
|
|
|
|
spotbugs {
|
|
excludeFilter = file('config/spotbugs/spotbugs-exclude.xml')
|
|
}
|
|
|
|
tasks.withType(SpotBugsTask).configureEach {
|
|
reports {
|
|
html.required = true
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
dependencies {
|
|
repositories {
|
|
// Use Maven Central for resolving dependencies.
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
def projectVersion = rootProject.file('VERSION').text.trim()
|
|
|
|
def buildTime = { ->
|
|
Date latestdate = new Date()
|
|
def time = latestdate.getTime()
|
|
long seconds = TimeUnit.MILLISECONDS.toSeconds(time)
|
|
return seconds
|
|
}
|
|
|
|
def gitHash = { ->
|
|
def stdout = new ByteArrayOutputStream()
|
|
exec {
|
|
commandLine 'git', 'rev-parse', '--short', 'HEAD'
|
|
standardOutput = stdout
|
|
}
|
|
return stdout.toString().trim()
|
|
}
|
|
|
|
project.ext["projVersion"] = "${projectVersion}"
|
|
project.ext["jarVersion"] = "${projectVersion}.${buildTime}.${gitHash}"
|
|
project.ext["packageVersion"] = "${projectVersion}.${buildTime}.${gitHash}.el8"
|
|
|