Skip to content

Commit

Permalink
Remove JAVA_HOME env check because it is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-bauer committed Sep 17, 2020
1 parent 9285940 commit 02cf383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ For more information, please see http://github.com/dirkriehle/wahlzeit and http:
- Install **Java JDK** 8 or higher. We recommended you to use Java JDK 11.
- An easy way to manage Java JDKs and JREs is by using [SDKMAN](https://sdkman.io/). With SDKMAN you can install the Java SDK with the following command:
`sdk install java 11.0.8.j9-adpt`
- Ensure `JAVA_HOME` environment variable is set.
- Ensure `java -version` can be executed from the command line.
- [optional] Install [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/) to use the container deployment option.
- Create your own repository by forking Wahlzeit from **dirkriehle** to your GitHub-account.

Expand Down Expand Up @@ -84,4 +84,4 @@ In IntelliJ IDEA:
Go to GitHub settings and navigate to `Developer settings` -> `Personal Access Tokens`.
Generate new personal access token (PAT) with privileges `repo`, `write:packages`, and `read:packages`.

Every tagged commit starting with `adap-cw` will publish and overwrite the `wahlzeit:{tag-name}` image.
Every tagged commit starting with `adap-cw` will publish and overwrite the `wahlzeit:{tag-name}` image.
11 changes: 0 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,6 @@ dependencies {
testImplementation 'junit:junit:4.12'
}

gradle.taskGraph.whenReady {
// check if JAVA_HOME is set, otherwise build tasks will fail
graph ->
if (System.env.'JAVA_HOME' == null) {
throw new GradleException("JAVA_HOME not set!")
}
else {
println "JAVA_HOME = " + System.env.'JAVA_HOME'
}
}

test {
filter {
includeTestsMatching "org.wahlzeit.*"
Expand Down

0 comments on commit 02cf383

Please sign in to comment.