File tree 23 files changed +40
-37
lines changed
main/java/ru/bozaro/gitlfs/server
test/java/ru/bozaro/gitlfs/server
23 files changed +40
-37
lines changed Original file line number Diff line number Diff line change 7
7
strategy :
8
8
matrix :
9
9
include :
10
- - java : 8
11
10
- java : 11
12
11
- java : 15
13
12
runs-on : ubuntu-latest
34
33
uses : actions/setup-java@v2
35
34
with :
36
35
distribution : ' adopt'
37
- java-version : 8 # Build releases using oldest supported jdk
36
+ java-version : 11 # Build releases using oldest supported jdk
38
37
- name : Publish to Sonatype
39
38
uses : eskatos/gradle-command-action@v1
40
39
env :
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ val ossrhUsername: String? = System.getenv("OSSRH_USERNAME")
8
8
val ossrhPassword: String? = System .getenv(" OSSRH_PASSWORD" )
9
9
10
10
tasks.wrapper {
11
- gradleVersion = " 6.8 .1"
11
+ gradleVersion = " 7.1 .1"
12
12
distributionType = Wrapper .DistributionType .ALL
13
13
}
14
14
@@ -32,7 +32,7 @@ allprojects {
32
32
}
33
33
}
34
34
35
- val javaVersion = JavaVersion .VERSION_1_8
35
+ val javaVersion = JavaVersion .VERSION_11
36
36
37
37
idea {
38
38
project.jdkName = javaVersion.name
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ description = "Java Git-LFS client library"
3
3
dependencies {
4
4
api(project(" :gitlfs-common" ))
5
5
api(" org.apache.httpcomponents:httpclient:4.5.13" )
6
- implementation(" org.slf4j:slf4j-api:1.7.30 " )
6
+ implementation(" org.slf4j:slf4j-api:1.7.32 " )
7
7
8
- testImplementation(" org.yaml:snakeyaml:1.27 " )
9
- testRuntimeOnly(" org.slf4j:slf4j-simple:1.7.30 " )
8
+ testImplementation(" org.yaml:snakeyaml:1.29 " )
9
+ testRuntimeOnly(" org.slf4j:slf4j-simple:1.7.32 " )
10
10
}
Original file line number Diff line number Diff line change 1
1
description = " Java Git-LFS common structures"
2
2
3
3
dependencies {
4
- api(" com.fasterxml.jackson.core:jackson-databind:2.12.1 " )
4
+ api(" com.fasterxml.jackson.core:jackson-databind:2.12.4 " )
5
5
}
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ description = "Java Git-LFS server implementation-free library"
2
2
3
3
dependencies {
4
4
api(project(" :gitlfs-common" ))
5
- api(" javax.servlet:javax. servlet-api:4 .0.1 " )
5
+ api(" org.eclipse.jetty.toolchain:jetty-jakarta- servlet-api:5 .0.2 " )
6
6
7
7
testImplementation(project(" :gitlfs-client" ))
8
- testImplementation(" org.eclipse.jetty:jetty-servlet:9.4.36.v20210114 " )
9
- testRuntimeOnly(" org.slf4j:slf4j-simple:1.7.30 " )
8
+ testImplementation(" org.eclipse.jetty:jetty-servlet:11.0.6 " )
9
+ testRuntimeOnly(" org.slf4j:slf4j-simple:1.7.32 " )
10
10
}
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server ;
2
2
3
+ import jakarta .servlet .http .HttpServletRequest ;
3
4
import ru .bozaro .gitlfs .common .data .Meta ;
4
5
5
6
import javax .annotation .CheckForNull ;
6
7
import javax .annotation .Nonnull ;
7
- import javax .servlet .http .HttpServletRequest ;
8
8
import java .io .IOException ;
9
9
import java .io .InputStream ;
10
10
import java .util .Map ;
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server ;
2
2
3
+ import jakarta .servlet .ServletException ;
4
+ import jakarta .servlet .http .HttpServlet ;
5
+ import jakarta .servlet .http .HttpServletRequest ;
6
+ import jakarta .servlet .http .HttpServletResponse ;
3
7
import ru .bozaro .gitlfs .common .Constants ;
4
8
import ru .bozaro .gitlfs .common .JsonHelper ;
5
9
import ru .bozaro .gitlfs .common .data .Meta ;
8
12
import ru .bozaro .gitlfs .server .internal .ResponseWriter ;
9
13
10
14
import javax .annotation .Nonnull ;
11
- import javax .servlet .ServletException ;
12
- import javax .servlet .http .HttpServlet ;
13
- import javax .servlet .http .HttpServletRequest ;
14
- import javax .servlet .http .HttpServletResponse ;
15
15
import java .io .IOException ;
16
16
import java .io .InputStream ;
17
17
import java .util .regex .Pattern ;
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server ;
2
2
3
+ import jakarta .servlet .http .HttpServletResponse ;
4
+
3
5
import javax .annotation .Nonnull ;
4
- import javax .servlet .http .HttpServletResponse ;
5
6
6
7
/**
7
8
* Forbidden error.
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server ;
2
2
3
+ import jakarta .servlet .http .HttpServletRequest ;
3
4
import ru .bozaro .gitlfs .common .Constants ;
4
5
import ru .bozaro .gitlfs .common .data .Error ;
5
6
import ru .bozaro .gitlfs .common .data .*;
6
7
7
8
import javax .annotation .CheckForNull ;
8
9
import javax .annotation .Nonnull ;
9
- import javax .servlet .http .HttpServletRequest ;
10
10
import java .io .IOException ;
11
11
import java .net .URI ;
12
12
import java .util .EnumMap ;
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server ;
2
2
3
+ import jakarta .servlet .http .HttpServletRequest ;
3
4
import ru .bozaro .gitlfs .common .LockConflictException ;
4
5
import ru .bozaro .gitlfs .common .VerifyLocksResult ;
5
6
import ru .bozaro .gitlfs .common .data .Lock ;
6
7
import ru .bozaro .gitlfs .common .data .Ref ;
7
8
8
9
import javax .annotation .CheckForNull ;
9
10
import javax .annotation .Nonnull ;
10
- import javax .servlet .http .HttpServletRequest ;
11
11
import java .io .IOException ;
12
12
import java .util .List ;
13
13
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server ;
2
2
3
+ import jakarta .servlet .ServletException ;
4
+ import jakarta .servlet .http .HttpServlet ;
5
+ import jakarta .servlet .http .HttpServletRequest ;
6
+ import jakarta .servlet .http .HttpServletResponse ;
3
7
import ru .bozaro .gitlfs .common .JsonHelper ;
4
8
import ru .bozaro .gitlfs .common .LockConflictException ;
5
9
import ru .bozaro .gitlfs .common .VerifyLocksResult ;
8
12
import ru .bozaro .gitlfs .server .internal .ResponseWriter ;
9
13
10
14
import javax .annotation .Nonnull ;
11
- import javax .servlet .ServletException ;
12
- import javax .servlet .http .HttpServlet ;
13
- import javax .servlet .http .HttpServletRequest ;
14
- import javax .servlet .http .HttpServletResponse ;
15
15
import java .io .IOException ;
16
16
import java .util .List ;
17
17
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server ;
2
2
3
+ import jakarta .servlet .http .HttpServletRequest ;
3
4
import ru .bozaro .gitlfs .common .data .BatchItem ;
4
5
import ru .bozaro .gitlfs .common .data .Meta ;
5
6
6
7
import javax .annotation .Nonnull ;
7
- import javax .servlet .http .HttpServletRequest ;
8
8
import java .io .IOException ;
9
9
import java .net .URI ;
10
10
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server ;
2
2
3
+ import jakarta .servlet .ServletException ;
4
+ import jakarta .servlet .http .HttpServlet ;
5
+ import jakarta .servlet .http .HttpServletRequest ;
6
+ import jakarta .servlet .http .HttpServletResponse ;
3
7
import ru .bozaro .gitlfs .common .Constants ;
4
8
import ru .bozaro .gitlfs .common .JsonHelper ;
5
9
import ru .bozaro .gitlfs .common .data .Error ;
9
13
10
14
import javax .annotation .CheckForNull ;
11
15
import javax .annotation .Nonnull ;
12
- import javax .servlet .ServletException ;
13
- import javax .servlet .http .HttpServlet ;
14
- import javax .servlet .http .HttpServletRequest ;
15
- import javax .servlet .http .HttpServletResponse ;
16
16
import java .io .IOException ;
17
17
import java .net .URI ;
18
18
import java .net .URISyntaxException ;
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server ;
2
2
3
+ import jakarta .servlet .http .HttpServletResponse ;
4
+
3
5
import javax .annotation .Nonnull ;
4
- import javax .servlet .http .HttpServletResponse ;
5
6
6
7
/**
7
8
* Server side error exception.
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server ;
2
2
3
+ import jakarta .servlet .http .HttpServletResponse ;
4
+
3
5
import javax .annotation .Nonnull ;
4
- import javax .servlet .http .HttpServletResponse ;
5
6
6
7
/**
7
8
* Unauthorized error.
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server .internal ;
2
2
3
+ import jakarta .servlet .http .HttpServletResponse ;
3
4
import ru .bozaro .gitlfs .common .JsonHelper ;
4
5
5
6
import javax .annotation .Nonnull ;
6
- import javax .servlet .http .HttpServletResponse ;
7
7
import java .io .IOException ;
8
8
9
9
import static ru .bozaro .gitlfs .common .Constants .MIME_LFS_JSON ;
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server .internal ;
2
2
3
+ import jakarta .servlet .http .HttpServletResponse ;
4
+
3
5
import javax .annotation .Nonnull ;
4
- import javax .servlet .http .HttpServletResponse ;
5
6
import java .io .IOException ;
6
7
7
8
/**
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server ;
2
2
3
+ import jakarta .servlet .Servlet ;
3
4
import org .eclipse .jetty .server .HttpConnectionFactory ;
4
5
import org .eclipse .jetty .server .Server ;
5
6
import org .eclipse .jetty .server .ServerConnector ;
6
7
import org .eclipse .jetty .servlet .ServletHandler ;
7
8
import org .eclipse .jetty .servlet .ServletHolder ;
8
9
9
10
import javax .annotation .Nonnull ;
10
- import javax .servlet .Servlet ;
11
11
import java .net .URI ;
12
12
import java .net .URISyntaxException ;
13
13
Original file line number Diff line number Diff line change 1
1
package ru .bozaro .gitlfs .server ;
2
2
3
3
import com .google .common .base .Strings ;
4
+ import jakarta .servlet .http .HttpServletRequest ;
4
5
import ru .bozaro .gitlfs .common .LockConflictException ;
5
6
import ru .bozaro .gitlfs .common .VerifyLocksResult ;
6
7
import ru .bozaro .gitlfs .common .data .Lock ;
9
10
10
11
import javax .annotation .CheckForNull ;
11
12
import javax .annotation .Nonnull ;
12
- import javax .servlet .http .HttpServletRequest ;
13
13
import java .io .IOException ;
14
14
import java .util .ArrayList ;
15
15
import java .util .Collections ;
Original file line number Diff line number Diff line change 3
3
import com .google .common .collect .ImmutableMap ;
4
4
import com .google .common .hash .Hashing ;
5
5
import com .google .common .io .ByteStreams ;
6
+ import jakarta .servlet .http .HttpServletRequest ;
6
7
import org .testng .Assert ;
7
8
import ru .bozaro .gitlfs .client .Client ;
8
9
import ru .bozaro .gitlfs .client .auth .AuthProvider ;
15
16
16
17
import javax .annotation .CheckForNull ;
17
18
import javax .annotation .Nonnull ;
18
- import javax .servlet .http .HttpServletRequest ;
19
19
import java .io .ByteArrayInputStream ;
20
20
import java .io .FileNotFoundException ;
21
21
import java .io .IOException ;
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.8 .1-all.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.1 .1-all.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ case "`uname`" in
72
72
Darwin* )
73
73
darwin=true
74
74
;;
75
- MINGW* )
75
+ MSYS * | MINGW* )
76
76
msys=true
77
77
;;
78
78
NONSTOP* )
You can’t perform that action at this time.
0 commit comments