use JAVA8_HOME for the gradle step in createLocalAwsApiP2Repository.sh

This commit is contained in:
Axel Uhl
2022-12-19 17:19:32 +01:00
parent a9d6a544e5
commit 74e18eaff8
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -15,12 +15,12 @@ buildscript {
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.6.4' classpath 'com.android.tools.build:gradle:3.6.4'
classpath "com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.3" classpath "com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.3"
classpath "org.ajoberstar:grgit:2.3.0" classpath "org.ajoberstar:grgit:5.0.0"
} }
} }
plugins { plugins {
id 'org.ajoberstar.grgit' version '2.3.0' id 'org.ajoberstar.grgit' version '5.0.0'
} }
allprojects { allprojects {
@@ -25,7 +25,7 @@ echo "Creating .project file from dot_project template to allow for Eclipse work
cp dot_project .project cp dot_project .project
echo "Downloading libraries..." echo "Downloading libraries..."
rm -rf ${LIB}/* rm -rf ${LIB}/*
${WORKSPACE}/gradlew downloadLibs JAVA_HOME=${JAVA8_HOME} ${WORKSPACE}/gradlew downloadLibs
cd ${LIB} cd ${LIB}
VERSION=`ls -1 aws-core-*.jar | grep -v -- -sources | sed -e 's/aws-core-\([.0-9]*\)\.jar/\1/' | sort | tail -n 1` VERSION=`ls -1 aws-core-*.jar | grep -v -- -sources | sed -e 's/aws-core-\([.0-9]*\)\.jar/\1/' | sort | tail -n 1`
echo VERSION=${VERSION} echo VERSION=${VERSION}
+2 -2
View File
@@ -43,9 +43,9 @@ First of all, make sure you've looked at [http://www.amazon.de/Patterns-Elements
### Installations ### Installations
1. JDK >= 11, it is required by Eclipse and therefore should be referenced in the environment variable `JAVA_HOME`. As an alternative to the environment variable Eclipse can be configured to use a different version of Java see [here](https://stackoverflow.com/questions/18469170/how-to-run-eclipse-with-different-java-version) for further instructions. 1. JDK >= 11. No longer required by Eclipse because new Eclipse releases bring their own JDK bundled with the installer. Still, if you want to use Java 11 or Java 17, install any such JDK and set the `JAVA_HOME` variable to it.
2. Eclipse IDE for Eclipse Committers, version 4.24.0 ["2022-06"](https://www.eclipse.org/downloads/packages/release/2022-06/r/eclipse-ide-eclipse-committers) 2. Eclipse IDE for Eclipse Committers, version 4.24.0 ["2022-06"](https://www.eclipse.org/downloads/packages/release/2022-06/r/eclipse-ide-eclipse-committers)
3. JDK 1.8 (Java SE 8), ideal is the SAPJVM 1.8: Go to [https://tools.eu1.hana.ondemand.com/#cloud](https://tools.eu1.hana.ondemand.com/#cloud), scroll down to `SAP JVM` select your operating System, extract the downloaded .zip into desired location (e.g. Windows `C:\Program Files\Java` 3. JDK 1.8 (Java SE 8), ideal is the SAPJVM 1.8: Go to [https://tools.eu1.hana.ondemand.com/#cloud](https://tools.eu1.hana.ondemand.com/#cloud), scroll down to `SAP JVM` select your operating System, extract the downloaded .zip into desired location (e.g. Windows `C:\Program Files\Java`. If you want to make this your default JDK, set the `JAVA_HOME` variable to it. In any case, set the `JAVA8_HOME` variable to it which is required by a few build scripts where certain steps currently are not yet compatible with newer JDK releases, such as our Android build process, keeping us on Gradle 6.0.1 for the time being which isn't Java 17-compatible.
4. Git (e.g. Git for Windows v2.18), [http://git-scm.com](http://git-scm.com) / [https://git-for-windows.github.io](https://git-for-windows.github.io) 4. Git (e.g. Git for Windows v2.18), [http://git-scm.com](http://git-scm.com) / [https://git-for-windows.github.io](https://git-for-windows.github.io)
5. Configure git (see [Git repository configuration essentials](#onboarding-information_sap-sailing-analytics-development-setup_git-repository-configuration-essentials)) 5. Configure git (see [Git repository configuration essentials](#onboarding-information_sap-sailing-analytics-development-setup_git-repository-configuration-essentials))
6. MongoDB (at least Release 4.4), download: [https://www.mongodb.com/](https://www.mongodb.com/) 6. MongoDB (at least Release 4.4), download: [https://www.mongodb.com/](https://www.mongodb.com/)