Skip to content

Commit

Permalink
issue_901: Figured out logging issues. Now log can successfully recor…
Browse files Browse the repository at this point in the history
…d new events and is located where it should be (var/log/hirs). Ready for PR. (#903)
  • Loading branch information
ThatSilentCoder authored Mar 6, 2025
1 parent b3cc60d commit 60cc011
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 18 deletions.
11 changes: 3 additions & 8 deletions HIRS_AttestationCA/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ plugins {
}

configurations {
all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
compileOnly {
extendsFrom annotationProcessor
}
Expand Down Expand Up @@ -38,23 +41,15 @@ dependencies {
// explicitly include the patched version of the spring framework webmvc dependency
implementation libs.spring.framework.webmvc

// explicitly include the patched version of the logback-core dependency
implementation libs.logback.classic

compileOnly libs.lombok
annotationProcessor libs.lombok

compileOnly libs.spotbugs.annotations
annotationProcessor libs.spotbugs.annotations

testImplementation libs.commons.io

// explicitly include the patched version of the logback-core dependency
testImplementation libs.logback.classic

testImplementation libs.spring.boot.starter.test


testCompileOnly libs.lombok
testAnnotationProcessor libs.lombok
}
Expand Down
4 changes: 3 additions & 1 deletion HIRS_AttestationCAPortal/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ bootRun {
}

configurations {
all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
compileOnly {
extendsFrom annotationProcessor
}
all*.exclude module: 'spring-boot-starter-logging'
}

dependencies {
Expand Down
9 changes: 6 additions & 3 deletions HIRS_Structs/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
configurations {
all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
}

dependencies {
implementation libs.commons.lang3

Expand All @@ -6,9 +12,6 @@ dependencies {

testImplementation libs.spring.boot.starter.test

// explicitly include the patched version of the logback-core dependency
testImplementation libs.logback.classic

testCompileOnly libs.lombok
testAnnotationProcessor libs.lombok
}
Expand Down
6 changes: 3 additions & 3 deletions HIRS_Utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ def jarVersion = properties.get("jarVersion")
//println "packageVersion is ${projVersion}"

configurations {
all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
compileOnly {
extendsFrom annotationProcessor
}
Expand Down Expand Up @@ -33,9 +36,6 @@ dependencies {

testImplementation libs.spring.boot.starter.test

// explicitly include the patched version of the logback-core dependency
testImplementation libs.logback.classic

testImplementation project(path: ':HIRS_AttestationCA')

testCompileOnly libs.lombok
Expand Down
2 changes: 0 additions & 2 deletions gradle/versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jakartaServletVersion = "3.0.0"
jakartaXmlVersion = "4.0.2"
jcommanderVersion = "2.0"
lombokVersion = "1.18.36"
logbackClassicVersion = "1.5.13"
mariadbVersion = "3.5.1"
minimalJsonVersion = "0.9.5"
ospackageVersion = "11.2.0"
Expand Down Expand Up @@ -48,7 +47,6 @@ jakarta-persistence-api = { module = "jakarta.persistence:jakarta.persistence-ap
jakarta-servlet = { module = "org.glassfish.web:jakarta.servlet.jsp.jstl", version.ref = "jakartaServletVersion" }
jakarta-xml = { module = "jakarta.xml.bind:jakarta.xml.bind-api", version.ref = "jakartaXmlVersion" }
jcommander = { module = "org.jcommander:jcommander", version.ref = "jcommanderVersion" }
logback-classic = { module = "ch.qos.logback:logback-classic", version.ref = "logbackClassicVersion" }
lombok = { module = "org.projectlombok:lombok", version.ref = "lombokVersion" }
mariadb-java-client = { module = "org.mariadb.jdbc:mariadb-java-client", version.ref = "mariadbVersion" }
minimal-json = { module = "com.eclipsesource.minimal-json:minimal-json", version.ref = "minimalJsonVersion" }
Expand Down
7 changes: 6 additions & 1 deletion tools/tcg_rim_tool/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ plugins {
def packVersion = properties.get("packageVersion");
def jarVersion = properties.get("jarVersion");

configurations {
all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
}

dependencies {
implementation project(':HIRS_Utils')

Expand All @@ -21,7 +27,6 @@ dependencies {
implementation libs.jakarta.xml
implementation libs.spring.boot.starter.log4j2
implementation libs.spring.boot.starter.data.jpa
implementation libs.logback.classic

compileOnly libs.lombok
annotationProcessor libs.lombok
Expand Down

0 comments on commit 60cc011

Please sign in to comment.