Skip to content

Commit

Permalink
feat: ssi-lib version set to 15
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin-vavdiya committed Aug 19, 2023
1 parent aed05de commit 910aa2a
Showing 1 changed file with 101 additions and 101 deletions.
202 changes: 101 additions & 101 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
plugins {
id 'java'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyVersion}"
id "jacoco"
id 'project-report'
id 'java'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyVersion}"
id "jacoco"
id 'project-report'

}

Expand All @@ -12,138 +12,138 @@ version = "${applicationVersion}"
sourceCompatibility = JavaVersion.VERSION_17

configurations {
compileOnly {
extendsFrom annotationProcessor
}
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
mavenLocal()
mavenCentral()
maven {
url = uri("https://repo.danubetech.com/repository/maven-public")
}
maven { url 'https://jitpack.io' }
maven {
url = uri("https://maven.pkg.github.com/catenax-ng/product-lab-ssi")
credentials {
username = "${githubUserName}"
password = "${githubToken}"
}
}
mavenLocal()
mavenCentral()
maven {
url = uri("https://repo.danubetech.com/repository/maven-public")
}
maven { url 'https://jitpack.io' }
maven {
url = uri("https://maven.pkg.github.com/catenax-ng/product-lab-ssi")
credentials {
username = "${githubUserName}"
password = "${githubToken}"
}
}
}

ext {

}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.security:spring-security-oauth2-resource-server'
implementation 'org.springframework.security:spring-security-oauth2-jose'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation "org.springdoc:springdoc-openapi-starter-common:${openApiVersion}"
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${openApiVersion}"
implementation group: 'com.smartsensesolutions', name: 'commons-dao', version: '0.0.5'
implementation 'org.liquibase:liquibase-core'
implementation 'org.eclipse.tractusx.ssi:cx-ssi-lib:0.0.13'

//Added explicitly to mitigate CVE 2022-1471
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.0'

//Added explicitly to mitigate CVE 2023-24998
implementation group: 'commons-fileupload', name: 'commons-fileupload', version: '1.5'


testImplementation 'org.projectlombok:lombok:1.18.28'
runtimeOnly 'org.postgresql:postgresql'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation "org.testcontainers:testcontainers"
testImplementation 'com.h2database:h2:2.2.220'
testImplementation "org.testcontainers:junit-jupiter"
testImplementation group: 'com.github.dasniko', name: 'testcontainers-keycloak', version: '2.5.0'
testImplementation group: 'org.mockito', name: 'mockito-inline', version: '5.2.0'
testImplementation group: 'org.json', name: 'json', version: '20230227'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.security:spring-security-oauth2-resource-server'
implementation 'org.springframework.security:spring-security-oauth2-jose'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation "org.springdoc:springdoc-openapi-starter-common:${openApiVersion}"
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${openApiVersion}"
implementation group: 'com.smartsensesolutions', name: 'commons-dao', version: '0.0.5'
implementation 'org.liquibase:liquibase-core'
implementation 'org.eclipse.tractusx.ssi:cx-ssi-lib:0.0.15'

//Added explicitly to mitigate CVE 2022-1471
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.0'

//Added explicitly to mitigate CVE 2023-24998
implementation group: 'commons-fileupload', name: 'commons-fileupload', version: '1.5'


testImplementation 'org.projectlombok:lombok:1.18.28'
runtimeOnly 'org.postgresql:postgresql'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation "org.testcontainers:testcontainers"
testImplementation 'com.h2database:h2:2.2.220'
testImplementation "org.testcontainers:junit-jupiter"
testImplementation group: 'com.github.dasniko', name: 'testcontainers-keycloak', version: '2.5.0'
testImplementation group: 'org.mockito', name: 'mockito-inline', version: '5.2.0'
testImplementation group: 'org.json', name: 'json', version: '20230227'
}

dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
mavenBom("org.testcontainers:testcontainers-bom:${testContainerVersion}")
}
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
mavenBom("org.testcontainers:testcontainers-bom:${testContainerVersion}")
}
}

tasks.named('test') {
useJUnitPlatform()
useJUnitPlatform()
}

build {
archivesBaseName = "miw"
version = "latest"
archivesBaseName = "miw"
version = "latest"
}

test {
finalizedBy jacocoTestReport
finalizedBy jacocoTestReport
}

htmlDependencyReport {
projects = project.allprojects
projects = project.allprojects
}

jacocoTestReport {
dependsOn test

reports {
xml.required = false
csv.required = false
html.required = true
}

afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
"org/eclipse/tractusx/managedidentitywallets/dto/*",
"org/eclipse/tractusx/managedidentitywallets/dao/entity/*",
"org/eclipse/tractusx/managedidentitywallets/constant/*",
"org/eclipse/tractusx/managedidentitywallets/exception/*"
])
}))
}
dependsOn test

reports {
xml.required = false
csv.required = false
html.required = true
}

afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
"org/eclipse/tractusx/managedidentitywallets/dto/*",
"org/eclipse/tractusx/managedidentitywallets/dao/entity/*",
"org/eclipse/tractusx/managedidentitywallets/constant/*",
"org/eclipse/tractusx/managedidentitywallets/exception/*"
])
}))
}
}

jacoco {
toolVersion = "${jacocoVersion}"
toolVersion = "${jacocoVersion}"

}


jacocoTestCoverageVerification {
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
"org/eclipse/tractusx/managedidentitywallets/dto/*",
"org/eclipse/tractusx/managedidentitywallets/dao/entity/*",
"org/eclipse/tractusx/managedidentitywallets/constant/*",
"org/eclipse/tractusx/managedidentitywallets/exception/*"
])
}))
}
violationRules {
rule {
limit {
// disabled for now
minimum = 0.00
}
}
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
"org/eclipse/tractusx/managedidentitywallets/dto/*",
"org/eclipse/tractusx/managedidentitywallets/dao/entity/*",
"org/eclipse/tractusx/managedidentitywallets/constant/*",
"org/eclipse/tractusx/managedidentitywallets/exception/*"
])
}))
}
violationRules {
rule {
limit {
// disabled for now
minimum = 0.00
}
}
}
}

check.dependsOn jacocoTestCoverageVerification

0 comments on commit 910aa2a

Please sign in to comment.