Skip to content

Commit 5e853e3

Browse files
committed
Simplify recommended Gradle commands
1 parent ce3e792 commit 5e853e3

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

README.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ builds of the next OpenJDK.
4343
Code coverage using [JaCoCo] for the latest build is available on [Codecov].
4444

4545
A code coverage report can also be generated locally via the [Gradle Wrapper] by
46-
executing `gradlew -PenableJaCoCo clean jacocoRootReport`. The results will be available
46+
executing `./gradlew -PenableJaCoCo clean jacocoRootReport`. The results will be available
4747
in `build/reports/jacoco/jacocoRootReport/html/index.html`.
4848

4949
## Gradle Enterprise
@@ -65,23 +65,16 @@ task outputs from previous CI builds.
6565
You need [JDK 17] to build JUnit 5. [Gradle toolchains] are used to detect and
6666
potentially download additional JDKs for compilation and test execution.
6767

68-
All modules can be _built_ with the [Gradle Wrapper] using the following command.
68+
All modules can be _built_ and _tested_ with the [Gradle Wrapper] using the following command.
6969

70-
`gradlew clean assemble`
71-
72-
All modules can be _tested_ with the [Gradle Wrapper] using the following command.
73-
74-
`gradlew clean test`
75-
76-
Since Gradle has excellent incremental build support, you can usually omit executing the
77-
`clean` task.
70+
`./gradlew build`
7871

7972
## Installing in Local Maven Repository
8073

8174
All modules can be _installed_ with the [Gradle Wrapper] in a local Maven repository for
8275
consumption in other projects via the following command.
8376

84-
`gradlew clean publishToMavenLocal`
77+
`./gradlew publishToMavenLocal`
8578

8679
## Dependency Metadata
8780

@@ -100,7 +93,7 @@ See also <https://repo1.maven.org/maven2/org/junit/> for releases and
10093
[Gradle Wrapper]: https://docs.gradle.org/current/userguide/gradle_wrapper.html#sec:using_wrapper
10194
[JaCoCo]: https://www.eclemma.org/jacoco/
10295
[Javadoc]: https://junit.org/junit5/docs/current/api/
103-
[JDK 17]: https://adoptium.net/archive.html?variant=openjdk17&jvmVariant=hotspot
96+
[JDK 17]: https://foojay.io/almanac/java-17/
10497
[Release Notes]: https://junit.org/junit5/docs/current/release-notes/
10598
[Samples]: https://github.com/junit-team/junit5-samples
10699
[StackOverflow]: https://stackoverflow.com/questions/tagged/junit5

0 commit comments

Comments
 (0)