-
Notifications
You must be signed in to change notification settings - Fork 2.7k
test: update and document java requirements for gradle #5435
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
Changes from 10 commits
ed60a2b
bd035f1
4449909
acacd2b
b35efd5
76dcb5a
7f8002a
8f2ae61
724f190
848ff27
db1b940
56eea39
8e392ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,16 +15,20 @@ and `exports`. We will transpile them to `commonjs` on build. | |
|
||
#### Prerequisites | ||
|
||
For local development some dependencies are required. | ||
For local development some dependencies are required: | ||
|
||
- git | ||
- nodejs `^10.13.0 || ^12.0.0` | ||
- yarn `^1.17.0` | ||
- c++ compiler | ||
- python `^2.7` with `mock` library | ||
- java between `8` and `12` | ||
|
||
Python 2.7 is required in development in order to support installing with `node-gyp`, which does not yet support Python 3. `mock` is used by Renovate in production and is now part of the Python standard library, but only from 3.3 onwards. | ||
|
||
Java is required to execute Gradle in tests. | ||
If you don’t have Java installed, the respective tests will be skipped. | ||
|
||
_Linux_ | ||
|
||
You can use the following commands for `Ubuntu`. | ||
|
@@ -34,9 +38,11 @@ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | ||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | ||
sudo apt-get update | ||
sudo apt-get install -y git python-minimal build-essential nodejs yarn | ||
sudo apt-get install -y git python-minimal build-essential nodejs yarn openjdk-11-jdk | ||
jGleitz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
|
||
You can also use [SDKMAN](https://sdkman.io/) to manage Java versions. | ||
|
||
_Windows_ | ||
|
||
The following steps work to set up a brand new Windows 10 installation for developing Renovate. If you already have some components installed, you can naturally skip them. | ||
|
@@ -46,11 +52,11 @@ The following steps work to set up a brand new Windows 10 installation for devel | |
- In an Administrator PowerShell prompt, run `npm install -global npm` and then `npm --add-python-to-path='true' --debug install --global windows-build-tools` | ||
- Install [Yarn](https://yarnpkg.com/lang/en/docs/install/#windows-stable) | ||
- Install `mock` for Python: | ||
|
||
- `curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py` | ||
- `python get-pip.py` | ||
- `rm get-pip.py` | ||
- `python -m pip install mock` | ||
- Install [Java](https://adoptopenjdk.net/?variant=openjdk11) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we should only specify to install latest java tls? eg adoptjdk, openjdk or any other compatible. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure what you are suggesting. The text only says “Install Java”. I linked to one specific distribution of Java for those people that are not familiar with the discussion of different Java distributions. If your comment is about the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Link to adopt is ok, we should just mention that the user can also use another compatible jdk There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still don’t get, we also give - Install Java, e.g. from [AdoptOpenJDK](https://adoptopenjdk.net/?variant=openjdk11) or any other distribution Is that alright? |
||
|
||
Verify you have everything installed with appropriate versions, e.g.: | ||
|
||
|
@@ -65,6 +71,10 @@ The following steps work to set up a brand new Windows 10 installation for devel | |
Python 2.7.16 | ||
PS C:\Windows\system32> python -c "import mock; print(mock.__version__)" | ||
3.0.5 | ||
PS C:\Windows\system32> java -version | ||
openjdk version "11.0.6" 2020-01-14 | ||
OpenJDK Runtime Environment 18.9 (build 11.0.6+10) | ||
OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10, mixed mode) | ||
``` | ||
|
||
#### Fork and Clone | ||
|
Uh oh!
There was an error while loading. Please reload this page.