Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle 7.5 #5320

Merged
merged 4 commits into from Jul 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/cibuild.yml
Expand Up @@ -42,6 +42,7 @@ jobs:
java:
- '8'
- '11'
- '18'
runner:
- 'xvfb-run --auto-servernum {0}'
include:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rebuild.yml
Expand Up @@ -73,7 +73,7 @@ jobs:
- 'ubuntu-latest'
java:
- '8'
- '17'
- '18'
runner:
- 'xvfb-run --auto-servernum {0}'
name: Rebuild JDK${{ matrix.java }} ${{ matrix.os }}
Expand Down
17 changes: 9 additions & 8 deletions gradle-plugins/README.md
Expand Up @@ -7,7 +7,8 @@ A Bnd Workspace build uses the information specified in the Bnd Workspace's `cnf
The [`biz.aQute.bnd.gradle`][2] jar contains the Bnd Gradle Plugins.
These plugins requires at least Gradle 6.7 for Java 8 to Java 15,
at least Gradle 7.0 for Java 16,
and at least Gradle 7.3 for Java 17.
at least Gradle 7.3 for Java 17,
and at least Gradle 7.5 for Java 18.

This README represents the capabilities and features of the Bnd Gradle Plugins in the branch containing this README.
So for the `master` branch, this will be the [latest development SNAPSHOT build](#using-the-latest-development-snapshot-build-of-the-bnd-gradle-plugins).
Expand Down Expand Up @@ -138,7 +139,7 @@ The FileCollection object to use as the classpath for the Bnd builder.
The default value is _${project.sourceSets.main.compileClasspath}_.
You will only need to specify this property if you want to specify additional classpath elements or replace the classpath.

### properties
### properties

Properties that are available for evaluation of the Bnd instructions.
The default is the properties of the Gradle task and project objects.
Expand Down Expand Up @@ -382,7 +383,7 @@ This property must not be used for and is ignored in Bnd Workspace builds.
If `true` failure reports will include optional requirements.
The default is `true`.

### properties
### properties

Properties that are available for evaluation of the Bnd instructions.
The default is the properties of the Gradle task and project objects.
Expand Down Expand Up @@ -436,7 +437,7 @@ The collection of files to use for locating bundles during the bndrun export.
The default is _${project.sourceSets.main.runtimeClasspath}_ plus _${project.configurations.archives.artifacts.files}_.
This property must not be used for and is ignored in Bnd Workspace builds.

### properties
### properties

Properties that are available for evaluation of the Bnd instructions.
The default is the properties of the Gradle task and project objects.
Expand Down Expand Up @@ -496,9 +497,9 @@ The default is _${project.java.testResultsDir}/${task.name}_.
### javaLauncher

Specify the default java executable to be used for execution.
This java launcher is used if the bndrun does not specify the `java` property or specifies it with the default value `java`.
This java launcher is used if the bndrun does not specify the `java` property or specifies it with the default value `java`.

### properties
### properties

Properties that are available for evaluation of the Bnd instructions.
The default is the properties of the Gradle task and project objects.
Expand Down Expand Up @@ -609,9 +610,9 @@ This property must not be used for and is ignored in Bnd Workspace builds.
### javaLauncher

Specify the default java executable to be used for execution.
This java launcher is used if the bndrun does not specify the `java` property or specifies it with the default value `java`.
This java launcher is used if the bndrun does not specify the `java` property or specifies it with the default value `java`.

### properties
### properties

Properties that are available for evaluation of the Bnd instructions.
The default is the properties of the Gradle task and project objects.
Expand Down
Expand Up @@ -46,6 +46,11 @@ public class BndBuilderPlugin implements Plugin<Project> {
*/
public static final String PLUGINID = "biz.aQute.bnd.builder";

/**
* Default public constructor.
*/
public BndBuilderPlugin() {}

/**
* Apply the {@code biz.aQute.bnd.builder} plugin to the specified project.
*/
Expand Down
Expand Up @@ -104,6 +104,11 @@ public class BndPlugin implements Plugin<Project> {
private ObjectFactory objects;
private aQute.bnd.build.Project bndProject;

/**
* Default public constructor.
*/
public BndPlugin() {}

/**
* Apply the {@code biz.aQute.bnd} plugin to the specified project.
*/
Expand Down
Expand Up @@ -50,6 +50,11 @@ public class BndWorkspacePlugin implements Plugin<Object> {
private static final Pattern TASKNAME_SPLITTER = Pattern.compile(":");
private static final Set<String> SPECIAL_FOLDERS = Sets.of("buildSrc", "gradle");

/**
* Default public constructor.
*/
public BndWorkspacePlugin() {}

/**
* Apply the {@code biz.aQute.bnd.workspace} plugin.
*/
Expand Down
Expand Up @@ -39,6 +39,9 @@ class TestHelper {
}

private static String gradleVersion() {
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_18)) {
return "7.5"
}
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
return "7.3.2"
}
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 6 additions & 0 deletions gradlew
Expand Up @@ -205,6 +205,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
14 changes: 8 additions & 6 deletions gradlew.bat
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,7 @@
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

Expand All @@ -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 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 +75,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