Skip to content

Commit

Permalink
vulnerability fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
v1r3n committed Jul 6, 2024
1 parent 237a479 commit 600ba09
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 13 deletions.
37 changes: 30 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
}
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:3.2.1'
classpath 'org.springframework.boot:spring-boot-gradle-plugin:3.1.4'
classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.+'
}
}
Expand All @@ -21,6 +21,7 @@ plugins {
id 'signing'
id 'java-library'
id "com.diffplug.spotless" version "6.25.0"
id 'org.springframework.boot' version '3.3.0'
}

// Establish version and status
Expand Down Expand Up @@ -50,11 +51,19 @@ allprojects {

group = 'org.conductoross'

configurations.all {
exclude group: 'ch.qos.logback', module: 'logback-classic'
exclude group: 'ch.qos.logback', module: 'logback-core'
exclude group: 'org.apache.logging.log4j', module: 'log4j-to-slf4j'
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
configurations {
all {
exclude group: 'ch.qos.logback', module: 'logback-classic'
exclude group: 'ch.qos.logback', module: 'logback-core'
exclude group: 'org.apache.logging.log4j', module: 'log4j-to-slf4j'
exclude group: 'org.slf4j', module: 'slf4j-log4j12'

resolutionStrategy.eachDependency { details ->
if (details.requested.group.startsWith('com.fasterxml.jackson.') ) {
details.useVersion "2.15.2"
}
}
}
}

repositories {
Expand Down Expand Up @@ -84,8 +93,19 @@ allprojects {
testImplementation 'junit:junit'
testImplementation "org.junit.vintage:junit-vintage-engine"
testAnnotationProcessor 'org.projectlombok:lombok:1.18.34'
}

//Locks for the dependecies
implementation('org.codehaus.jettison:jettison') {
version {
strictly '1.5.4'
}
}
implementation('org.apache.tomcat.embed:tomcat-embed-core') {
version {
strictly '10.1.25'
}
}
}
// processes additional configuration metadata json file as described here
// https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/html/appendix-configuration-metadata.html#configuration-metadata-additional-metadata
compileJava.inputs.files(processResources)
Expand All @@ -99,6 +119,9 @@ allprojects {
showStandardStreams = false
}
}
bootJar {
enabled = false
}
}

// all client and their related modules are published with Java 17 compatibility
Expand Down
6 changes: 3 additions & 3 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ext {
revActivation = '2.0.1'
revApacheHttpComponentsClient5 = '5.2.1'
revAwaitility = '3.1.6'
revAwsSdk = '1.12.635'
revAwsSdk = '1.12.756'
revBval = '2.0.5'
revCassandra = '3.10.2'
revCassandraUnit = '3.11.2.0'
Expand Down Expand Up @@ -62,9 +62,9 @@ ext {
revKafka = '2.6.0'
revMicrometer = '1.8.12'
revPrometheus = '0.9.0'
revElasticSearch7 = '7.17.16'
revElasticSearch7 = '7.17.19'
revCodec = '1.15'
revAzureStorageBlobSdk = '12.7.0'
revAzureStorageBlobSdk = '12.18.0'
revNatsStreaming = '2.6.5'
revNats = '2.16.14'
revStan = '2.2.3'
Expand Down
2 changes: 1 addition & 1 deletion docker/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN ls -ltr
# ===========================================================================================================
# 1. Builder stage 2
# ===========================================================================================================
FROM alpine:3.19 AS ui-builder
FROM alpine:3.20 AS ui-builder

LABEL maintainer="Orkes OSS <[email protected]>"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.web.servlet.resource.NoResourceFoundException;

import com.netflix.conductor.common.validation.ErrorResponse;
import com.netflix.conductor.core.exception.ConflictException;
Expand Down Expand Up @@ -50,7 +49,6 @@ public class ApplicationExceptionMapper {
EXCEPTION_STATUS_MAP.put(ConflictException.class, HttpStatus.CONFLICT);
EXCEPTION_STATUS_MAP.put(IllegalArgumentException.class, HttpStatus.BAD_REQUEST);
EXCEPTION_STATUS_MAP.put(InvalidFormatException.class, HttpStatus.INTERNAL_SERVER_ERROR);
EXCEPTION_STATUS_MAP.put(NoResourceFoundException.class, HttpStatus.NOT_FOUND);
}

@ExceptionHandler(Throwable.class)
Expand Down

0 comments on commit 600ba09

Please sign in to comment.