Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ The project includes a Jenkins file to control a pipeline build.
<dependency>
<groupId>com.codingrodent</groupId>
<artifactId>jackson-json-crypto</artifactId>
<version>2.2.0</version>
<version>3.0.0</version>
</dependency>
```

## Include Using Gradle

```
compile group: 'com.codingrodent', name: 'jackson-json-crypto', version: '2.2.0'
compile group: 'com.codingrodent', name: 'jackson-json-crypto', version: '3.0.0'
```

72 changes: 37 additions & 35 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
import com.github.spotbugs.snom.Effort

buildscript {
repositories {
mavenCentral()
mavenLocal()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
url="https://plugins.gradle.org/m2/"
}
}
dependencies {
//Check for the latest version here: http://plugins.gradle.org/plugin/com.jfrog.artifactory
classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '4.+')
classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '5.2.5')
}
}

plugins {
id "com.github.spotbugs" version "4.6.0"
id "com.github.spotbugs" version "6.0.18"
id 'java'
id 'idea'
id 'maven-publish'
id 'jacoco'
}

apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.artifactory'

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}


task setVersion {
tasks.register('setVersion') {
if (System.env.BUILD_NUMBER) {
version = projectVersionMajor + '.' + projectVersionMinor + '.' + System.env.BUILD_NUMBER
} else {
Expand All @@ -39,29 +40,31 @@ task setVersion {
}

jar {
baseName = projectName
archiveBaseName = projectName
manifest
{
attributes 'Implementation-Title': projectName,
'Implementation-Version': version
}
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
tasks.register('sourcesJar', Jar) {
dependsOn classes
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

javadoc {
options.addBooleanOption('html5', true)
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
tasks.register('javadocJar', Jar) {
dependsOn javadoc
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

task createPom {
tasks.register('createPom') {
doLast {
pom
{
Expand Down Expand Up @@ -108,8 +111,8 @@ repositories {
}

jacoco {
toolVersion = "0.8.6"
reportsDir = file("$buildDir/customJacocoReportDir")
toolVersion = "0.8.12"
reportsDirectory = file("$buildDir/customJacocoReportDir")
}

test {
Expand All @@ -127,16 +130,16 @@ test {

jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.destination = file("${buildDir}/jacocoHtml")
xml.required = true
csv.required = false
html.outputLocation = file("${buildDir}/jacocoHtml")
}
}

spotbugs {
toolVersion = '4.2.0'
toolVersion = '4.8.6'
ignoreFailures = false
effort = 'max'
effort = Effort.MAX

}

Expand All @@ -155,7 +158,6 @@ artifactory {
repoKey = 'gradle-dev-local'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true

}
defaults {
Expand All @@ -174,23 +176,23 @@ artifactory {


dependencies {
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.12.0'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.0'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.12.0'
implementation group: 'javax.validation', name: 'validation-api', version: '2.0.1.Final'
implementation group: 'org.hibernate', name: 'hibernate-validator', version: '6.1.7.Final'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'
implementation group: 'org.glassfish', name: 'javax.el', version: '3.0.0'
implementation group: 'javax.el', name: 'javax.el-api', version: '3.0.0'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.18.3'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.18.3'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.18.3'
implementation group: 'jakarta.validation', name: 'jakarta.validation-api', version: '3.1.1'
implementation group: 'org.hibernate.validator', name: 'hibernate-validator', version: '8.0.2.Final'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.17'
implementation group: 'jakarta.el', name: 'jakarta.el-api', version: '6.0.1'
//
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.7.0'
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.0'
testCompile group: 'org.easymock', name: 'easymock', version: '4.2'
testCompile group: 'org.hamcrest', name: 'hamcrest', version: '2.2'
testImplementation group: 'org.glassfish', name: 'jakarta.el', version: '4.0.2'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.7.0'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.0'
testImplementation group: 'org.easymock', name: 'easymock', version: '5.5.0'
testImplementation group: 'org.hamcrest', name: 'hamcrest', version: '3.0'
}

wrapper {
gradleVersion = '6.7.1'
gradleVersion = '8.13'
distributionType = Wrapper.DistributionType.BIN
}

2 changes: 1 addition & 1 deletion bundle.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

set VER="2.2.0"
set VER="3.0.0"

gpg -ab jackson-json-crypto-%VER%.jar
gpg -ab jackson-json-crypto-%VER%.pom
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#
projectName=jackson-json-crypto
#
projectVersionMajor=2
projectVersionMinor=2
projectVersionMajor=3
projectVersionMinor=0
projectVersionBuild=0
#
artifactory_user=admin
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ of this software and associated documentation files (the "Software"), to deal
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;

import javax.validation.constraints.NotNull;
import jakarta.validation.constraints.NotNull;
import java.util.Arrays;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ of this software and associated documentation files (the "Software"), to deal
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.validation.*;
import jakarta.validation.*;
import java.util.Set;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
projectVersionMajor=2
projectVersionMinor=2
projectVersionMajor=3
projectVersionMinor=0
projectVersionBuild=0
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.jupiter.api.Test;

import javax.validation.Validation;
import jakarta.validation.Validation;

import static org.junit.jupiter.api.Assertions.assertEquals;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getModuleName() {
public void version() {
var cryptoModule = new CryptoModule();
var version = cryptoModule.version();
assertEquals("2.2.0", version.toString());
assertEquals("3.0.0", version.toString());
assertEquals(CryptoModule.ARTIFACT_ID, version.getArtifactId());
assertEquals(CryptoModule.GROUP_ID, version.getGroupId());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.jupiter.api.Test;

import javax.validation.Validation;
import jakarta.validation.Validation;

import static org.junit.jupiter.api.Assertions.assertEquals;

Expand Down