corda/gradlew.bat

101 lines
2.9 KiB
Batchfile
Raw Normal View History

CORDA-2893 Upgrade Corda to use Gradle 5.x (#5063) * Upgrade gradle wrapper to Gradle 5.0 * Upgrade to use locally deployed version of Capsule plugin (using Gradle 5.0) * Upgrade to use Corda Gradle Plugins 5.x (inclusive of Gradle 5.0 compatibility fixes) * Fix compile-time problems resolving log4j packages. * Update to use Artifactory deployed version of Capsule plugin (using Gradle 5.0) * Upgrade to use Gradle 4.2.1 (excluding default memory setting change: command line client now starts with 64MB of heap instead of 1GB.) * Added explicit compile-time dependency on 'de.jensd:fontawesomefx-commons:8.13' (compile-time error in tools:explorer without) * Update "wrapper" gradleVersion to 5.4.1 * Update Capsule plugin version label to reference R3 forked build. * Commit all gradle upgrade changes following: ./gradlew wrapper --gradle-version 5.4.1 * Increase maximum heap memory for Test tasks to 1GB, and upgrade build-scan plugin to 2.2.1. * Increase Test tasks' maximum memory to 1.5GB - what could go wrong? * Up maxHeapSize to 2g for gradle test runner (global setting). * Added explicit compile-time dependency on 'de.jensd:fontawesomefx-commons:8.13' (compile-time error in tools:demobench without) * Added forkEvery for node Unit tests. * Up :node test task 'forkEvery' to 10. * TC test execution tuning (:core, :node => forkEvery 10, default JVM heap size) * TC test execution tuning (bump JVM heap size up to 1g for :node) * TC test execution tuning (bump JVM heap size up to 1.5g for :node) * TC test execution tuning (re-instate global JVM heap size of 1Gb) * TC test execution tuning (re-instate JVM heap size of 2Gb for :node) * Update Corda Gradle plugins to 5.0.0 * Updated plugin resolution order + renamed artifactory URL to use "software.r3.com" * Reorder plugin resolution such that mavenlocal() is always queried first.
2019-05-17 09:36:21 +00:00
@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 http://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
2018-01-24 15:51:52 +00:00
@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 Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
CORDA-2893 Upgrade Corda to use Gradle 5.x (#5063) * Upgrade gradle wrapper to Gradle 5.0 * Upgrade to use locally deployed version of Capsule plugin (using Gradle 5.0) * Upgrade to use Corda Gradle Plugins 5.x (inclusive of Gradle 5.0 compatibility fixes) * Fix compile-time problems resolving log4j packages. * Update to use Artifactory deployed version of Capsule plugin (using Gradle 5.0) * Upgrade to use Gradle 4.2.1 (excluding default memory setting change: command line client now starts with 64MB of heap instead of 1GB.) * Added explicit compile-time dependency on 'de.jensd:fontawesomefx-commons:8.13' (compile-time error in tools:explorer without) * Update "wrapper" gradleVersion to 5.4.1 * Update Capsule plugin version label to reference R3 forked build. * Commit all gradle upgrade changes following: ./gradlew wrapper --gradle-version 5.4.1 * Increase maximum heap memory for Test tasks to 1GB, and upgrade build-scan plugin to 2.2.1. * Increase Test tasks' maximum memory to 1.5GB - what could go wrong? * Up maxHeapSize to 2g for gradle test runner (global setting). * Added explicit compile-time dependency on 'de.jensd:fontawesomefx-commons:8.13' (compile-time error in tools:demobench without) * Added forkEvery for node Unit tests. * Up :node test task 'forkEvery' to 10. * TC test execution tuning (:core, :node => forkEvery 10, default JVM heap size) * TC test execution tuning (bump JVM heap size up to 1g for :node) * TC test execution tuning (bump JVM heap size up to 1.5g for :node) * TC test execution tuning (re-instate global JVM heap size of 1Gb) * TC test execution tuning (re-instate JVM heap size of 2Gb for :node) * Update Corda Gradle plugins to 5.0.0 * Updated plugin resolution order + renamed artifactory URL to use "software.r3.com" * Reorder plugin resolution such that mavenlocal() is always queried first.
2019-05-17 09:36:21 +00:00
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
2018-01-24 15:51:52 +00:00
@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 init
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 init
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
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
: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