diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 62d93cd..d04c000 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,37 +13,37 @@ updates: ignore: - dependency-name: "@types/node" - package-ecosystem: "gradle" - directory: "__tests__/samples/gradle-plugin" + directory: ".github/workflows/samples/gradle-plugin" registries: - gradle-plugin-portal schedule: interval: "daily" - package-ecosystem: "gradle" - directory: "__tests__/samples/groovy-dsl" + directory: ".github/workflows/samples/groovy-dsl" registries: - gradle-plugin-portal schedule: interval: "daily" - package-ecosystem: "gradle" - directory: "__tests__/samples/java-toolchain" + directory: ".github/workflows/samples/java-toolchain" registries: - gradle-plugin-portal schedule: interval: "daily" - package-ecosystem: "gradle" - directory: "__tests__/samples/kotlin-dsl" + directory: ".github/workflows/samples/kotlin-dsl" registries: - gradle-plugin-portal schedule: interval: "daily" - package-ecosystem: "gradle" - directory: "__tests__/samples/no-wrapper" + directory: ".github/workflows/samples/no-wrapper" registries: - gradle-plugin-portal schedule: interval: "daily" - package-ecosystem: "gradle" - directory: "__tests__/samples/no-wrapper-gradle-5" + directory: ".github/workflows/samples/no-wrapper-gradle-5" registries: - gradle-plugin-portal schedule: diff --git a/.github/workflows/failure-cases.yml b/.github/workflows/failure-cases.yml index a1a53c5..ae6d5a8 100644 --- a/.github/workflows/failure-cases.yml +++ b/.github/workflows/failure-cases.yml @@ -17,7 +17,7 @@ jobs: uses: ./ continue-on-error: true with: - build-root-directory: __tests__/samples/no-wrapper + build-root-directory: .github/workflows/samples/no-wrapper arguments: help bad-configuration: @@ -29,6 +29,6 @@ jobs: uses: ./ continue-on-error: true with: - build-root-directory: __tests__/samples/no-wrapper + build-root-directory: .github/workflows/samples/no-wrapper arguments: help cache-disabled: yes diff --git a/.github/workflows/integTest-action-inputs.yml b/.github/workflows/integTest-action-inputs.yml index 062028b..759e17d 100644 --- a/.github/workflows/integTest-action-inputs.yml +++ b/.github/workflows/integTest-action-inputs.yml @@ -24,7 +24,7 @@ jobs: - name: Invoke with multi-line arguments uses: ./ with: - build-root-directory: __tests__/samples/groovy-dsl + build-root-directory: .github/workflows/samples/groovy-dsl arguments: | --configuration-cache --build-cache diff --git a/.github/workflows/integTest-caching-config.yml b/.github/workflows/integTest-caching-config.yml index 1d4a020..e1515a9 100644 --- a/.github/workflows/integTest-caching-config.yml +++ b/.github/workflows/integTest-caching-config.yml @@ -33,7 +33,7 @@ jobs: gradle-home-cache-excludes: | caches/build-cache-1 - name: Build using Gradle wrapper - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test # Test that the gradle-user-home cache will cache dependencies, by running build with --offline @@ -57,7 +57,7 @@ jobs: caches/build-cache-1 cache-read-only: true - name: Execute Gradle build with --offline - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test --offline # Test that build scans are captured when caching is explicitly disabled @@ -75,7 +75,7 @@ jobs: cache-disabled: true - name: Run Gradle build id: gradle - working-directory: __tests__/samples/no-wrapper${{ matrix.build-root-suffix }} + working-directory: .github/workflows/samples/no-wrapper${{ matrix.build-root-suffix }} run: gradle help "-DgradleVersionCheck=${{matrix.gradle}}" - name: Check build scan url is captured if: ${{ !steps.gradle.outputs.build-scan-url }} @@ -96,7 +96,7 @@ jobs: uses: ./ - name: Run Gradle build id: gradle - working-directory: __tests__/samples/no-wrapper${{ matrix.build-root-suffix }} + working-directory: .github/workflows/samples/no-wrapper${{ matrix.build-root-suffix }} run: gradle help "-DgradleVersionCheck=${{matrix.gradle}}" - name: Check build scan url is captured if: ${{ !steps.gradle.outputs.build-scan-url }} @@ -121,7 +121,7 @@ jobs: with: cache-write-only: true - name: Build using Gradle wrapper - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test verify-write-only-build: @@ -140,6 +140,6 @@ jobs: with: cache-read-only: true - name: Execute Gradle build with --offline - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test --offline diff --git a/.github/workflows/integTest-caching-configuration-cache.yml b/.github/workflows/integTest-caching-configuration-cache.yml index 300cf57..8746099 100644 --- a/.github/workflows/integTest-caching-configuration-cache.yml +++ b/.github/workflows/integTest-caching-configuration-cache.yml @@ -28,7 +28,7 @@ jobs: - name: Setup Gradle uses: ./ - name: Groovy build with configuration-cache enabled - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test --configuration-cache configuration-cache-groovy: @@ -48,7 +48,7 @@ jobs: cache-read-only: true - name: Groovy build with configuration-cache enabled id: execute - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test --configuration-cache - name: Check that configuration-cache was used if: ${{ steps.execute.outputs.task_configured == 'yes' }} @@ -76,7 +76,7 @@ jobs: with: cache-read-only: true - name: Check execute Gradle build with configuration cache enabled (but not restored) - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test --configuration-cache seed-build-kotlin: @@ -92,7 +92,7 @@ jobs: - name: Setup Gradle uses: ./ - name: Execute 'help' with configuration-cache enabled - working-directory: __tests__/samples/kotlin-dsl + working-directory: .github/workflows/samples/kotlin-dsl run: ./gradlew help --configuration-cache modify-build-kotlin: @@ -109,7 +109,7 @@ jobs: - name: Setup Gradle uses: ./ - name: Execute 'test' with configuration-cache enabled - working-directory: __tests__/samples/kotlin-dsl + working-directory: .github/workflows/samples/kotlin-dsl run: ./gradlew test --configuration-cache # Test restore configuration-cache from the third build invocation @@ -130,7 +130,7 @@ jobs: cache-read-only: true - name: Execute 'test' again with configuration-cache enabled id: execute - working-directory: __tests__/samples/kotlin-dsl + working-directory: .github/workflows/samples/kotlin-dsl run: ./gradlew test --configuration-cache - name: Check that configuration-cache was used if: ${{ steps.execute.outputs.task_configured == 'yes' }} diff --git a/.github/workflows/integTest-caching-gradle-home.yml b/.github/workflows/integTest-caching-gradle-home.yml index 3a60fad..a8b65d7 100644 --- a/.github/workflows/integTest-caching-gradle-home.yml +++ b/.github/workflows/integTest-caching-gradle-home.yml @@ -24,7 +24,7 @@ jobs: - name: Setup Gradle uses: ./ - name: Build using Gradle wrapper - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test # Test that the gradle-user-home cache will cache dependencies, by running build with --offline @@ -42,7 +42,7 @@ jobs: with: cache-read-only: true - name: Execute Gradle build with --offline - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test --offline # Test that the gradle-user-home cache will cache and restore local build-cache @@ -60,7 +60,7 @@ jobs: with: cache-read-only: true - name: Execute Gradle build and verify tasks from cache - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test -DverifyCachedBuild=true # Check that the build can run when Gradle User Home is not fully restored @@ -80,6 +80,6 @@ jobs: with: cache-read-only: true - name: Check executee Gradle build - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test diff --git a/.github/workflows/integTest-caching-java-toolchain.yml b/.github/workflows/integTest-caching-java-toolchain.yml index 7fba137..f7452d3 100644 --- a/.github/workflows/integTest-caching-java-toolchain.yml +++ b/.github/workflows/integTest-caching-java-toolchain.yml @@ -24,7 +24,7 @@ jobs: - name: Setup Gradle uses: ./ - name: Build using Gradle wrapper - working-directory: __tests__/samples/java-toolchain + working-directory: .github/workflows/samples/java-toolchain run: ./gradlew test --info # Test that the gradle-user-home cache will cache the toolchain, by running build with --offline @@ -42,5 +42,5 @@ jobs: with: cache-read-only: true - name: Execute Gradle build with --offline - working-directory: __tests__/samples/java-toolchain + working-directory: .github/workflows/samples/java-toolchain run: ./gradlew test --info --offline diff --git a/.github/workflows/integTest-execution-with-caching.yml b/.github/workflows/integTest-execution-with-caching.yml index a2a5f47..59a89b3 100644 --- a/.github/workflows/integTest-execution-with-caching.yml +++ b/.github/workflows/integTest-execution-with-caching.yml @@ -24,7 +24,7 @@ jobs: - name: Exucute Gradle build uses: ./ with: - build-root-directory: __tests__/samples/groovy-dsl + build-root-directory: .github/workflows/samples/groovy-dsl arguments: test # Test that the gradle-user-home is restored @@ -41,6 +41,6 @@ jobs: uses: ./ with: cache-read-only: true - build-root-directory: __tests__/samples/groovy-dsl + build-root-directory: .github/workflows/samples/groovy-dsl arguments: test --offline -DverifyCachedBuild=true diff --git a/.github/workflows/integTest-execution.yml b/.github/workflows/integTest-execution.yml index a170e79..f59f9ca 100644 --- a/.github/workflows/integTest-execution.yml +++ b/.github/workflows/integTest-execution.yml @@ -30,19 +30,19 @@ jobs: uses: ./ with: gradle-version: 6.9 - build-root-directory: __tests__/samples/no-wrapper + build-root-directory: .github/workflows/samples/no-wrapper arguments: help -DgradleVersionCheck=6.9 - name: Test use Gradle version alias uses: ./ with: gradle-version: release-candidate - build-root-directory: __tests__/samples/no-wrapper + build-root-directory: .github/workflows/samples/no-wrapper arguments: help - name: Test use defined Gradle executable uses: ./ with: - gradle-executable: __tests__/samples/groovy-dsl/gradlew${{ matrix.script-suffix }} - build-root-directory: __tests__/samples/no-wrapper + gradle-executable: .github/workflows/samples/groovy-dsl/gradlew${{ matrix.script-suffix }} + build-root-directory: .github/workflows/samples/no-wrapper arguments: help -DgradleVersionCheck=7.4.2 gradle-versions: @@ -64,7 +64,7 @@ jobs: id: gradle with: gradle-version: ${{matrix.gradle}} - build-root-directory: __tests__/samples/no-wrapper${{ matrix.build-root-suffix }} + build-root-directory: .github/workflows/samples/no-wrapper${{ matrix.build-root-suffix }} arguments: help -DgradleVersionCheck=${{matrix.gradle}} - name: Check build scan url if: ${{ !steps.gradle.outputs.build-scan-url }} diff --git a/.github/workflows/integTest-gradle-user-home.yml b/.github/workflows/integTest-gradle-user-home.yml index dfee97e..a1be963 100644 --- a/.github/workflows/integTest-gradle-user-home.yml +++ b/.github/workflows/integTest-gradle-user-home.yml @@ -27,7 +27,7 @@ jobs: - name: Setup Gradle uses: ./ - name: Build using Gradle wrapper - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test --info # Test that the gradle-user-home cache will cache dependencies, by running build with --offline @@ -45,7 +45,7 @@ jobs: with: cache-read-only: true - name: Execute Gradle build with --offline - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test --offline --info # Test that the gradle-user-home cache will cache and restore local build-cache @@ -63,5 +63,5 @@ jobs: with: cache-read-only: true - name: Execute Gradle build and verify tasks from cache - working-directory: __tests__/samples/groovy-dsl + working-directory: .github/workflows/samples/groovy-dsl run: ./gradlew test -DverifyCachedBuild=true --info diff --git a/.github/workflows/integTest-gradle-versions.yml b/.github/workflows/integTest-gradle-versions.yml index c2ddd29..7c536bf 100644 --- a/.github/workflows/integTest-gradle-versions.yml +++ b/.github/workflows/integTest-gradle-versions.yml @@ -31,21 +31,21 @@ jobs: with: gradle-version: 6.9 - name: Test uses Gradle v6.9 - working-directory: __tests__/samples/no-wrapper + working-directory: .github/workflows/samples/no-wrapper run: gradle help "-DgradleVersionCheck=6.9" - name: Setup Gradle with v7.1.1 uses: ./ with: gradle-version: 7.1.1 - name: Test uses Gradle v7.1.1 - working-directory: __tests__/samples/no-wrapper + working-directory: .github/workflows/samples/no-wrapper run: gradle help "-DgradleVersionCheck=7.1.1" - name: Setup Gradle with release-candidate uses: ./ with: gradle-version: release-candidate - name: Test use release-candidate - working-directory: __tests__/samples/no-wrapper + working-directory: .github/workflows/samples/no-wrapper run: gradle help gradle-versions: @@ -68,7 +68,7 @@ jobs: gradle-version: ${{ matrix.gradle }} - name: Run Gradle build id: gradle - working-directory: __tests__/samples/no-wrapper${{ matrix.build-root-suffix }} + working-directory: .github/workflows/samples/no-wrapper${{ matrix.build-root-suffix }} run: gradle help "-DgradleVersionCheck=${{matrix.gradle}}" - name: Check build scan url if: ${{ !steps.gradle.outputs.build-scan-url }} diff --git a/.github/workflows/integTest-sample-gradle-plugin.yml b/.github/workflows/integTest-sample-gradle-plugin.yml index 14e39d3..5a11e48 100644 --- a/.github/workflows/integTest-sample-gradle-plugin.yml +++ b/.github/workflows/integTest-sample-gradle-plugin.yml @@ -25,7 +25,7 @@ jobs: - name: Setup Gradle uses: ./ - name: Build gradle-plugin project - working-directory: __tests__/samples/gradle-plugin + working-directory: .github/workflows/samples/gradle-plugin run: ./gradlew build verify-build: @@ -40,5 +40,5 @@ jobs: - name: Setup Gradle uses: ./ - name: Build gradle-plugin project - working-directory: __tests__/samples/gradle-plugin + working-directory: .github/workflows/samples/gradle-plugin run: ./gradlew build --offline diff --git a/.github/workflows/integTest-sample-kotlin-dsl.yml b/.github/workflows/integTest-sample-kotlin-dsl.yml index 20d11db..d6debcf 100644 --- a/.github/workflows/integTest-sample-kotlin-dsl.yml +++ b/.github/workflows/integTest-sample-kotlin-dsl.yml @@ -25,7 +25,7 @@ jobs: - name: Setup Gradle uses: ./ - name: Build kotlin-dsl project - working-directory: __tests__/samples/kotlin-dsl + working-directory: .github/workflows/samples/kotlin-dsl run: ./gradlew build verify-build: @@ -40,5 +40,5 @@ jobs: - name: Setup Gradle uses: ./ - name: Build kotlin-dsl project - working-directory: __tests__/samples/kotlin-dsl + working-directory: .github/workflows/samples/kotlin-dsl run: ./gradlew build --offline diff --git a/.github/workflows/pr-build-scan-comment.yml b/.github/workflows/pr-build-scan-comment.yml index da4a735..2898ad0 100644 --- a/.github/workflows/pr-build-scan-comment.yml +++ b/.github/workflows/pr-build-scan-comment.yml @@ -13,7 +13,7 @@ jobs: java-version: 11 - uses: ./ - id: gradle - working-directory: __tests__/samples/kotlin-dsl + working-directory: .github/workflows/samples/kotlin-dsl run: ./gradlew help - name: "Comment build scan url" uses: actions/github-script@v5 diff --git a/__tests__/samples/.gitignore b/.github/workflows/samples/.gitignore similarity index 100% rename from __tests__/samples/.gitignore rename to .github/workflows/samples/.gitignore diff --git a/__tests__/samples/gradle-plugin/gradle/wrapper/gradle-wrapper.jar b/.github/workflows/samples/gradle-plugin/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from __tests__/samples/gradle-plugin/gradle/wrapper/gradle-wrapper.jar rename to .github/workflows/samples/gradle-plugin/gradle/wrapper/gradle-wrapper.jar diff --git a/__tests__/samples/gradle-plugin/gradle/wrapper/gradle-wrapper.properties b/.github/workflows/samples/gradle-plugin/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from __tests__/samples/gradle-plugin/gradle/wrapper/gradle-wrapper.properties rename to .github/workflows/samples/gradle-plugin/gradle/wrapper/gradle-wrapper.properties diff --git a/__tests__/samples/gradle-plugin/gradlew b/.github/workflows/samples/gradle-plugin/gradlew similarity index 100% rename from __tests__/samples/gradle-plugin/gradlew rename to .github/workflows/samples/gradle-plugin/gradlew diff --git a/__tests__/samples/gradle-plugin/gradlew.bat b/.github/workflows/samples/gradle-plugin/gradlew.bat similarity index 96% rename from __tests__/samples/gradle-plugin/gradlew.bat rename to .github/workflows/samples/gradle-plugin/gradlew.bat index ac1b06f..107acd3 100644 --- a/__tests__/samples/gradle-plugin/gradlew.bat +++ b/.github/workflows/samples/gradle-plugin/gradlew.bat @@ -1,89 +1,89 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -: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 %* - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="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 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +: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 %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="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 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/__tests__/samples/gradle-plugin/plugin/build.gradle b/.github/workflows/samples/gradle-plugin/plugin/build.gradle similarity index 100% rename from __tests__/samples/gradle-plugin/plugin/build.gradle rename to .github/workflows/samples/gradle-plugin/plugin/build.gradle diff --git a/__tests__/samples/gradle-plugin/plugin/src/functionalTest/java/org/example/gradle/plugin/GradlePluginPluginFunctionalTest.java b/.github/workflows/samples/gradle-plugin/plugin/src/functionalTest/java/org/example/gradle/plugin/GradlePluginPluginFunctionalTest.java similarity index 100% rename from __tests__/samples/gradle-plugin/plugin/src/functionalTest/java/org/example/gradle/plugin/GradlePluginPluginFunctionalTest.java rename to .github/workflows/samples/gradle-plugin/plugin/src/functionalTest/java/org/example/gradle/plugin/GradlePluginPluginFunctionalTest.java diff --git a/__tests__/samples/gradle-plugin/plugin/src/main/java/org/example/gradle/plugin/GradlePluginPlugin.java b/.github/workflows/samples/gradle-plugin/plugin/src/main/java/org/example/gradle/plugin/GradlePluginPlugin.java similarity index 100% rename from __tests__/samples/gradle-plugin/plugin/src/main/java/org/example/gradle/plugin/GradlePluginPlugin.java rename to .github/workflows/samples/gradle-plugin/plugin/src/main/java/org/example/gradle/plugin/GradlePluginPlugin.java diff --git a/__tests__/samples/gradle-plugin/plugin/src/test/java/org/example/gradle/plugin/GradlePluginPluginTest.java b/.github/workflows/samples/gradle-plugin/plugin/src/test/java/org/example/gradle/plugin/GradlePluginPluginTest.java similarity index 100% rename from __tests__/samples/gradle-plugin/plugin/src/test/java/org/example/gradle/plugin/GradlePluginPluginTest.java rename to .github/workflows/samples/gradle-plugin/plugin/src/test/java/org/example/gradle/plugin/GradlePluginPluginTest.java diff --git a/__tests__/samples/gradle-plugin/settings.gradle b/.github/workflows/samples/gradle-plugin/settings.gradle similarity index 100% rename from __tests__/samples/gradle-plugin/settings.gradle rename to .github/workflows/samples/gradle-plugin/settings.gradle diff --git a/__tests__/samples/groovy-dsl/build.gradle b/.github/workflows/samples/groovy-dsl/build.gradle similarity index 100% rename from __tests__/samples/groovy-dsl/build.gradle rename to .github/workflows/samples/groovy-dsl/build.gradle diff --git a/__tests__/samples/groovy-dsl/gradle.properties b/.github/workflows/samples/groovy-dsl/gradle.properties similarity index 100% rename from __tests__/samples/groovy-dsl/gradle.properties rename to .github/workflows/samples/groovy-dsl/gradle.properties diff --git a/__tests__/samples/groovy-dsl/gradle/wrapper/gradle-wrapper.jar b/.github/workflows/samples/groovy-dsl/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from __tests__/samples/groovy-dsl/gradle/wrapper/gradle-wrapper.jar rename to .github/workflows/samples/groovy-dsl/gradle/wrapper/gradle-wrapper.jar diff --git a/__tests__/samples/groovy-dsl/gradle/wrapper/gradle-wrapper.properties b/.github/workflows/samples/groovy-dsl/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from __tests__/samples/groovy-dsl/gradle/wrapper/gradle-wrapper.properties rename to .github/workflows/samples/groovy-dsl/gradle/wrapper/gradle-wrapper.properties diff --git a/__tests__/samples/groovy-dsl/gradlew b/.github/workflows/samples/groovy-dsl/gradlew similarity index 100% rename from __tests__/samples/groovy-dsl/gradlew rename to .github/workflows/samples/groovy-dsl/gradlew diff --git a/__tests__/samples/groovy-dsl/gradlew.bat b/.github/workflows/samples/groovy-dsl/gradlew.bat similarity index 96% rename from __tests__/samples/groovy-dsl/gradlew.bat rename to .github/workflows/samples/groovy-dsl/gradlew.bat index ac1b06f..107acd3 100644 --- a/__tests__/samples/groovy-dsl/gradlew.bat +++ b/.github/workflows/samples/groovy-dsl/gradlew.bat @@ -1,89 +1,89 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -: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 %* - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="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 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +: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 %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="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 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/__tests__/samples/groovy-dsl/settings.gradle b/.github/workflows/samples/groovy-dsl/settings.gradle similarity index 100% rename from __tests__/samples/groovy-dsl/settings.gradle rename to .github/workflows/samples/groovy-dsl/settings.gradle diff --git a/__tests__/samples/groovy-dsl/src/test/java/basic/BasicTest.java b/.github/workflows/samples/groovy-dsl/src/test/java/basic/BasicTest.java similarity index 100% rename from __tests__/samples/groovy-dsl/src/test/java/basic/BasicTest.java rename to .github/workflows/samples/groovy-dsl/src/test/java/basic/BasicTest.java diff --git a/__tests__/samples/java-toolchain/build.gradle b/.github/workflows/samples/java-toolchain/build.gradle similarity index 100% rename from __tests__/samples/java-toolchain/build.gradle rename to .github/workflows/samples/java-toolchain/build.gradle diff --git a/__tests__/samples/java-toolchain/gradle.properties b/.github/workflows/samples/java-toolchain/gradle.properties similarity index 100% rename from __tests__/samples/java-toolchain/gradle.properties rename to .github/workflows/samples/java-toolchain/gradle.properties diff --git a/__tests__/samples/java-toolchain/gradle/wrapper/gradle-wrapper.jar b/.github/workflows/samples/java-toolchain/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from __tests__/samples/java-toolchain/gradle/wrapper/gradle-wrapper.jar rename to .github/workflows/samples/java-toolchain/gradle/wrapper/gradle-wrapper.jar diff --git a/__tests__/samples/java-toolchain/gradle/wrapper/gradle-wrapper.properties b/.github/workflows/samples/java-toolchain/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from __tests__/samples/java-toolchain/gradle/wrapper/gradle-wrapper.properties rename to .github/workflows/samples/java-toolchain/gradle/wrapper/gradle-wrapper.properties diff --git a/__tests__/samples/java-toolchain/gradlew b/.github/workflows/samples/java-toolchain/gradlew similarity index 100% rename from __tests__/samples/java-toolchain/gradlew rename to .github/workflows/samples/java-toolchain/gradlew diff --git a/__tests__/samples/java-toolchain/gradlew.bat b/.github/workflows/samples/java-toolchain/gradlew.bat similarity index 96% rename from __tests__/samples/java-toolchain/gradlew.bat rename to .github/workflows/samples/java-toolchain/gradlew.bat index ac1b06f..107acd3 100644 --- a/__tests__/samples/java-toolchain/gradlew.bat +++ b/.github/workflows/samples/java-toolchain/gradlew.bat @@ -1,89 +1,89 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -: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 %* - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="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 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +: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 %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="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 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/__tests__/samples/java-toolchain/settings.gradle b/.github/workflows/samples/java-toolchain/settings.gradle similarity index 100% rename from __tests__/samples/java-toolchain/settings.gradle rename to .github/workflows/samples/java-toolchain/settings.gradle diff --git a/__tests__/samples/java-toolchain/src/test/java/basic/BasicTest.java b/.github/workflows/samples/java-toolchain/src/test/java/basic/BasicTest.java similarity index 100% rename from __tests__/samples/java-toolchain/src/test/java/basic/BasicTest.java rename to .github/workflows/samples/java-toolchain/src/test/java/basic/BasicTest.java diff --git a/__tests__/samples/kotlin-dsl/build.gradle.kts b/.github/workflows/samples/kotlin-dsl/build.gradle.kts similarity index 100% rename from __tests__/samples/kotlin-dsl/build.gradle.kts rename to .github/workflows/samples/kotlin-dsl/build.gradle.kts diff --git a/__tests__/samples/kotlin-dsl/gradle.properties b/.github/workflows/samples/kotlin-dsl/gradle.properties similarity index 100% rename from __tests__/samples/kotlin-dsl/gradle.properties rename to .github/workflows/samples/kotlin-dsl/gradle.properties diff --git a/__tests__/samples/kotlin-dsl/gradle/wrapper/gradle-wrapper.jar b/.github/workflows/samples/kotlin-dsl/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from __tests__/samples/kotlin-dsl/gradle/wrapper/gradle-wrapper.jar rename to .github/workflows/samples/kotlin-dsl/gradle/wrapper/gradle-wrapper.jar diff --git a/__tests__/samples/kotlin-dsl/gradle/wrapper/gradle-wrapper.properties b/.github/workflows/samples/kotlin-dsl/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from __tests__/samples/kotlin-dsl/gradle/wrapper/gradle-wrapper.properties rename to .github/workflows/samples/kotlin-dsl/gradle/wrapper/gradle-wrapper.properties diff --git a/__tests__/samples/kotlin-dsl/gradlew b/.github/workflows/samples/kotlin-dsl/gradlew similarity index 100% rename from __tests__/samples/kotlin-dsl/gradlew rename to .github/workflows/samples/kotlin-dsl/gradlew diff --git a/__tests__/samples/kotlin-dsl/gradlew.bat b/.github/workflows/samples/kotlin-dsl/gradlew.bat similarity index 96% rename from __tests__/samples/kotlin-dsl/gradlew.bat rename to .github/workflows/samples/kotlin-dsl/gradlew.bat index ac1b06f..107acd3 100644 --- a/__tests__/samples/kotlin-dsl/gradlew.bat +++ b/.github/workflows/samples/kotlin-dsl/gradlew.bat @@ -1,89 +1,89 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -: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 %* - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="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 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +: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 %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="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 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/__tests__/samples/kotlin-dsl/settings.gradle.kts b/.github/workflows/samples/kotlin-dsl/settings.gradle.kts similarity index 100% rename from __tests__/samples/kotlin-dsl/settings.gradle.kts rename to .github/workflows/samples/kotlin-dsl/settings.gradle.kts diff --git a/__tests__/samples/kotlin-dsl/src/main/java/com/example/Library.java b/.github/workflows/samples/kotlin-dsl/src/main/java/com/example/Library.java similarity index 100% rename from __tests__/samples/kotlin-dsl/src/main/java/com/example/Library.java rename to .github/workflows/samples/kotlin-dsl/src/main/java/com/example/Library.java diff --git a/__tests__/samples/kotlin-dsl/src/test/java/com/example/LibraryTest.java b/.github/workflows/samples/kotlin-dsl/src/test/java/com/example/LibraryTest.java similarity index 100% rename from __tests__/samples/kotlin-dsl/src/test/java/com/example/LibraryTest.java rename to .github/workflows/samples/kotlin-dsl/src/test/java/com/example/LibraryTest.java diff --git a/__tests__/samples/no-wrapper-gradle-4/build.gradle b/.github/workflows/samples/no-wrapper-gradle-4/build.gradle similarity index 100% rename from __tests__/samples/no-wrapper-gradle-4/build.gradle rename to .github/workflows/samples/no-wrapper-gradle-4/build.gradle diff --git a/__tests__/samples/no-wrapper-gradle-4/settings.gradle b/.github/workflows/samples/no-wrapper-gradle-4/settings.gradle similarity index 100% rename from __tests__/samples/no-wrapper-gradle-4/settings.gradle rename to .github/workflows/samples/no-wrapper-gradle-4/settings.gradle diff --git a/__tests__/samples/no-wrapper-gradle-5/build.gradle b/.github/workflows/samples/no-wrapper-gradle-5/build.gradle similarity index 100% rename from __tests__/samples/no-wrapper-gradle-5/build.gradle rename to .github/workflows/samples/no-wrapper-gradle-5/build.gradle diff --git a/__tests__/samples/no-wrapper-gradle-5/settings.gradle b/.github/workflows/samples/no-wrapper-gradle-5/settings.gradle similarity index 100% rename from __tests__/samples/no-wrapper-gradle-5/settings.gradle rename to .github/workflows/samples/no-wrapper-gradle-5/settings.gradle diff --git a/__tests__/samples/no-wrapper/build.gradle b/.github/workflows/samples/no-wrapper/build.gradle similarity index 100% rename from __tests__/samples/no-wrapper/build.gradle rename to .github/workflows/samples/no-wrapper/build.gradle diff --git a/__tests__/samples/no-wrapper/settings.gradle b/.github/workflows/samples/no-wrapper/settings.gradle similarity index 100% rename from __tests__/samples/no-wrapper/settings.gradle rename to .github/workflows/samples/no-wrapper/settings.gradle