Skip to content

Commit

Permalink
ci-build fix
Browse files Browse the repository at this point in the history
Signed-off-by: Marlon Gäthje <[email protected]>
  • Loading branch information
mge-mm committed Oct 31, 2024
1 parent e3d25a7 commit cec723a
Show file tree
Hide file tree
Showing 8 changed files with 170 additions and 121 deletions.
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
<lib.cvss-calculator.version>1.4.2</lib.cvss-calculator.version>
<lib.owasp-rr-calculator.version>1.0.1</lib.owasp-rr-calculator.version>
<lib.cyclonedx-java.version>9.1.0</lib.cyclonedx-java.version>
<lib.jakarta-validation.version>3.0.2</lib.jakarta-validation.version>
<lib.greenmail.version>2.1.0</lib.greenmail.version>
<lib.jackson.version>2.18.0</lib.jackson.version>
<lib.jackson-databind.version>2.18.0</lib.jackson-databind.version>
Expand All @@ -114,6 +115,7 @@
<lib.pebble.version>3.2.2</lib.pebble.version>
<lib.protobuf-java.version>4.28.3</lib.protobuf-java.version>
<lib.resilience4j.version>2.2.0</lib.resilience4j.version>
<lib.swagger.version>2.2.25</lib.swagger.version>
<lib.swagger-parser.version>2.1.22</lib.swagger-parser.version>
<lib.system-rules.version>1.19.0</lib.system-rules.version>
<lib.testcontainers.version>1.20.3</lib.testcontainers.version>
Expand Down Expand Up @@ -218,6 +220,12 @@
<scope>provided</scope>
</dependency>

<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>${lib.jakarta-validation.version}</version>
</dependency>

<dependency>
<groupId>com.github.package-url</groupId>
<artifactId>packageurl-java</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.Unique;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;

import org.apache.commons.collections4.CollectionUtils;
import org.dependencytrack.notification.NotificationGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/
package org.dependencytrack.notification;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import jakarta.servlet.ServletContextEvent;
import jakarta.servlet.ServletContextListener;

import org.dependencytrack.model.ScheduledNotificationRule;
import org.dependencytrack.persistence.QueryManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.dependencytrack.model.Component;
import org.dependencytrack.model.Finding;
import org.dependencytrack.model.Project;
import org.dependencytrack.model.RepositoryMetaComponent;
import org.dependencytrack.model.RepositoryType;
import org.dependencytrack.model.VulnIdAndSource;
import org.dependencytrack.model.Vulnerability;
Expand All @@ -40,6 +41,7 @@

import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,12 @@ public Response getAllNotificationPublishers() {
@GET
@Path("/event")
@Produces(MediaType.APPLICATION_JSON)
@ApiOperation(
value = "Returns a list of all event-driven notification publishers",
response = NotificationPublisher.class,
responseContainer = "List",
notes = "<p>Requires permission <strong>SYSTEM_CONFIGURATION</strong></p>"
@Operation(
summary = "Returns a list of all event-driven notification publishers",
description = "<p>Requires permission <strong>SYSTEM_CONFIGURATION</strong></p>"
)
@ApiResponses(value = {
@ApiResponse(code = 401, message = "Unauthorized")
@ApiResponse(responseCode = "401", description = "Unauthorized")
})
@PermissionRequired(Permissions.Constants.SYSTEM_CONFIGURATION)
public Response getAllEventNotificationPublishers() {
Expand All @@ -131,14 +129,17 @@ public Response getAllEventNotificationPublishers() {
@GET
@Path("/scheduled")
@Produces(MediaType.APPLICATION_JSON)
@ApiOperation(
value = "Returns a list of all scheduled notification publishers",
response = NotificationPublisher.class,
responseContainer = "List",
notes = "<p>Requires permission <strong>SYSTEM_CONFIGURATION</strong></p>"
@Operation(
summary = "Returns a list of all scheduled notification publishers",
description = "<p>Requires permission <strong>SYSTEM_CONFIGURATION</strong></p>"
)
@ApiResponses(value = {
@ApiResponse(code = 401, message = "Unauthorized")
@ApiResponse(
responseCode = "200",
description = "A list of all notification publishers",
content = @Content(array = @ArraySchema(schema = @Schema(implementation = NotificationPublisher.class)))
),
@ApiResponse(responseCode = "401", description = "Unauthorized")
})
@PermissionRequired(Permissions.Constants.SYSTEM_CONFIGURATION)
public Response getAllScheduledNotificationPublishers() {
Expand Down
Loading

0 comments on commit cec723a

Please sign in to comment.