Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
8bc7e7e
Create PR for #153
VolkerHartmann Mar 22, 2023
24f75df
Add leading zeros to date based storage service.
VolkerHartmann Mar 22, 2023
2f32cbb
Merge pull request #155 from VolkerHartmann/issue153
VolkerHartmann Mar 22, 2023
510114a
Change default values for StorageServiceProperties.
VolkerHartmann Mar 24, 2023
1475394
Merge pull request #156 from VolkerHartmann/issue153
VolkerHartmann Mar 24, 2023
e3b586c
Bump io.freefair.maven-publish-java from 6.5.1 to 8.0.1
dependabot[bot] Mar 27, 2023
741e4ef
Fixed month of date-based storage starting with 1.
VolkerHartmann Apr 3, 2023
208ddd9
Merge pull request #157 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 3, 2023
faafd28
Bump org.owasp.dependencycheck from 7.4.1 to 8.2.1
dependabot[bot] Apr 3, 2023
eefdd9d
Merge pull request #159 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 3, 2023
2b19306
Bump org.springframework.restdocs:spring-restdocs-mockmvc
dependabot[bot] Apr 3, 2023
3c26d9f
Bump org.springframework:spring-messaging from 5.3.23 to 5.3.26
dependabot[bot] Apr 3, 2023
76c9718
Bump org.postgresql:postgresql from 42.5.1 to 42.6.0
dependabot[bot] Apr 3, 2023
dac9caa
Bump org.javers:javers-spring-boot-starter-sql from 6.8.2 to 6.14.0
dependabot[bot] Apr 3, 2023
4c6f9e3
Merge pull request #162 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 3, 2023
95e9f0d
Merge pull request #165 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 3, 2023
da08685
Merge pull request #164 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 3, 2023
15f0660
Merge pull request #166 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 4, 2023
7f7a8b2
Bump springDocVersion from 1.6.14 to 1.7.0
dependabot[bot] Apr 4, 2023
512b194
Merge pull request #154 from kit-data-manager/issue-153-_Date-based_f…
VolkerHartmann Apr 4, 2023
89dc1c9
Merge pull request #163 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 4, 2023
df1f844
Bump com.fasterxml.jackson.datatype:jackson-datatype-jsr310
dependabot[bot] Apr 10, 2023
787c863
Bump org.apache.tika:tika-core from 2.6.0 to 2.7.0
dependabot[bot] Apr 10, 2023
71aa011
Bump io.github.gradle-nexus.publish-plugin from 1.1.0 to 1.3.0
dependabot[bot] Apr 10, 2023
06b831a
Bump com.sun.xml.bind:jaxb-impl from 4.0.1 to 4.0.2
dependabot[bot] Apr 10, 2023
5c16faa
Merge pull request #170 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 11, 2023
52449b2
Merge pull request #168 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 11, 2023
8285dc4
Merge pull request #167 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 11, 2023
173bbb2
Bump com.fasterxml.jackson.module:jackson-module-afterburner
dependabot[bot] Apr 12, 2023
6894f4a
Bump io.freefair.lombok from 6.6.1 to 8.0.1
dependabot[bot] Apr 12, 2023
22e2bc4
Bump com.sun.xml.bind:jaxb-core from 4.0.1 to 4.0.2
dependabot[bot] Apr 12, 2023
bc99c6a
Merge pull request #174 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 12, 2023
098d1a4
Merge pull request #173 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 12, 2023
061873e
Merge pull request #172 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 12, 2023
d85581e
Bump org.mockito:mockito-inline from 4.8.1 to 5.2.0
dependabot[bot] Apr 12, 2023
b6d2bd9
Bump org.springframework.data:spring-data-elasticsearch
dependabot[bot] Apr 12, 2023
f48131f
Bump com.fasterxml.jackson.datatype:jackson-datatype-joda
dependabot[bot] Apr 12, 2023
d247dc8
Merge pull request #178 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 12, 2023
60519a6
Merge pull request #177 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 12, 2023
2ab8aa1
Merge pull request #176 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 12, 2023
094b6c9
Bump org.springframework.boot:spring-boot-dependencies
dependabot[bot] Apr 12, 2023
807c5a8
Merge pull request #179 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 12, 2023
9e2cf8a
Merge pull request #169 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 12, 2023
62f968f
Bump org.springframework.data:spring-data-elasticsearch
dependabot[bot] Apr 17, 2023
4bd1aeb
Bump org.springframework:spring-messaging from 5.3.26 to 5.3.27
dependabot[bot] Apr 17, 2023
e099829
Merge pull request #181 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 17, 2023
7a893e0
Merge pull request #180 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Apr 17, 2023
f1d4a1f
Create PR for #182
VolkerHartmann Apr 18, 2023
2f2f4bb
Bump to new minor version.
VolkerHartmann May 22, 2023
33afe25
Bump dependencies to SpringBoot 3.
VolkerHartmann May 22, 2023
65c8c0f
Bump to service-base 1.2.0-SNAPSHOT.
VolkerHartmann May 22, 2023
7b9a3e4
Switch imports to SpringBoot 3.
VolkerHartmann May 22, 2023
021225e
Bump JaVers to 7.0.0
VolkerHartmann May 22, 2023
2c88478
Make tests running.
VolkerHartmann May 24, 2023
7660bb4
Fix test configuration.
VolkerHartmann May 26, 2023
d55bafc
Bump com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider
dependabot[bot] Jun 5, 2023
a246f92
Bump com.fasterxml.jackson.datatype:jackson-datatype-joda
dependabot[bot] Jun 5, 2023
1f6bc09
Add github actions to dependabot.
VolkerHartmann Jun 19, 2023
909d98d
Update libraries due to update to Spring Boot 3.
VolkerHartmann Jun 19, 2023
675c974
Adapt security configuration due to Spring Boot 3.
VolkerHartmann Jun 19, 2023
d7a2d32
Bump service-base from 1.1.1 to 1.2.0.
VolkerHartmann Jun 19, 2023
7a8202a
Merge origin/bumpToSpringBoot3 into bumpToSpringBoot3
VolkerHartmann Jun 19, 2023
33753c7
Bump gradle from 7.6.1 to 8.1.1.
VolkerHartmann Jun 19, 2023
25bd84a
README.md: Change requirements to JDK 17.
VolkerHartmann Jun 19, 2023
8858981
Bump actions to next version.
VolkerHartmann Jun 19, 2023
7d6d949
Build action: Bump JAVA version to JDK 17.
VolkerHartmann Jun 19, 2023
6181a8d
Set JDK version for publishing to 17.
VolkerHartmann Jun 19, 2023
7cd5a77
Add changes since v1.1.2 to CHANGELOG.md.
VolkerHartmann Jun 19, 2023
626f611
Merge pull request #194 from VolkerHartmann/bumpToSpringBoot3
VolkerHartmann Jun 19, 2023
1c25b1c
Merge pull request #198 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Jun 19, 2023
716c285
Merge pull request #196 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Jun 19, 2023
216a3a0
Bump com.fasterxml.jackson.datatype:jackson-datatype-jsr310
dependabot[bot] Jun 19, 2023
e5aba7a
Bump com.fasterxml.jackson.module:jackson-module-afterburner
dependabot[bot] Jun 19, 2023
cac7cfb
Merge pull request #183 from kit-data-manager/issue-182-Bump_CodeQL_f…
VolkerHartmann Jun 19, 2023
2b365c3
Merge pull request #195 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Jun 19, 2023
497a01f
Merge pull request #197 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Jun 19, 2023
b1b174c
Bump commons-io:commons-io from 2.11.0 to 2.13.0
dependabot[bot] Jun 19, 2023
6b6222f
Bump org.javers:javers-spring-boot-starter-sql from 7.0.0 to 7.0.1
dependabot[bot] Jun 19, 2023
2dd20b5
Bump org.apache.tika:tika-core from 2.7.0 to 2.8.0
dependabot[bot] Jun 19, 2023
93611e7
Merge pull request #202 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Jun 19, 2023
aef92c8
Merge pull request #201 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Jun 19, 2023
d7e302f
Merge pull request #200 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Jun 19, 2023
d3e2b99
Create PR for #203
ThomasJejkal Jun 20, 2023
64e8c79
Fix #203, added NotNull constraint to sid attribute of AclEntry, adde…
ThomasJejkal Jun 22, 2023
5797d62
Merge pull request #204 from kit-data-manager/issue-203-Missing_check…
ThomasJejkal Jun 22, 2023
b29b168
Bump org.owasp.dependencycheck from 8.2.1 to 8.3.1
dependabot[bot] Jun 26, 2023
e09fe2a
Merge pull request #205 from kit-data-manager/dependabot/gradle/devel…
dependabot[bot] Jun 27, 2023
07a77fe
Prepare changelog for release.
VolkerHartmann Jun 27, 2023
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
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ updates:
target-branch: "development"
schedule:
interval: "weekly"

- package-ecosystem: "github-actions"
directory: "/"
target-branch: "development"
schedule:
interval: "weekly"
15 changes: 11 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,18 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initialize minimum JDK version
- name: Setup Java JDK
uses: actions/setup-java@v1.4.4
with:
distribution: zulu
java-version: 17

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -53,7 +60,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -67,4 +74,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ on:

env:
# JDK version used for building jar file
currentBuildVersion: 8
currentBuildVersion: 17
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macOS-latest, windows-latest]
# Use both LTS releases and latest one for tests
jdk: [ 8, 11, 16 ]
jdk: [ 17, 19 ]
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publishRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: zulu
- name: Publish package
run: ./gradlew -Prelease publishToSonatype closeAndReleaseSonatypeStagingRepository
Expand Down
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

## [1.2.0] - 2023-06-27

### Changed
- At least JDK 17 is now required.
- Bump some github actions from 2 to 3.
- Bump org.springframework.boot:spring-boot-dependencies from 2.7.7 to 3.1.0.
- Bump gradle from 7.6.1 to 8.1.1.
- Bump service-base from 1.1.1 to 1.2.0.
- Bump JaVers from 6.14.0 to 7.0.0.

### Added

### Fixed
- Add check for empty ACL SID.

### Deprecated

### Removed

## [1.1.2] - 2023-03-17

### Changed
Expand Down Expand Up @@ -223,7 +242,8 @@ Extracted from the 'base-repo' project.
### Removed
- none

[Unreleased]: https://github.com/kit-data-manager/repo-core/compare/v1.1.2...HEAD
[Unreleased]: https://github.com/kit-data-manager/repo-core/compare/v1.2.0...HEAD
[1.2.0]: https://github.com/kit-data-manager/repo-core/compare/v1.1.2...v1.2.0
[1.1.2]: https://github.com/kit-data-manager/repo-core/compare/v1.1.1...v1.1.2
[1.1.1]: https://github.com/kit-data-manager/repo-core/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/kit-data-manager/repo-core/compare/v1.0.4...v1.1.0
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and general purpose implementations, e.g. helpers and exceptions.

In order to build this module you'll need:

* Java SE Development Kit 11 or higher
* Java SE Development Kit 17 or higher

After obtaining the sources change to the folder where the sources are located and call:

Expand All @@ -39,14 +39,14 @@ Instead of using a local build you may also use the most recent version from the
<dependency>
<groupId>edu.kit.datamanager</groupId>
<artifactId>repo-core</artifactId>
<version>1.1.2</version>
<version>1.2.0</version>
</dependency>
~~~~

### Gradle (short)

~~~~
implementation "edu.kit.datamanager:repo-core:1.1.2"
implementation "edu.kit.datamanager:repo-core:1.2.0"
~~~~

## License
Expand Down
64 changes: 33 additions & 31 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* limitations under the License.
*/
plugins {
id "io.freefair.lombok" version "6.6.1"
id "io.freefair.maven-publish-java" version "6.5.1"
id "io.freefair.lombok" version "8.0.1"
id "io.freefair.maven-publish-java" version "8.0.1"
id "io.spring.dependency-management" version "1.1.0"
//id "com.github.kt3k.coveralls" version "2.8.1"
id "org.owasp.dependencycheck" version "7.4.1"
id "org.owasp.dependencycheck" version "8.3.1"
id "org.asciidoctor.jvm.convert" version "3.3.2"
//id "org.ajoberstar.grgit" version "2.0.1"
id "com.jfrog.bintray" version "1.8.5"
Expand All @@ -27,22 +27,22 @@ plugins {
// plugins for release and publishing to maven repo
id "signing"
id "net.researchgate.release" version "3.0.2"
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
id "io.github.gradle-nexus.publish-plugin" version "1.3.0"
id 'maven-publish'
}

ext {
// versions of dependencies
springBootVersion = '2.7.7'
springDocVersion = '1.6.14'
javersVersion = '6.8.2'
springBootVersion = '3.1.0'
springDocVersion = '2.1.0'
javersVersion = '7.0.1'
}

description = "Core module for data repositories based on metadata model of datacite."
group = 'edu.kit.datamanager'

sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceCompatibility = 1.17
targetCompatibility = 1.17

jar {
archiveBaseName = 'repo-core'
Expand Down Expand Up @@ -70,55 +70,57 @@ if (project.hasProperty('release')) {

dependencies {
// Spring
implementation 'org.springframework:spring-messaging:5.3.23'
implementation 'org.springframework:spring-messaging:6.0.2'
// Spring Boot
implementation "org.springframework.boot:spring-boot-starter-data-rest"
implementation "org.springframework.boot:spring-boot-starter-amqp"
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.boot:spring-boot-starter-security"
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
implementation 'org.springframework.data:spring-data-elasticsearch:4.4.6'
implementation 'org.springframework.data:spring-data-elasticsearch:5.1.0'


// springdoc
implementation "org.springdoc:springdoc-openapi-ui:${springDocVersion}"
implementation "org.springdoc:springdoc-openapi-data-rest:${springDocVersion}"
implementation "org.springdoc:springdoc-openapi-webmvc-core:${springDocVersion}"
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${springDocVersion}"
implementation "org.springdoc:springdoc-openapi-starter-common:${springDocVersion}"
implementation "org.springdoc:springdoc-openapi-starter-webmvc-api:${springDocVersion}"
// apache
implementation "commons-configuration:commons-configuration:1.10"
implementation "commons-io:commons-io:2.11.0"
implementation "commons-io:commons-io:2.13.0"
implementation "org.apache.commons:commons-collections4:4.4"
// includes commons-lang3
implementation "org.apache.commons:commons-text:1.10.0"
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation "org.apache.tika:tika-core:2.6.0"
implementation "org.apache.tika:tika-core:2.8.0"
// javers
implementation "org.javers:javers-spring-boot-starter-sql:${javersVersion}"
implementation "com.google.code.gson:gson:2.10.1"

// Database
implementation "com.h2database:h2:2.1.214"
implementation "org.postgresql:postgresql:42.5.1"
implementation "org.postgresql:postgresql:42.6.0"
// XML
implementation "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2"
implementation "com.fasterxml.jackson.module:jackson-module-afterburner:2.13.4"
implementation "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.15.2"
implementation "com.fasterxml.jackson.module:jackson-module-afterburner:2.15.2"

implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.4"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.1"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-joda:2.15.2"

//implementation "com.monitorjbl:spring-json-view:1.0.1"

implementation "de.codecentric:spring-boot-admin-starter-client:2.7.10"

implementation "de.codecentric:spring-boot-admin-starter-client:3.0.4"
// log4j core
implementation "org.apache.logging.log4j:log4j-core"
implementation "ch.qos.logback:logback-classic"
//Java 11 Support
implementation "javax.xml.bind:jaxb-api:2.3.1"
implementation "com.sun.xml.bind:jaxb-core:4.0.1"
implementation "com.sun.xml.bind:jaxb-impl:4.0.1"
implementation "javax.activation:activation:1.1.1"
implementation "org.javassist:javassist:3.29.2-GA"
// implementation "javax.xml.bind:jaxb-api:2.3.1"
// implementation "com.sun.xml.bind:jaxb-core:4.0.2"
// implementation "com.sun.xml.bind:jaxb-impl:4.0.2"
// implementation "javax.activation:activation:1.1.1"
// implementation "org.javassist:javassist:3.29.2-GA"

implementation "edu.kit.datamanager:service-base:1.1.1"
implementation "edu.kit.datamanager:service-base:1.2.0"

implementation "com.github.java-json-tools:json-patch:1.13"
implementation "com.github.dozermapper:dozer-core:6.5.2"
Expand All @@ -128,11 +130,11 @@ dependencies {
// boot starter
testImplementation 'org.springframework.boot:spring-boot-starter-validation'
testImplementation "org.springframework.boot:spring-boot-starter-test"
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc:2.0.6.RELEASE'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc:3.0.0'
testImplementation "org.springframework.security:spring-security-test"

//Java 11 Support
testImplementation "org.mockito:mockito-inline:4.8.1"
testImplementation "org.mockito:mockito-inline:5.2.0"

// testImplementation 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.9.2'
// asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor:2.0.4.RELEASE'
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ systemProp.jdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2"
//-----------------------------
// Properties for build.gradle
//-----------------------------
version=1.1.3-SNAPSHOT
version=1.2.0-SNAPSHOT

action.custom-1=install
action.custom-1.args=--configure-on-demand -w -x check publishToMavenLocal
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
18 changes: 14 additions & 4 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand All @@ -80,10 +80,10 @@ do
esac
done

APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

APP_NAME="Gradle"
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
Expand Down Expand Up @@ -143,12 +143,16 @@ fi
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down Expand Up @@ -205,6 +209,12 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \
"$@"

# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
Expand Down
15 changes: 9 additions & 6 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
Expand All @@ -25,7 +25,8 @@
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

Expand All @@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome

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

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Expand Down Expand Up @@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%

:mainEnd
if "%OS%"=="Windows_NT" endlocal
Expand Down
Loading