Skip to content

Commit cad08df

Browse files
authored
Merge pull request #36 from embulk/gradle-7.6.2
Upgrade the Gradle wrapper to 7.6.2
2 parents 0e174da + 7714c6c commit cad08df

File tree

10 files changed

+78
-64
lines changed

10 files changed

+78
-64
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
steps:
1212
- name: Set Git's core.autocrlf to false for Windows before checkout
1313
run: git config --global core.autocrlf false
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- name: Set up OpenJDK 8
16-
uses: actions/setup-java@v2
16+
uses: actions/setup-java@v3
1717
with:
1818
java-version: 8
1919
distribution: "temurin"

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
strategy:
1212
fail-fast: true
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- name: Set up OpenJDK 8
16-
uses: actions/setup-java@v2
16+
uses: actions/setup-java@v3
1717
with:
1818
java-version: 8
1919
distribution: "temurin"
@@ -25,7 +25,7 @@ jobs:
2525
printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
2626
./gradlew --stacktrace publishMavenPublicationToMavenCentralRepository gemPush
2727
env:
28-
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME }}
28+
ORG_GRADLE_PROJECT_ossrhUsername: ${{ vars.OSSRH_USERNAME }}
2929
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }}
3030
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY_ARMOR }}
3131
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }}

build.gradle

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id "java"
33
id "maven-publish"
44
id "signing"
5-
id "org.embulk.embulk-plugins" version "0.5.2"
5+
id "org.embulk.embulk-plugins" version "0.5.5"
66
id "checkstyle"
77
id "jacoco"
88
}
@@ -17,15 +17,16 @@ group = "org.embulk"
1717
version = "0.9.0-SNAPSHOT"
1818
description = "A filter plugin for Embulk to filter out columns."
1919

20-
sourceCompatibility = JavaVersion.VERSION_1_8
21-
targetCompatibility = JavaVersion.VERSION_1_8
22-
2320
tasks.withType(JavaCompile) {
2421
options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
2522
options.encoding = "UTF-8"
2623
}
2724

2825
java {
26+
toolchain {
27+
languageVersion = JavaLanguageVersion.of(8)
28+
}
29+
2930
withJavadocJar()
3031
withSourcesJar()
3132
}
@@ -34,21 +35,21 @@ dependencies {
3435
compileOnly "org.embulk:embulk-spi:0.10.36"
3536
compileOnly "org.embulk:embulk-api:0.10.36"
3637

37-
compile "org.embulk:embulk-util-config:0.3.1"
38+
implementation "org.embulk:embulk-util-config:0.3.1"
3839

39-
compile("io.github.medjed:JsonPathCompiler:0.1.2") {
40+
implementation("io.github.medjed:JsonPathCompiler:0.1.2") {
4041
exclude group: "org.slf4j", module: "slf4j-api"
4142
exclude group: "org.apache.commons", module: "commons-lang3"
4243
}
43-
compile "org.embulk:embulk-util-timestamp:0.2.1"
44-
compile "org.embulk:embulk-util-json:0.1.1"
44+
implementation "org.embulk:embulk-util-timestamp:0.2.1"
45+
implementation "org.embulk:embulk-util-json:0.1.1"
4546

46-
compile "org.apache.commons:commons-lang3:3.4"
47+
implementation "org.apache.commons:commons-lang3:3.4"
4748

48-
testCompile "junit:junit:4.13.2"
49-
testCompile "org.embulk:embulk-core:0.10.36"
50-
testCompile "org.embulk:embulk-deps:0.10.36"
51-
testCompile "org.embulk:embulk-junit4:0.10.36"
49+
testImplementation "junit:junit:4.13.2"
50+
testImplementation "org.embulk:embulk-core:0.10.36"
51+
testImplementation "org.embulk:embulk-deps:0.10.36"
52+
testImplementation "org.embulk:embulk-junit4:0.10.36"
5253
}
5354

5455
embulkPlugin {
@@ -78,6 +79,12 @@ javadocJar {
7879
}
7980
}
8081

82+
// It should not publish a `.module` file in Maven Central.
83+
// https://docs.gradle.org/current/userguide/publishing_gradle_module_metadata.html#sub:disabling-gmm-publication
84+
tasks.withType(GenerateModuleMetadata) {
85+
enabled = false
86+
}
87+
8188
publishing {
8289
publications {
8390
maven(MavenPublication) {
@@ -100,6 +107,7 @@ publishing {
100107
// http://central.sonatype.org/pages/requirements.html#license-information
101108
name = "The Apache License, Version 2.0"
102109
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
110+
distribution = "repo"
103111
}
104112
}
105113

gradle.lockfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This is a Gradle generated file for dependency locking.
2+
# Manual edits can break the build and are not advised.
3+
# This file is expected to be part of source control.
4+
com.fasterxml.jackson.core:jackson-annotations:2.6.7=runtimeClasspath
5+
com.fasterxml.jackson.core:jackson-core:2.6.7=compileClasspath,runtimeClasspath
6+
com.fasterxml.jackson.core:jackson-databind:2.6.7=runtimeClasspath
7+
com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.6.7=runtimeClasspath
8+
io.github.medjed:JsonPathCompiler:0.1.2=compileClasspath,runtimeClasspath
9+
javax.validation:validation-api:1.1.0.Final=runtimeClasspath
10+
net.minidev:accessors-smart:1.1=runtimeClasspath
11+
net.minidev:json-smart:2.2.1=runtimeClasspath
12+
org.apache.commons:commons-lang3:3.4=compileClasspath,runtimeClasspath
13+
org.embulk:embulk-api:0.10.36=compileClasspath
14+
org.embulk:embulk-spi:0.10.36=compileClasspath
15+
org.embulk:embulk-util-config:0.3.1=compileClasspath,runtimeClasspath
16+
org.embulk:embulk-util-json:0.1.1=compileClasspath,runtimeClasspath
17+
org.embulk:embulk-util-rubytime:0.3.2=runtimeClasspath
18+
org.embulk:embulk-util-timestamp:0.2.1=compileClasspath,runtimeClasspath
19+
org.msgpack:msgpack-core:0.8.11=compileClasspath
20+
org.ow2.asm:asm:5.0.3=runtimeClasspath
21+
org.slf4j:slf4j-api:1.7.30=compileClasspath
22+
empty=

gradle/dependency-locks/compileClasspath.lockfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

gradle/dependency-locks/runtimeClasspath.lockfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

gradle/wrapper/gradle-wrapper.jar

2.36 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

gradlew

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright ? 2015-2021 the original authors.
4+
# Copyright © 2015-2021 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -32,10 +32,10 @@
3232
# Busybox and similar reduced shells will NOT work, because this script
3333
# requires all of these POSIX shell features:
3434
# * functions;
35-
# * expansions ?$var?, ?${var}?, ?${var:-default}?, ?${var+SET}?,
36-
# ?${var#prefix}?, ?${var%suffix}?, and ?$( cmd )?;
37-
# * compound commands having a testable exit status, especially ?case?;
38-
# * various built-in commands including ?command?, ?set?, and ?ulimit?.
35+
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36+
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37+
# * compound commands having a testable exit status, especially «case»;
38+
# * various built-in commands including «command», «set», and «ulimit».
3939
#
4040
# Important for patching:
4141
#
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,10 +80,10 @@ do
8080
esac
8181
done
8282

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

8888
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
8989
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -143,12 +143,16 @@ fi
143143
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147+
# shellcheck disable=SC3045
146148
MAX_FD=$( ulimit -H -n ) ||
147149
warn "Could not query maximum file descriptor limit"
148150
esac
149151
case $MAX_FD in #(
150152
'' | soft) :;; #(
151153
*)
154+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155+
# shellcheck disable=SC3045
152156
ulimit -n "$MAX_FD" ||
153157
warn "Could not set maximum file descriptor limit to $MAX_FD"
154158
esac
@@ -205,6 +209,12 @@ set -- \
205209
org.gradle.wrapper.GradleWrapperMain \
206210
"$@"
207211

212+
# Stop when "xargs" is not available.
213+
if ! command -v xargs >/dev/null 2>&1
214+
then
215+
die "xargs is not available"
216+
fi
217+
208218
# Use "xargs" to parse quoted args.
209219
#
210220
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.

gradlew.bat

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@rem limitations under the License.
1515
@rem
1616

17-
@if "%DEBUG%" == "" @echo off
17+
@if "%DEBUG%"=="" @echo off
1818
@rem ##########################################################################
1919
@rem
2020
@rem Gradle startup script for Windows
@@ -25,7 +25,8 @@
2525
if "%OS%"=="Windows_NT" setlocal
2626

2727
set DIRNAME=%~dp0
28-
if "%DIRNAME%" == "" set DIRNAME=.
28+
if "%DIRNAME%"=="" set DIRNAME=.
29+
@rem This is normally unused
2930
set APP_BASE_NAME=%~n0
3031
set APP_HOME=%DIRNAME%
3132

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

4142
set JAVA_EXE=java.exe
4243
%JAVA_EXE% -version >NUL 2>&1
43-
if "%ERRORLEVEL%" == "0" goto execute
44+
if %ERRORLEVEL% equ 0 goto execute
4445

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

7677
:end
7778
@rem End local scope for the variables with windows NT shell
78-
if "%ERRORLEVEL%"=="0" goto mainEnd
79+
if %ERRORLEVEL% equ 0 goto mainEnd
7980

8081
:fail
8182
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
8283
rem the _cmd.exe /c_ return code!
83-
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84-
exit /b 1
84+
set EXIT_CODE=%ERRORLEVEL%
85+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
86+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87+
exit /b %EXIT_CODE%
8588

8689
:mainEnd
8790
if "%OS%"=="Windows_NT" endlocal

0 commit comments

Comments
 (0)