Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring dependencies up-to-date #649

Merged
merged 45 commits into from
Dec 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
781ef7a
[pom] Require maven 3.6.0 to build
hazendaz Dec 30, 2018
9a8c005
[pom] Update jmockit to 1.44
hazendaz Dec 30, 2018
2b8d043
[pom] Update checkstyle to 8.15
hazendaz Dec 30, 2018
614d601
[pom] Update junit to 5.3.2
hazendaz Dec 30, 2018
a4b93dc
[pom] Update slf4j to 1.8.0-beta2
hazendaz Dec 30, 2018
6c6d054
[pom] Update logback to 1.3.0-alpha4
hazendaz Dec 30, 2018
3c7c3bb
[pom] Update surefire to 3.0.0-M3
hazendaz Dec 30, 2018
7281298
[pom] Update formatter plugin to 2.8.1
hazendaz Dec 30, 2018
92bdeaa
[pom] Change htmlcompressor to new GAV and update to 1.6.5
hazendaz Dec 30, 2018
968cdc2
[pom] Update jsch to 0.1.55
hazendaz Dec 30, 2018
edd04e2
[pom] Update jgit to 5.2.0.x
hazendaz Dec 30, 2018
808c8db
[pom] Update plexus utils to 3.1.1
hazendaz Dec 30, 2018
3e08ad3
[pom] Update spotbugs to 3.1.10
hazendaz Dec 30, 2018
0708e13
[pom] Update jar plugin to 3.1.1
hazendaz Dec 30, 2018
7085cbd
[pom] Update pmd plugin to 3.11.0
hazendaz Dec 30, 2018
b6d5964
[pom] Update jxr plugin to 3.0.0
hazendaz Dec 30, 2018
474cc5a
[pom] Update dependency check to 3.3.4
hazendaz Dec 30, 2018
738aa9a
[pom] Update modernizer plugin to 1.7.1
hazendaz Dec 30, 2018
60f8300
[travis] Only run jdk 8 and 11
hazendaz Dec 30, 2018
e05ba2f
[mvn] Update to use 3.6.0
hazendaz Dec 30, 2018
a29b3bb
[pom] Update ecj to 3.16.0
hazendaz Dec 30, 2018
243db15
[pom] Update el to 3.0.1-b11
hazendaz Dec 30, 2018
6342c2e
[pom] Update jetty to 9.4.14
hazendaz Dec 30, 2018
a06fdbb
[pom] Update spring boot 1 to 1.5.18.RELEASE
hazendaz Dec 30, 2018
9e0ab19
[pom] Update spring boot 2 to 2.1.1.RELEASE
hazendaz Dec 30, 2018
9ab4a08
[pom] Update spring4 to 4.3.21.RELEASE
hazendaz Dec 30, 2018
ee31b32
[pom] update spring security4 to 4.2.10.RELEASE
hazendaz Dec 30, 2018
6e897c7
[pom] Update spring to 5.1.3.RELEASE
hazendaz Dec 30, 2018
4d6e5a0
[pom] Update spring security5 to 5.1.2.RELEASE
hazendaz Dec 30, 2018
feb88e8
[pom] Update tomcat7 to 7.0.92
hazendaz Dec 30, 2018
ad224e8
[pom] Update tomcat85 to 8.5.37
hazendaz Dec 30, 2018
370abd0
[pom] Update tomcat9 to 9.0.14
hazendaz Dec 30, 2018
87fd0bd
[jna] Upgrade to 5.2.0 and change SecBufferDesc to ManagedSecBufferDesc
hazendaz Dec 30, 2018
227429a
[test] Remove legacy tomcat support from test
hazendaz Dec 30, 2018
d6eeba9
[pom] Fix jacoco and jmockit all at once
hazendaz Dec 30, 2018
8f02c88
[jna] More jna changes
hazendaz Dec 30, 2018
4543a08
[ci] Add comments regarding deprecated usage of servlet-api
hazendaz Dec 30, 2018
fb59112
[pom] Update mockito to 2.23.4
hazendaz Dec 30, 2018
fe28582
[pom] Update objenesis to 3.0.1
hazendaz Dec 30, 2018
c5a9d6c
[boot] Remove supress warnings and fix code
hazendaz Dec 30, 2018
cf06e99
[pom] More jna to 5.2.0
hazendaz Dec 30, 2018
852bc92
[pom] Update another spring boot 2 to 2.1.1.RELEASE
hazendaz Dec 30, 2018
af4d53f
[pom] Update another spring boot 1 to 1.5.18.RELEASE
hazendaz Dec 30, 2018
a262ba7
[slf4j] For simple, change the import
hazendaz Dec 30, 2018
4bfe8be
[ci] Formatting
hazendaz Dec 30, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar

32 changes: 3 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
language: java
sudo: false

matrix:
include:
# 11
- env: JDK='Oracle JDK 11'
install: . ./install-jdk.sh -F 11 -L BCL
- env: JDK='OpenJDK 11'
install: . ./install-jdk.sh -F 11 -L GPL
# 10
- env: JDK='Oracle JDK 10'
install: . ./install-jdk.sh -F 10 -L BCL
- env: JDK='OpenJDK 10'
install: . ./install-jdk.sh -F 10 -L GPL
# 9
- env: JDK='Oracle JDK 9'
jdk: oraclejdk9
- env: JDK='OpenJDK 9'
install: . ./install-jdk.sh -F 9
# 8
- env: JDK='Oracle JDK 8'
jdk: oraclejdk8
- env: JDK='OpenJDK 8'
jdk: openjdk8
jdk:
- oraclejdk11
- oraclejdk8

env:
global:
Expand All @@ -42,12 +22,6 @@ addons:
build_command: ./mvnw install -DskipTests -B -V
branch_pattern: coverity_scan

before_install:
- wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh
- ./mvnw install -q -DskipTests=true

install: true

script:
- chmod -R 777 ./travis/script.sh
- ./travis/script.sh
Expand Down
49 changes: 25 additions & 24 deletions Source/JNA/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
<maven.compiler.testSource>1.8</maven.compiler.testSource>
<maven.compiler.testTarget>1.8</maven.compiler.testTarget>

<maven.min-version>3.5.4</maven.min-version>
<maven.min-version>3.6.0</maven.min-version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
Expand All @@ -147,21 +147,23 @@
<error-prone.version>2.3.2</error-prone.version>
<j2objc.version>1.3</j2objc.version>
<jmh.version>1.21</jmh.version>
<jmockit.version>1.41</jmockit.version>
<jmockit.version>1.44</jmockit.version>
<jsr305.version>3.0.2</jsr305.version>
<junit.version>5.3.1</junit.version>
<slf4j.version>1.7.25</slf4j.version>
<junit.version>5.3.2</junit.version>
<slf4j.version>1.8.0-beta2</slf4j.version>

<!-- Signature Settings -->
<signature.artifact>java18</signature.artifact>
<signature.version>1.0</signature.version>

<!-- Plugin Dependency Versions -->
<bug-pattern.version>1.4.2</bug-pattern.version>
<checkstyle.version>8.13</checkstyle.version>
<checkstyle.version>8.15</checkstyle.version>
<fb-contrib.version>7.4.3.sb</fb-contrib.version>
<findsecbugs.version>1.8.0</findsecbugs.version>
<javac.version>9+181-r4173-1</javac.version>

<argLine>-javaagent:${settings.localRepository}/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar -Djdk.attach.allowAttachSelf</argLine>
</properties>

<dependencies>
Expand Down Expand Up @@ -317,7 +319,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<version>3.0.0-M3</version>
<configuration>
<includes>
<include>**/*Test.java</include>
Expand All @@ -326,7 +328,6 @@
<excludes>
<exclude>**/*LoadTests.java</exclude>
</excludes>
<argLine>-Djdk.attach.allowAttachSelf</argLine>
</configuration>
</plugin>
<!-- Build Plugins -->
Expand All @@ -344,7 +345,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -368,7 +369,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.10.0</version>
<version>3.11.0</version>
<configuration>
<analysisCache>true</analysisCache>
</configuration>
Expand Down Expand Up @@ -414,7 +415,7 @@
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>3.1.6</version>
<version>3.1.10</version>
<configuration>
<plugins>
<plugin>
Expand All @@ -441,9 +442,9 @@
<version>1.3</version>
<dependencies>
<dependency>
<groupId>com.googlecode.htmlcompressor</groupId>
<groupId>com.github.hazendaz</groupId>
<artifactId>htmlcompressor</artifactId>
<version>1.5.2</version>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>com.yahoo.platform.yui</groupId>
Expand Down Expand Up @@ -482,7 +483,7 @@
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.7.5</version>
<version>2.8.1</version>
<dependencies>
<dependency>
<groupId>com.github.hazendaz</groupId>
Expand Down Expand Up @@ -554,17 +555,17 @@
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.54</version>
<version>0.1.55</version>
</dependency>
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<version>5.1.2.201810061102-r</version>
<version>5.2.0.201812061821-r</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
</dependency>
</dependencies>
<configuration>
Expand All @@ -575,7 +576,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.5</version>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -585,7 +586,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.22.1</version>
<version>3.0.0-M3</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down Expand Up @@ -616,17 +617,17 @@
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.54</version>
<version>0.1.55</version>
</dependency>
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<version>5.1.2.201810061102-r</version>
<version>5.2.0.201812061821-r</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
</dependency>
</dependencies>
</plugin>
Expand Down Expand Up @@ -659,7 +660,7 @@
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>3.3.2</version>
<version>3.3.4</version>
</plugin>
<!-- Sonatype Release -->
<plugin>
Expand All @@ -682,7 +683,7 @@
<plugin>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-plugin</artifactId>
<version>1.6.0</version>
<version>1.7.1</version>
<configuration>
<javaVersion>${maven.compiler.target}</javaVersion>
</configuration>
Expand Down Expand Up @@ -1304,7 +1305,7 @@
<pluginExecutionFilter>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<versionRange>[2.7.5,)</versionRange>
<versionRange>[2.8.1,)</versionRange>
<goals>
<goal>format</goal>
</goals>
Expand Down
4 changes: 2 additions & 2 deletions Source/JNA/waffle-demo/waffle-spring-boot-filter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
</scm>

<properties>
<jna.version>4.5.2</jna.version>
<spring-boot.version>1.5.16.RELEASE</spring-boot.version>
<jna.version>5.2.0</jna.version>
<spring-boot.version>1.5.18.RELEASE</spring-boot.version>
</properties>

<dependencyManagement>
Expand Down
4 changes: 2 additions & 2 deletions Source/JNA/waffle-demo/waffle-spring-boot-filter2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
</scm>

<properties>
<jna.version>4.5.2</jna.version>
<spring-boot.version>2.0.5.RELEASE</spring-boot.version>
<jna.version>5.2.0</jna.version>
<spring-boot.version>2.1.1.RELEASE</spring-boot.version>
</properties>

<dependencyManagement>
Expand Down
4 changes: 2 additions & 2 deletions Source/JNA/waffle-distro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@

<properties>
<caffeine.version>2.6.2</caffeine.version>
<jna.version>4.5.2</jna.version>
<logback.version>1.2.3</logback.version>
<jna.version>5.2.0</jna.version>
<logback.version>1.3.0-alpha4</logback.version>
</properties>

<dependencies>
Expand Down
6 changes: 3 additions & 3 deletions Source/JNA/waffle-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
</scm>

<properties>
<ecj.version>3.15.0</ecj.version>
<el.version>3.0.1-b10</el.version>
<ecj.version>3.16.0</ecj.version>
<el.version>3.0.1-b11</el.version>
<el-api.version>3.0.1-b06</el-api.version>
<jetty.version>9.4.12.v20180830</jetty.version>
<jetty.version>9.4.14.v20181114</jetty.version>
<jsp.version>2.3.4</jsp.version>
<jsp-api.version>2.3.3</jsp-api.version>
<jstl.version>1.2.5</jstl.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.eclipse.jetty.servlet.ServletHolder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.impl.SimpleLogger;
import org.slf4j.simple.SimpleLogger;

import waffle.servlet.NegotiateSecurityFilter;
import waffle.servlet.WindowsPrincipal;
Expand Down
2 changes: 1 addition & 1 deletion Source/JNA/waffle-jna/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

<properties>
<caffeine.version>2.6.2</caffeine.version>
<jna.version>4.5.2</jna.version>
<jna.version>5.2.0</jna.version>
<servlet.version>4.0.1</servlet.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import com.sun.jna.platform.win32.Secur32;
import com.sun.jna.platform.win32.Sspi;
import com.sun.jna.platform.win32.Sspi.CtxtHandle;
import com.sun.jna.platform.win32.Sspi.SecBufferDesc;
import com.sun.jna.platform.win32.SspiUtil.ManagedSecBufferDesc;
import com.sun.jna.platform.win32.Win32Exception;
import com.sun.jna.platform.win32.WinBase;
import com.sun.jna.platform.win32.WinError;
Expand Down Expand Up @@ -122,8 +122,8 @@ public IWindowsSecurityContext acceptSecurityToken(final String connectionId, fi
int tokenSize = Sspi.MAX_TOKEN_SIZE;

do {
final SecBufferDesc pbServerToken = new SecBufferDesc(Sspi.SECBUFFER_TOKEN, tokenSize);
final SecBufferDesc pbClientToken = new SecBufferDesc(Sspi.SECBUFFER_TOKEN, token);
final ManagedSecBufferDesc pbServerToken = new ManagedSecBufferDesc(Sspi.SECBUFFER_TOKEN, tokenSize);
final ManagedSecBufferDesc pbClientToken = new ManagedSecBufferDesc(Sspi.SECBUFFER_TOKEN, token);
final IntByReference pfClientContextAttr = new IntByReference();

final CtxtHandle phNewServerContext = new CtxtHandle();
Expand All @@ -147,16 +147,18 @@ public IWindowsSecurityContext acceptSecurityToken(final String connectionId, fi
this.resetSecurityToken(connectionId);
// if an output token was generated by the function, it must be sent to the client process
if (pbServerToken.pBuffers != null && pbServerToken.cBuffers == 1
&& pbServerToken.pBuffers[0].cbBuffer > 0) {
sc.setToken(pbServerToken.getBytes() == null ? new byte[0] : pbServerToken.getBytes().clone());
&& pbServerToken.getBuffer(0).cbBuffer > 0) {
sc.setToken(pbServerToken.getBuffer(0).getBytes() == null ? new byte[0]
: pbServerToken.getBuffer(0).getBytes().clone());
}
sc.setContinue(false);
break;
case WinError.SEC_I_CONTINUE_NEEDED:
// the server must send the output token to the client and wait for a returned token
continueContext = new ContinueContext(phNewServerContext, serverCredential);
this.continueContexts.put(connectionId, continueContext);
sc.setToken(pbServerToken.getBytes() == null ? new byte[0] : pbServerToken.getBytes().clone());
sc.setToken(pbServerToken.getBuffer(0).getBytes() == null ? new byte[0]
: pbServerToken.getBuffer(0).getBytes().clone());
sc.setContinue(true);
break;
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.sun.jna.platform.win32.Sspi;
import com.sun.jna.platform.win32.Sspi.CtxtHandle;
import com.sun.jna.platform.win32.Sspi.SecBufferDesc;
import com.sun.jna.platform.win32.SspiUtil.ManagedSecBufferDesc;
import com.sun.jna.platform.win32.Win32Exception;
import com.sun.jna.platform.win32.WinError;
import com.sun.jna.platform.win32.WinNT.HANDLEByReference;
Expand All @@ -39,7 +40,7 @@ public class WindowsSecurityContextImpl implements IWindowsSecurityContext {
private String securityPackage;

/** The token. */
private SecBufferDesc token;
private ManagedSecBufferDesc token;

/** The ctx. */
private CtxtHandle ctx;
Expand Down Expand Up @@ -72,7 +73,8 @@ public String getSecurityPackage() {

@Override
public byte[] getToken() {
return this.token == null || this.token.getBytes() == null ? null : this.token.getBytes().clone();
return this.token == null || this.token.getBuffer(0).getBytes() == null ? null
: this.token.getBuffer(0).getBytes().clone();
}

/**
Expand Down Expand Up @@ -113,7 +115,7 @@ public void initialize(final CtxtHandle continueCtx, final SecBufferDesc continu
int tokenSize = Sspi.MAX_TOKEN_SIZE;
int rc;
do {
this.token = new SecBufferDesc(Sspi.SECBUFFER_TOKEN, tokenSize);
this.token = new ManagedSecBufferDesc(Sspi.SECBUFFER_TOKEN, tokenSize);
rc = Secur32.INSTANCE.InitializeSecurityContext(this.credentials.getHandle(), continueCtx, targetName,
Sspi.ISC_REQ_CONNECTION, 0, Sspi.SECURITY_NATIVE_DREP, continueToken, 0, this.ctx, this.token, attr,
null);
Expand Down Expand Up @@ -198,7 +200,7 @@ public void setCredentialsHandle(final IWindowsCredentialsHandle handle) {
* the new token
*/
public void setToken(final byte[] bytes) {
this.token = new SecBufferDesc(Sspi.SECBUFFER_TOKEN, bytes);
this.token = new ManagedSecBufferDesc(Sspi.SECBUFFER_TOKEN, bytes);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Source/JNA/waffle-spring-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</scm>

<properties>
<spring-boot.version>1.5.16.RELEASE</spring-boot.version>
<spring-boot.version>1.5.18.RELEASE</spring-boot.version>
</properties>

<modules>
Expand Down
Loading