mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #19054 from overleaf/msm-fit-bridge-java-21
[git-bridge] Update Java 21 GitOrigin-RevId: 67429a15e484947b9109ceedc303b3a3c8d32911
This commit is contained in:
parent
0ebf01f209
commit
3e81e212f3
5 changed files with 22 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Dockerfile for git-bridge
|
# Dockerfile for git-bridge
|
||||||
|
|
||||||
FROM maven:3-amazoncorretto-11-debian as base
|
FROM maven:3-amazoncorretto-21-debian as base
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y make git sqlite3 \
|
RUN apt-get update && apt-get install -y make git sqlite3 \
|
||||||
&& rm -rf /var/lib/apt/lists
|
&& rm -rf /var/lib/apt/lists
|
||||||
|
@ -23,7 +23,7 @@ RUN make package \
|
||||||
-name 'writelatex-git-bridge*jar-with-dependencies.jar' \
|
-name 'writelatex-git-bridge*jar-with-dependencies.jar' \
|
||||||
-exec mv {} /git-bridge.jar \;
|
-exec mv {} /git-bridge.jar \;
|
||||||
|
|
||||||
FROM amazoncorretto:11-alpine
|
FROM amazoncorretto:21-alpine
|
||||||
|
|
||||||
RUN apk add --update --no-cache bash git sqlite procps htop net-tools jemalloc
|
RUN apk add --update --no-cache bash git sqlite procps htop net-tools jemalloc
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
<artifactId>writelatex-git-bridge</artifactId>
|
<artifactId>writelatex-git-bridge</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>21</java.version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<maven.compiler.plugin.version>3.7.0</maven.compiler.plugin.version>
|
<maven.compiler.plugin.version>3.13.0</maven.compiler.plugin.version>
|
||||||
<maven.surefire.plugin.version>2.12.4</maven.surefire.plugin.version>
|
<maven.surefire.plugin.version>2.12.4</maven.surefire.plugin.version>
|
||||||
<maven.assembly.plugin.version>3.1.0</maven.assembly.plugin.version>
|
<maven.assembly.plugin.version>3.1.0</maven.assembly.plugin.version>
|
||||||
<fmt.plugin.version>2.23</fmt.plugin.version>
|
<fmt.plugin.version>2.23</fmt.plugin.version>
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
<commons.lang3.version>3.12.0</commons.lang3.version>
|
<commons.lang3.version>3.12.0</commons.lang3.version>
|
||||||
<logback.classic.version>1.2.3</logback.classic.version>
|
<logback.classic.version>1.2.3</logback.classic.version>
|
||||||
<mockserver.version>5.12.0</mockserver.version>
|
<mockserver.version>5.12.0</mockserver.version>
|
||||||
<mockito.version>3.11.1</mockito.version>
|
<mockito.version>5.12.0</mockito.version>
|
||||||
<aws.java.sdk.version>1.11.274</aws.java.sdk.version>
|
<aws.java.sdk.version>1.11.274</aws.java.sdk.version>
|
||||||
<jakarta.xml.bind.api.version>${jaxb.runtime.version}</jakarta.xml.bind.api.version>
|
<jakarta.xml.bind.api.version>${jaxb.runtime.version}</jakarta.xml.bind.api.version>
|
||||||
<jaxb.runtime.version>2.3.2</jaxb.runtime.version>
|
<jaxb.runtime.version>2.3.2</jaxb.runtime.version>
|
||||||
|
@ -35,6 +35,7 @@
|
||||||
<commons.io.version>2.10.0</commons.io.version>
|
<commons.io.version>2.10.0</commons.io.version>
|
||||||
<commons.compress.version>1.24.0</commons.compress.version>
|
<commons.compress.version>1.24.0</commons.compress.version>
|
||||||
<simpleclient.version>0.10.0</simpleclient.version>
|
<simpleclient.version>0.10.0</simpleclient.version>
|
||||||
|
<bouncycastle.crypto.version>1.70</bouncycastle.crypto.version>
|
||||||
</properties>
|
</properties>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
@ -45,6 +46,7 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>${java.version}</source>
|
<source>${java.version}</source>
|
||||||
<target>${java.version}</target>
|
<target>${java.version}</target>
|
||||||
|
<release>${java.version}</release>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- Workaround, test loader crashes without this configuration option -->
|
<!-- Workaround, test loader crashes without this configuration option -->
|
||||||
|
@ -256,5 +258,18 @@
|
||||||
<artifactId>simpleclient_servlet</artifactId>
|
<artifactId>simpleclient_servlet</artifactId>
|
||||||
<version>${simpleclient.version}</version>
|
<version>${simpleclient.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- Require by MockServerClient to load 'sun.security.x509' / 'sun.security.util' -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.bouncycastle</groupId>
|
||||||
|
<artifactId>bcprov-jdk15on</artifactId>
|
||||||
|
<version>${bouncycastle.crypto.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.bouncycastle</groupId>
|
||||||
|
<artifactId>bcpkix-jdk15on</artifactId>
|
||||||
|
<version>${bouncycastle.crypto.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class DeletingFileInputStream extends FileInputStream {
|
||||||
* We shouldn't rely on this for correctness!
|
* We shouldn't rely on this for correctness!
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void finalize() throws IOException {
|
protected void finalize() throws Throwable {
|
||||||
try {
|
try {
|
||||||
super.finalize();
|
super.finalize();
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
package uk.ac.ic.wlgitbridge.bridge;
|
package uk.ac.ic.wlgitbridge.bridge;
|
||||||
|
|
||||||
import static org.mockito.Matchers.any;
|
|
||||||
import static org.mockito.Matchers.anyInt;
|
|
||||||
import static org.mockito.Matchers.eq;
|
|
||||||
import static org.mockito.Mockito.*;
|
import static org.mockito.Mockito.*;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package uk.ac.ic.wlgitbridge.bridge.resource;
|
package uk.ac.ic.wlgitbridge.bridge.resource;
|
||||||
|
|
||||||
import static org.mockito.Matchers.any;
|
import static org.mockito.ArgumentMatchers.any;
|
||||||
import static org.mockito.Mockito.mock;
|
import static org.mockito.Mockito.mock;
|
||||||
import static org.mockito.Mockito.verify;
|
import static org.mockito.Mockito.verify;
|
||||||
import static org.mockito.Mockito.when;
|
import static org.mockito.Mockito.when;
|
||||||
|
|
Loading…
Reference in a new issue