Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmay4 committed Jan 29, 2021
1 parent 85ff93f commit 03227d7
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 34 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ Download [the latest JAR][1] or grab via Maven:
<dependency>
<groupId>com.imsweb</groupId>
<artifactId>staging-algorithm-eod-public</artifactId>
<version>2.0.4</version>
<version>2.0.5</version>
</dependency>
```

or via Gradle:

```groovy
compile 'com.imsweb.com:staging-algorithm-eod-public:2.0.4'
compile 'com.imsweb.com:staging-algorithm-eod-public:2.0.5'
```

## Usage
Expand Down
24 changes: 12 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ plugins {
id "com.github.spotbugs" version "4.6.0"
id 'maven-publish'
id 'signing'
id "io.codearte.nexus-staging" version "0.22.0" // logs into Sonotype OSS and does a "Close" and "Release"
id 'io.codearte.nexus-staging' version '0.22.0' // logs into Sonotype OSS and does a "Close" and "Release"
id 'com.adarshr.test-logger' version '2.1.1'
id "com.github.ben-manes.versions" version "0.36.0"
id "org.owasp.dependencycheck" version "6.0.3"
id 'com.github.ben-manes.versions' version '0.36.0'
id 'org.sonatype.gradle.plugins.scan' version '2.0.3'
}

group = 'com.imsweb'
version = '2.0.4'
version = '2.0.5'
description = 'EOD algorithm for the java-staging-client'

tasks.withType(JavaCompile) {
Expand All @@ -37,7 +37,7 @@ repositories {
dependencies {
spotbugs 'com.github.spotbugs:spotbugs:4.2.0'

api 'com.imsweb:staging-client-java:5.0'
api 'com.imsweb:staging-client-java:5.0.1'

testImplementation('com.imsweb:staging-client-java:5.0') {
capabilities {
Expand All @@ -46,7 +46,7 @@ dependencies {
}

testImplementation 'junit:junit:4.13.1'
testImplementation 'org.assertj:assertj-core:3.18.1'
testImplementation 'org.assertj:assertj-core:3.19.0'
}

jar {
Expand All @@ -67,6 +67,11 @@ test {
maxHeapSize = "1g"
}

// Nexus vulnerability scan (see https://github.com/sonatype-nexus-community/scan-gradle-plugin)
ossIndexAudit {
printBanner = false
}

checkstyle {
toolVersion '8.29'
configFile = file('config/checkstyle/checkstyle.xml')
Expand All @@ -76,11 +81,6 @@ spotbugs {
excludeFilter = file('config/spotbugs/spotbugs-exclude.xml')
}

// OWASP check (https://jeremylong.github.io/DependencyCheck/index.html)
dependencyCheck {
failOnError = true
}

// don't try to release a snapshot to a non-snapshot repository, that won't work anyway
if (version.endsWith('-SNAPSHOT')) {
gradle.startParameter.excludedTaskNames += 'signMavenJavaPublication'
Expand Down Expand Up @@ -166,6 +166,6 @@ nexusStaging {
}

wrapper {
gradleVersion = '6.7'
gradleVersion = '6.8.1'
distributionType = Wrapper.DistributionType.ALL
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
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-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ fi
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`

JAVACMD=`cygpath --unix "$JAVACMD"`

# We build the pattern for arguments to be converted via cygpath
Expand Down
21 changes: 3 additions & 18 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome

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

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

if exist "%JAVA_EXE%" goto init
if exist "%JAVA_EXE%" goto execute

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

goto fail

:init
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*

:execute
@rem Setup the command line

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


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

:end
@rem End local scope for the variables with windows NT shell
Expand Down

0 comments on commit 03227d7

Please sign in to comment.