Skip to content

Commit

Permalink
docs: why java 11?
Browse files Browse the repository at this point in the history
  • Loading branch information
r0bb3n committed Apr 25, 2021
1 parent 035c886 commit c09a5db
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ There a three modes supported:
## Prerequisites

* Java 11
* see section [Why Java 11?](#why-java-11) for details
* SonarQube (depends on mode)
* integrated: 5.3+
* simple: 5.4+
Expand Down Expand Up @@ -77,10 +78,19 @@ mvn sonar-quality-gate:check -Dsonar-quality-gate.branch=develop
| `sonar-quality-gate.checkTask.interval.s` | How many seconds to wait between two requests when retrieving task details<br>(default: `5`) | integrated |

[sonar-analysis-param]: https://docs.sonarqube.org/latest/analysis/analysis-parameters/

[sonar-web-api-auth]: https://docs.sonarqube.org/latest/extend/web-api/

## Internals

### Why Java 11?

**TL;DR** usage of HttpClient (`java.net.http.HttpClient`)

Thinking about also supporting Java 8 led to the conclusion, that this would require relying on at least one additional
dependency (to maintain) for HTTP calls (e.g. Apache HttpClient), which is solved out-of-the-box in Java 11+ by simply
using `java.net.http.HttpClient`. Therefore, I decided to not support Java 8.

### Calling SonarQube Web API

#### Project Status
Expand Down

0 comments on commit c09a5db

Please sign in to comment.