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

Commit

Permalink
Rename the template title to Java 12
Browse files Browse the repository at this point in the history
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
  • Loading branch information
testforstephen committed Apr 25, 2019
1 parent ab26279 commit 25bc9fb
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 27 deletions.
12 changes: 0 additions & 12 deletions containers/java-12-maven/.devcontainer/Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions containers/java-12-maven/.devcontainer/devcontainer.json

This file was deleted.

23 changes: 23 additions & 0 deletions containers/java-12/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#-----------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root for license information.
#-----------------------------------------------------------------------------------------

FROM maven:3-jdk-12

# Install git, process tools
RUN yum update -y && yum install -y git procps unzip

# Install Gradle
ENV GRADLE_HOME /opt/gradle
ENV GRADLE_VERSION 5.4
ARG GRADLE_DOWNLOAD_SHA256=c8c17574245ecee9ed7fe4f6b593b696d1692d1adbfef425bef9b333e3a0e8de
RUN curl -SL --output gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \
&& echo "${GRADLE_DOWNLOAD_SHA256} *gradle.zip" | sha256sum --check - \
&& unzip gradle.zip \
&& rm gradle.zip \
&& mv "gradle-${GRADLE_VERSION}" "${GRADLE_HOME}/" \
&& ln -s "${GRADLE_HOME}/bin/gradlec" /usr/bin/gradle

# Clean yum cache
RUN yum clean all
7 changes: 7 additions & 0 deletions containers/java-12/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Java 12",
"dockerFile": "Dockerfile",
"extensions": [
"vscjava.vscode-java-pack"
]
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Java 12 & Maven
# Java 12

## Summary

*Develop Java applications. Includes the JDK 12, XML tools, along with any dependencies Maven requires.*
*Develop Java applications. Includes the JDK 12, Maven and Gradle build tools.*

| Metadata | Value |
|----------|-------|
| *Contributors* | The VS Code Java Team |
| *Definition type* | Dockerfile |
| *Languages, platforms* | Java, Maven |
| *Languages, platforms* | Java, Maven, Gradle |

## Using this definition with an existing folder

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

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

4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs.
Expand All @@ -43,9 +43,9 @@ This definition includes some test code that will help you verify it is working
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.
2. Clone this repository.
3. Start VS Code, press <kbd>F1</kbd>, and select **Remote-Containers: Open Folder in Container...**
4. Select the `containers/java-12-maven` folder.
4. Select the `containers/java-12` folder.
5. After the folder has opened in the container, press <kbd>F5</kbd> to start the project.
6. You should see "Hello Weekday" in the a Debug Console after the program executes.
6. You should see "Hello Weekday" in the Debug Console after the program executes.
7. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing.

## License
Expand Down

0 comments on commit 25bc9fb

Please sign in to comment.