Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit d87c8c6

Browse files
Rename the template to Java 11
Signed-off-by: Jinbo Wang <[email protected]>
1 parent 5b27162 commit d87c8c6

File tree

17 files changed

+38
-29
lines changed

17 files changed

+38
-29
lines changed

containers/java-11-maven/.devcontainer/Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

containers/java-11-maven/.devcontainer/devcontainer.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#-----------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See LICENSE in the project root for license information.
4+
#-----------------------------------------------------------------------------------------
5+
6+
FROM maven:3-jdk-11
7+
8+
# Install git, process tools
9+
RUN apt-get update && apt-get -y install git procps curl
10+
11+
# Install Gradle
12+
ENV GRADLE_HOME /opt/gradle
13+
ENV GRADLE_VERSION 5.4
14+
ARG GRADLE_DOWNLOAD_SHA256=c8c17574245ecee9ed7fe4f6b593b696d1692d1adbfef425bef9b333e3a0e8de
15+
RUN curl -SL --output gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \
16+
&& echo "${GRADLE_DOWNLOAD_SHA256} *gradle.zip" | sha256sum --check - \
17+
&& unzip gradle.zip \
18+
&& rm gradle.zip \
19+
&& mv "gradle-${GRADLE_VERSION}" "${GRADLE_HOME}/" \
20+
&& ln -s "${GRADLE_HOME}/bin/gradlec" /usr/bin/gradle
21+
22+
# Clean up
23+
RUN apt-get autoremove -y \
24+
&& apt-get clean -y \
25+
&& rm -rf /var/lib/apt/lists/*
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "Java 11",
3+
"dockerFile": "Dockerfile",
4+
"extensions": [
5+
"vscjava.vscode-java-pack"
6+
]
7+
}
File renamed without changes.
File renamed without changes.

containers/java-11-maven/README.md renamed to containers/java-11/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Java 11 & Maven
1+
# Java 11
22

33
## Summary
44

5-
*Develop Java applications. Includes the JDK 11, XML tools, along with any dependencies Maven requires.*
5+
*Develop Java applications. Includes the JDK 11, Maven and Gradle build tools.*
66

77
| Metadata | Value |
88
|----------|-------|
99
| *Contributors* | The VS Code Java Team |
1010
| *Definition type* | Dockerfile |
11-
| *Languages, platforms* | Java, Maven |
11+
| *Languages, platforms* | Java, Maven, Gradle |
1212

1313
## Using this definition with an existing folder
1414

@@ -25,11 +25,11 @@ Beyond that, just follow these steps to use the definition:
2525
2. To use VS Code's copy of this definition:
2626
1. Start VS Code and open your project folder.
2727
2. Press <kbd>F1</kbd> select and **Remote-Containers: Create Container Configuration File...** from the command palette.
28-
3. Select the Java 11 & Maven definition.
28+
3. Select the Java 11 definition.
2929

3030
3. To use latest-and-greatest copy of this definition from the repository:
3131
1. Clone this repository.
32-
2. Copy the contents of `containers/java-11-maven/.devcontainer` to the root of your project folder.
32+
2. Copy the contents of `containers/java-11/.devcontainer` to the root of your project folder.
3333
3. Start VS Code and open your project folder.
3434

3535
4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs.
@@ -43,7 +43,7 @@ This definition includes some test code that will help you verify it is working
4343
1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started) to set up your machine.
4444
2. Clone this repository.
4545
3. Start VS Code, press <kbd>F1</kbd>, and select **Remote-Containers: Open Folder in Container...**
46-
4. Select the `containers/java-11-maven` folder.
46+
4. Select the `containers/java-11` folder.
4747
5. After the folder has opened in the container, press <kbd>F5</kbd> to start the project.
4848
6. You should see "Hello Remote World!" in the a Debug Console after the program executes.
4949
7. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)