Skip to content

Commit

Permalink
Move to sb 2.7.18 + remove jetty-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
enricovianello committed Feb 16, 2024
1 parent b9cd6df commit 702c695
Show file tree
Hide file tree
Showing 8 changed files with 943 additions and 36 deletions.
69 changes: 37 additions & 32 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<!-- Keep this aligned with the spring.boot-version property below! -->
<version>2.7.17</version>
<version>2.7.18</version>
<relativePath />
</parent>

Expand All @@ -32,14 +32,13 @@
<java.version>17</java.version>

<!-- Keep this aligned with the parent project version! -->
<spring-boot.version>2.7.17</spring-boot.version>
<spring-boot.version>2.7.18</spring-boot.version>

<!-- Sonarcloud.io properties -->
<sonar.projectKey>italiangrid_storm-webdav</sonar.projectKey>
<sonar.organization>italiangrid</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>

<jetty-utils.version>0.4.6.v20220506</jetty-utils.version>
<milton.version>2.7.1.7</milton.version>

<commons-lang.version>2.3</commons-lang.version>
Expand All @@ -58,6 +57,7 @@
<nimbus-jose-jwt.version>6.0.2</nimbus-jose-jwt.version>
<mock-server.version>5.5.1</mock-server.version>
<bouncycastle.version>1.76</bouncycastle.version>
<voms-api-java.version>3.3.2</voms-api-java.version>

<start-class>org.italiangrid.storm.webdav.WebdavService</start-class>

Expand Down Expand Up @@ -348,34 +348,6 @@
<artifactId>metrics-servlets</artifactId>
</dependency>

<dependency>
<groupId>org.italiangrid</groupId>
<artifactId>jetty-utils</artifactId>
<version>${jetty-utils.version}</version>
<exclusions>
<exclusion>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
</exclusion>
<exclusion>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
</exclusion>
<exclusion>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk18on</artifactId>
Expand All @@ -388,7 +360,6 @@
<version>${bouncycastle.version}</version>
</dependency>


<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-access</artifactId>
Expand Down Expand Up @@ -419,6 +390,34 @@
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-rewrite</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-http</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-util</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-alpn-server</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.http2</groupId>
<artifactId>http2-server</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.http2</groupId>
<artifactId>http2-common</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-alpn-conscrypt-server</artifactId>
</dependency>

<dependency>
<groupId>commons-lang</groupId>
Expand Down Expand Up @@ -463,6 +462,12 @@
<version>${milton.version}</version>
</dependency>

<dependency>
<groupId>org.italiangrid</groupId>
<artifactId>voms-api-java</artifactId>
<version>${voms-api-java.version}</version>
</dependency>

<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.italiangrid.storm.webdav.config.ServiceConfiguration;
import org.italiangrid.storm.webdav.config.ServiceConfigurationProperties;
import org.italiangrid.storm.webdav.config.StorageAreaConfiguration;
import org.italiangrid.utils.jetty.TLSServerConnectorBuilder;
import org.italiangrid.storm.webdav.server.util.TLSServerConnectorBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.web.ServerProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package org.italiangrid.storm.webdav.server;

import org.italiangrid.storm.webdav.config.ServiceConfiguration;
import org.italiangrid.utils.jetty.ThreadPoolBuilder;
import org.italiangrid.storm.webdav.server.util.ThreadPoolBuilder;
import org.springframework.boot.autoconfigure.web.ServerProperties;
import org.springframework.boot.web.embedded.jetty.JettyServerCustomizer;
import org.springframework.boot.web.embedded.jetty.JettyServletWebServerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* Copyright (c) Istituto Nazionale di Fisica Nucleare, 2012-2019.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.italiangrid.storm.webdav.server.util;

public class TLSConnectorBuilderError extends RuntimeException {

private static final long serialVersionUID = 1L;

public TLSConnectorBuilderError(Throwable cause) {
super(cause);
}

public TLSConnectorBuilderError(String message, Throwable cause) {
super(message, cause);
}

public TLSConnectorBuilderError(String message) {
super(message);
}

}
Loading

0 comments on commit 702c695

Please sign in to comment.