Skip to content

Commit ac0ca8a

Browse files
authored
Merge pull request #10 from codesqueak/update
Replace ancient hamcrest library. Minor version updates
2 parents 2ca100e + 93e7b43 commit ac0ca8a

File tree

6 files changed

+22
-44
lines changed

6 files changed

+22
-44
lines changed

README.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,28 @@
22
![Java CI with Gradle](https://github.com/codesqueak/jackson-json-crypto/workflows/Java%20CI%20with%20Gradle/badge.svg)
33
[![Maven Central](https://img.shields.io/maven-central/v/com.codingrodent/jackson-json-crypto.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.codingrodent%22%20AND%20a:%22jackson-json-crypto%22)
44

5-
65
# Jackson JSON Crypto Module
76

8-
A Jackson module to support JSON encryption and decryption operations. Encryption is via AES. Key generation is password based.
7+
A Jackson module to support JSON encryption and decryption operations. Encryption is via AES. Key generation is password
8+
based.
99

1010
Keyword: Jackson, JSON, AES, PKCS5, Encryption, Salt, Initialization Vector, IV, Java
1111

1212
Based on an idea from [meltmedia](https://github.com/meltmedia/jackson-crypto)
1313

14+
If you find this project useful, you may want to [__Buy me a coffee! :
15+
coffee:__](https://www.buymeacoffee.com/codesqueak) Thanks :thumbsup:
16+
1417
## Build
1518

1619
Windows
20+
1721
```
1822
gradlew clean build test
1923
```
24+
2025
Linux
26+
2127
```
2228
./gradlew clean build test
2329
```
@@ -102,19 +108,6 @@ This ...
102108
}
103109
```
104110

105-
## Java Cryptography Extension (JCE) Unlimited Strength
106-
107-
As shipped, Java has limitations on the strength of encryption allowable. To allow full strength encryption to be used, you will need to
108-
enable the Unlimited Strength Jurisdiction Policy.
109-
110-
[Policy Files](http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html)
111-
112-
Problems with encyption strength will usually show as an error in the following form.
113-
```
114-
com.codingrodent.jackson.crypto.EncryptionException: java.security.InvalidKeyException:
115-
Illegal key size or default parameters
116-
```
117-
118111
## Using Jenkins
119112

120113
The project includes a Jenkins file to control a pipeline build.

build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414
}
1515

1616
plugins {
17-
id "com.github.spotbugs" version "4.5.1"
17+
id "com.github.spotbugs" version "4.6.0"
1818
id 'java'
1919
id 'idea'
2020
id 'maven-publish'
@@ -108,7 +108,7 @@ repositories {
108108
}
109109

110110
jacoco {
111-
toolVersion = "0.8.5"
111+
toolVersion = "0.8.6"
112112
reportsDir = file("$buildDir/customJacocoReportDir")
113113
}
114114

@@ -134,7 +134,7 @@ jacocoTestReport {
134134
}
135135

136136
spotbugs {
137-
toolVersion = '4.1.4'
137+
toolVersion = '4.2.0'
138138
ignoreFailures = false
139139
effort = 'max'
140140

@@ -174,22 +174,22 @@ artifactory {
174174

175175

176176
dependencies {
177-
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.11.3'
178-
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.11.3'
179-
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.11.3'
180-
implementation group: 'org.hibernate', name: 'hibernate-validator', version: '6.1.6.Final'
177+
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.12.0'
178+
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.0'
179+
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.12.0'
180+
implementation group: 'org.hibernate', name: 'hibernate-validator', version: '6.1.7.Final'
181181
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'
182182
implementation group: 'org.glassfish', name: 'javax.el', version: '3.0.0'
183183
implementation group: 'javax.el', name: 'javax.el-api', version: '3.0.0'
184184
//
185185
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.7.0'
186186
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.0'
187187
testCompile group: 'org.easymock', name: 'easymock', version: '4.2'
188-
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
188+
testCompile group: 'org.hamcrest', name: 'hamcrest', version: '2.2'
189189
}
190190

191191
wrapper {
192-
gradleVersion = '6.7'
192+
gradleVersion = '6.7.1'
193193
distributionType = Wrapper.DistributionType.BIN
194194
}
195195

gradle/wrapper/gradle-wrapper.jar

293 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fi
130130
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131131
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132132
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133-
133+
134134
JAVACMD=`cygpath --unix "$JAVACMD"`
135135

136136
# We build the pattern for arguments to be converted via cygpath

gradlew.bat

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
4040

4141
set JAVA_EXE=java.exe
4242
%JAVA_EXE% -version >NUL 2>&1
43-
if "%ERRORLEVEL%" == "0" goto init
43+
if "%ERRORLEVEL%" == "0" goto execute
4444

4545
echo.
4646
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -54,7 +54,7 @@ goto fail
5454
set JAVA_HOME=%JAVA_HOME:"=%
5555
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5656

57-
if exist "%JAVA_EXE%" goto init
57+
if exist "%JAVA_EXE%" goto execute
5858

5959
echo.
6060
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -64,29 +64,14 @@ echo location of your Java installation.
6464

6565
goto fail
6666

67-
:init
68-
@rem Get command-line arguments, handling Windows variants
69-
70-
if not "%OS%" == "Windows_NT" goto win9xME_args
71-
72-
:win9xME_args
73-
@rem Slurp the command line arguments.
74-
set CMD_LINE_ARGS=
75-
set _SKIP=2
76-
77-
:win9xME_args_slurp
78-
if "x%~1" == "x" goto execute
79-
80-
set CMD_LINE_ARGS=%*
81-
8267
:execute
8368
@rem Setup the command line
8469

8570
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
8671

8772

8873
@rem Execute Gradle
89-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
74+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
9075

9176
:end
9277
@rem End local scope for the variables with windows NT shell

0 commit comments

Comments
 (0)