Skip to content

Commit a42f412

Browse files
authored
Update java.md
1 parent c2d5b05 commit a42f412

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

user/languages/java.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
title: Building a Java project
2+
title: Build a Java project
33
layout: en
44

55
---
66

7-
### What This Guide Covers
87

98
<aside markdown="block" class="ataglance">
109

@@ -32,7 +31,7 @@ new to Travis CI, please read our [Onboarding](/user/onboarding/) and
3231
## Overview
3332
3433
The Travis CI environment contains various versions of OpenJDK,
35-
Gradle, Maven and Ant.
34+
Gradle, Maven, and Ant.
3635
3736
To use the Java environment, add the following to your `.travis.yml`:
3837

@@ -41,7 +40,7 @@ language: java
4140
```
4241
{: data-file=".travis.yml"}
4342

44-
## Projects Using Maven
43+
## Maven Projects
4544

4645
### Maven Dependency Management
4746

@@ -83,7 +82,7 @@ Travis CI uses that instead:
8382

8483
To use a different `script` command, customize the [build step](/user/job-lifecycle/#customizing-the-build-phase).
8584

86-
## Projects Using Gradle
85+
## Gradle Projects
8786

8887
### Gradle Dependency Management
8988

@@ -138,7 +137,7 @@ cache:
138137

139138
> Note that if you use Gradle with `sudo` (i.e. `sudo ./gradlew assemble`), the caching configuration above will have no effect, since the depencencies will be in `/root/.gradle` which the `travis` user account does not have write access to.
140139

141-
## Projects Using Ant
140+
## Ant Projects
142141

143142
### Ant Dependency Management
144143

@@ -162,7 +161,7 @@ ant test
162161

163162
To use a different `script` command, customize the [build step](/user/job-lifecycle/#customizing-the-build-phase).
164163

165-
### Using Ant on Ubuntu Xenial (16.04)
164+
### Use Ant on Ubuntu Xenial (16.04)
166165

167166
Unfortunately, `ant` currently doesn't come pre-installed on our Xenial image. You'll need to install it manually by adding the following recipe to your .travis.yml file:
168167

@@ -188,7 +187,7 @@ The list of available JVMs for different dists are at
188187
* [JDKs installed for **Trusty**](/user/reference/trusty/#jvm-clojure-groovy-java-scala-images)
189188
* [JDKs installed for **Precise**](/user/reference/precise/#jvm-clojure-groovy-java-scala-vm-images)
190189

191-
### Switching JDKs (Java 8 and below) Within One Job
190+
### Switch JDKs (Java 8 and lower) within one Job
192191

193192
If your build needs to switch JDKs (Java 8 and below) during a job, you can do so with
194193
[`jdk_switcher`](https://github.com/michaelklishin/jdk_switcher#what-jdk-switcher-is).
@@ -202,14 +201,14 @@ script:
202201

203202
Use of `jdk_switcher` also updates `$JAVA_HOME` appropriately.
204203

205-
## Using Java 10 and later
204+
## Use Java 10 and higher
206205

207206
> Take note that `oraclejdk10` is EOL since October 2018 and as such it's not supported anymore on Travis CI.
208207
> See [https://www.oracle.com/technetwork/java/javase/eol-135779.html](https://www.oracle.com/technetwork/java/javase/eol-135779.html){: data-proofer-ignore=""}.
209208
>
210209
> `openjdk` is now the default jdk available on our VMs as `install-jdk` no longer installs `oraclejdk`. Please see this [Github Issue](https://github.com/sormuras/bach/issues/56) for context.
211210

212-
### Switching JDKs (to Java 10 and up) Within One Job
211+
### Switch JDKs (to Java 10 and higher) within one Job
213212

214213
If your build needs to switch JDKs (Java 10 and up) during a job, you can do so with
215214
[`install-jdk.sh`](https://sormuras.github.io/blog/2017-12-08-install-jdk-on-travis.html).

0 commit comments

Comments
 (0)