Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#863] Placed Dependencies and Dependency Versions In TOML file #885

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2162478
issue_863: Successfully moved all the dependencies to toml file and c…
ThatSilentCoder Nov 21, 2024
3307cdd
issue_863: finished updating dependency versions. Ready for PR
ThatSilentCoder Nov 22, 2024
ce78c75
issue_863: downgraded versions since there was an issue with the depe…
ThatSilentCoder Nov 25, 2024
548c203
issue_863: upgrading this slowly but surely
ThatSilentCoder Nov 25, 2024
d831d02
issue_863: upgrading this slowly but surely again. testing to see if …
ThatSilentCoder Nov 26, 2024
fea5960
issue_863: upgrading this slowly but surely again. testing to see if …
ThatSilentCoder Nov 26, 2024
3c0b2cb
issue_863: upgrading this slowly but surely again. testing to see if …
ThatSilentCoder Nov 26, 2024
3698ffc
issue_863: Part IV of upgrading this slowly to see if github's ci/cd…
ThatSilentCoder Nov 26, 2024
e70cdbc
issue_863: Part V of upgrading this slowly to see if github's ci/cd …
ThatSilentCoder Nov 26, 2024
cd7a7e1
issue_863: Part VI of updating dependencies slowly
ThatSilentCoder Nov 26, 2024
7b0486f
issue_863: Part VII of updating dependencies
ThatSilentCoder Nov 26, 2024
637ec53
issue_863: Part 8 of updating dependencies
ThatSilentCoder Nov 26, 2024
7cef3ac
issue_863: Part 9 of updating dependencies
ThatSilentCoder Nov 26, 2024
17375bc
issue_863: Part 10 of updating dependencies
ThatSilentCoder Nov 26, 2024
77a31fe
issue_863: Part 12 of updating dependencies
ThatSilentCoder Nov 26, 2024
8d62d85
issue_863: Part 13 of updating dependencies
ThatSilentCoder Nov 26, 2024
d396ace
issue_863: Part 14 of updating dependencies
ThatSilentCoder Nov 26, 2024
c8d53cd
issue_863: Part 15 of updating dependencies
ThatSilentCoder Nov 26, 2024
8008c4d
issue_863: Updating tomcat core.
ThatSilentCoder Nov 26, 2024
bc25d6a
issue_863: removed some critical vulnerable dependencies
ThatSilentCoder Nov 27, 2024
4798b16
issue_863: updated spring boot version. second try at it.
ThatSilentCoder Nov 27, 2024
e32a9b6
issue_863: undid spring update. need to figure out how to smoothly tr…
ThatSilentCoder Nov 27, 2024
a57cd09
issue_863: updated spring boot, hibernate, and spring retry. Removed …
ThatSilentCoder Nov 27, 2024
028a521
issue_863: removed unused dependencies and am currently resolving cri…
ThatSilentCoder Nov 27, 2024
301689d
issue_863: reverted changes from last commit. let's see if that makes…
ThatSilentCoder Nov 27, 2024
1c39f8d
issue_863: Updated gradle version, fixed more vulnerabilities, now fi…
ThatSilentCoder Dec 17, 2024
3d795a5
issue_863: Updated gradle plugins version, fixed more vulnerabilities…
ThatSilentCoder Dec 18, 2024
d470fd8
issue_863: Updated gradle plugins version again. Ready for PR. Vulner…
ThatSilentCoder Dec 19, 2024
e49f7fd
issue_863: Finishing touches to the PR. Upgraded some more dependenci…
ThatSilentCoder Dec 19, 2024
616fc06
issue_863: Removed testng from codebase. Has been officially replaced…
ThatSilentCoder Dec 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 24 additions & 59 deletions HIRS_AttestationCA/build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
plugins {
id 'java'
id 'io.spring.dependency-management' version '1.1.0'
id 'io.spring.dependency-management' version '1.1.7'
id 'com.google.protobuf' version '0.9.4'
id 'checkstyle'
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

repositories {
mavenCentral()

flatDir { dirs "lib" }
}

configurations {
Expand All @@ -27,63 +13,42 @@ dependencies {
implementation project(':HIRS_Utils')
implementation project(':HIRS_Structs')

implementation 'org.springframework.boot:spring-boot-starter-data-jpa:3.0.1'
implementation 'com.github.darrachequesne:spring-data-jpa-datatables:6.0.1'
implementation 'org.springframework.retry:spring-retry:2.0.0'
implementation libs.springdatajpa

implementation libs.bouncycastle
implementation libs.commons.codec
implementation libs.commons.io
implementation libs.commons.lang3
implementation libs.jakarta.api
implementation libs.jakarta.xml
implementation libs.hibernate.core
implementation libs.pci
implementation libs.guava
implementation libs.jackson.core
implementation libs.jackson.databind
implementation libs.jakarta.persistence.api
implementation libs.jakarta.xml
implementation libs.spring.boot.starter.log4j2
implementation libs.minimal.json
implementation libs.protobuf.java
implementation 'org.apache.logging.log4j:log4j-core:2.19.0'
implementation 'org.apache.logging.log4j:log4j-api:2.19.0'

testImplementation 'org.apache.directory.studio:org.apache.commons.io:2.4'
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
testImplementation 'org.junit.platform:junit-platform-launcher:1.9.3'
testImplementation 'org.mockito:mockito-core:4.2.0'
testImplementation 'org.springframework:spring-test:6.0.8'
// pull the pci dependency and ...
implementation libs.pci
// and explicitly include the patched version of the apache http client dependency
implementation libs.apacheHttpClient

compileOnly "com.github.spotbugs:spotbugs-annotations:${spotBugAnnotationVersion}"
annotationProcessor "com.github.spotbugs:spotbugs-annotations:${spotBugAnnotationVersion}"
implementation libs.protobuf.java
implementation libs.spring.boot.starter.data.jpa
implementation libs.spring.retry
implementation libs.spring.boot.starter.web
implementation libs.spring.framework.webmvc

// spring management
compileOnly libs.lombok
implementation libs.lombok
annotationProcessor libs.lombok

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

testImplementation libs.commons.io
testImplementation libs.spring.boot.starter.test

testCompileOnly libs.lombok
testAnnotationProcessor libs.lombok
}
checkstyle {
toolVersion = '10.12.7'
configFile file("${rootDir}/config/checkstyle/checkstyle.xml")
}
// https://github.com/checkstyle/checkstyle/issues/14211#issuecomment-1884129948
configurations.checkstyle {
resolutionStrategy.capabilitiesResolution.withCapability("com.google.collections:google-collections") {
select("com.google.guava:guava:0")
}
}
checkstyleMain {
source = 'src/main/java'
}
checkstyleTest {
source = 'src/test/java'
}
tasks.withType(Checkstyle) {
reports {
xml.required = false
html.required = true
}
}

protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.24.3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public abstract class UserDefinedEntity extends ArchivableEntity {

@Column(nullable = false, unique = true)
@NonNull
private String name;
private String name = "";

@ToString.Exclude
@Column(nullable = false, unique = false)
@Column(nullable = false)
@NonNull
private String description = "";

Expand Down
91 changes: 30 additions & 61 deletions HIRS_AttestationCAPortal/build.gradle
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
plugins {
id 'application'
id 'java'
id 'war'
id 'com.netflix.nebula.ospackage' version '11.8.0'
id 'org.springframework.boot' version '3.0.6'
id 'io.spring.dependency-management' version '1.1.0'
id 'checkstyle'
id 'com.netflix.nebula.ospackage' version '11.10.0'
id 'org.springframework.boot' version '3.0.13'
id 'io.spring.dependency-management' version '1.1.7'
}

// Get version from main project gradle
def packVersion = properties.get("packageVersion");
def jarVersion = properties.get("jarVersion");
def projVersion = properties.get("projVersion");
def packVersion = properties.get("packageVersion")
def jarVersion = properties.get("jarVersion")
def projVersion = properties.get("projVersion")
//println "packageVersion is ${projVersion}"

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

bootRun {
if (project.hasProperty('debug')) {
jvmArgs project.debug
Expand All @@ -33,63 +25,40 @@ configurations {
all*.exclude module: 'spring-boot-starter-logging'
}

repositories {
flatDir { dirs "lib" }
mavenCentral()
}

dependencies {
implementation project(':HIRS_Utils')
implementation project(':HIRS_AttestationCA')

implementation libs.pci
implementation libs.gson
implementation libs.bouncycastle
implementation libs.guava
implementation libs.gson
implementation libs.jakarta.persistence.api
implementation libs.jakarta.servlet
implementation libs.jakarta.api
implementation libs.jakarta.xml

implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
implementation 'org.apache.logging.log4j:log4j-spring-boot'
implementation 'org.projectlombok:lombok'
implementation 'commons-fileupload:commons-fileupload:1.5'
implementation 'org.apache.tomcat.embed:tomcat-embed-jasper:10.1.5'

compileOnly 'org.projectlombok:lombok'
implementation 'org.mariadb.jdbc:mariadb-java-client:3.1.4'
annotationProcessor 'org.projectlombok:lombok'
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'

testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
testImplementation 'org.hsqldb:hsqldb'
}
// pull the pci dependency and ...
implementation libs.pci
// and explicitly include the patched version of the apache http client dependency
implementation libs.apacheHttpClient

checkstyle {
toolVersion = '10.12.7'
configFile file("${rootDir}/config/checkstyle/checkstyle.xml")
}
// https://github.com/checkstyle/checkstyle/issues/14211#issuecomment-1884129948
configurations.checkstyle {
resolutionStrategy.capabilitiesResolution.withCapability("com.google.collections:google-collections") {
select("com.google.guava:guava:0")
}
}
checkstyleMain {
source = 'src/main/java'
}
checkstyleTest {
source = 'src/test/java'
}
tasks.withType(Checkstyle) {
reports {
xml.required = false
html.required = true
}
implementation libs.mariadb.java.client
implementation libs.spring.boot.starter.web
//implementation libs.spring.framework.webmvc
implementation libs.spring.boot.starter.validation
implementation libs.spring.boot.starter.data.jpa
implementation libs.spring.boot.starter.log4j2
implementation libs.tomcat.embed.jasper

compileOnly libs.lombok
annotationProcessor libs.lombok

providedRuntime libs.spring.boot.starter.tomcat

testImplementation libs.hsqldb
testImplementation libs.spring.boot.starter.test

testCompileOnly libs.lombok
testAnnotationProcessor libs.lombok
}

test {
Expand Down
53 changes: 7 additions & 46 deletions HIRS_Structs/build.gradle
Original file line number Diff line number Diff line change
@@ -1,56 +1,19 @@
plugins {
id 'java'
id 'checkstyle'
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

repositories {
mavenCentral()
dependencies {
implementation libs.commons.lang3

flatDir { dirs "lib" }
}
compileOnly libs.lombok
annotationProcessor libs.lombok

dependencies {
implementation 'org.apache.commons:commons-lang3:3.13.0'
testImplementation libs.spring.boot.starter.test

// testCompile libs.mockito
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
testImplementation 'org.junit.platform:junit-platform-launcher:1.9.3'
testImplementation 'org.hamcrest:hamcrest:2.2'
testCompileOnly libs.lombok
testAnnotationProcessor libs.lombok
}

test {
useJUnitPlatform()
}

checkstyle {
toolVersion = '10.12.7'
configFile file("${rootDir}/config/checkstyle/checkstyle.xml")
}
// https://github.com/checkstyle/checkstyle/issues/14211#issuecomment-1884129948
configurations.checkstyle {
resolutionStrategy.capabilitiesResolution.withCapability("com.google.collections:google-collections") {
select("com.google.guava:guava:0")
}
}
checkstyleMain {
source = 'src/main/java'
}
checkstyleTest {
source = 'src/test/java'
}
tasks.withType(Checkstyle) {
reports {
xml.required = false
html.required = true
}
}

//publishing {
// publications {
// maven(MavenPublication) {
Expand All @@ -59,5 +22,3 @@ tasks.withType(Checkstyle) {
// }
// }
//}


Loading
Loading