Skip to content

Commit f9be0d9

Browse files
committed
Move java-hello-world-maven to clouds/native-oci-cloud-shell
1 parent d87389b commit f9be0d9

File tree

6 files changed

+14
-17
lines changed

6 files changed

+14
-17
lines changed

.github/workflows/java-hello-world-maven.yml renamed to .github/workflows/clouds-native-oci-cloud-shell.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
1-
name: java-hello-world-maven
1+
name: clouds/native-oci-cloud-shell
22
on:
33
push:
44
paths:
5-
- 'java-hello-world-maven/**'
6-
- '.github/workflows/java-hello-world-maven.yml'
7-
# pull_request: (requires EE, which is unavailable in PRs)
5+
- 'clouds/native-oci-cloud-shell/**'
6+
- '.github/workflows/clouds-native-oci-cloud-shell.yml'
87
schedule:
98
- cron: "0 0 1 * *" # run every month
109
workflow_dispatch:
1110
permissions:
1211
contents: read
1312
jobs:
1413
run:
15-
name: Run 'java-hello-world-maven'
14+
name: Run 'clouds/native-oci-cloud-shell'
1615
runs-on: ubuntu-latest
1716
timeout-minutes: 15
1817
steps:
1918
- uses: actions/checkout@v4
2019
- uses: graalvm/setup-graalvm@v1
2120
with:
22-
java-version: '21.0.2'
21+
java-version: '21'
2322
distribution: 'graalvm'
2423
github-token: ${{ secrets.GITHUB_TOKEN }}
2524
cache: 'maven'
2625
native-image-job-reports: 'true'
27-
- name: Run 'java-hello-world-maven'
26+
- name: Run 'clouds/native-oci-cloud-shell'
2827
run: |
29-
cd java-hello-world-maven
28+
cd clouds/native-oci-cloud-shell
3029
mvn --no-transfer-progress clean package
3130
java -jar target/my-app-1.0-SNAPSHOT.jar
3231
mvn --no-transfer-progress clean -Pnative -DskipTests package

java-hello-world-maven/README-Cloud-Shell.md renamed to clouds/native-oci-cloud-shell/README-Cloud-Shell.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Oracle GraalVM is available for use on Oracle Cloud Infrastructure (OCI) at no a
1010

1111
## What is Cloud Shell?
1212

13-
[Cloud Shell](https://www.oracle.com/devops/cloud-shell/) is a free-to-use browser-based terminal accessible from the Oracle Cloud Console. It provides access to a Linux shell with preinstalled developer tools and a preauthenticated OCI CLI. You can use the shell to interact with OCI resources, follow labs and tutorials, and quickly run utility commands.
13+
[Cloud Shell](https://www.oracle.com/devops/cloud-shell/) is a free-to-use browser-based terminal accessible from the Oracle Cloud Console. It provides access to a Linux shell with preinstalled developer tools and a pre-authenticated OCI CLI. You can use the shell to interact with OCI resources, follow labs and tutorials, and quickly run utility commands.
1414

1515
Oracle GraalVM for JDK 17 (with Native Image) is preinstalled in Cloud Shell, so you don’t have to install and configure a development machine to get started.
1616

@@ -50,7 +50,6 @@ Oracle GraalVM for JDK 17 (with Native Image) is preinstalled in Cloud Shell, so
5050

5151
This step is optional - [Check software version and environment variables](../_common/README-check-version-env-vars.md)
5252

53-
5453
## Step 4: Set up your project, build and run as a JAR
5554

5655
1. Git clone this example.
@@ -69,7 +68,6 @@ This step is optional - [Check software version and environment variables](../_c
6968
git pull --depth=1 origin master
7069
7170
cd java-hello-world-maven
72-
7371
```
7472

7573
2. Build a JAR file for the example app.
@@ -78,7 +76,7 @@ This step is optional - [Check software version and environment variables](../_c
7876
mvn clean package
7977
```
8078

81-
3. Run the JAR using:
79+
3. Run the JAR:
8280

8381
```shell
8482
java -jar target/my-app-1.0-SNAPSHOT.jar
@@ -148,3 +146,5 @@ You will notice the `Quick Build` mode reduces the time required to generate a n
148146
```text
149147
Hello World!
150148
```
149+
150+
Learn how to start using Oracle GraalVM with other OCI services at [docs.oracle.com](https://docs.oracle.com/en/graalvm/jdk/23/docs/getting-started/oci/).

java-hello-world-maven/pom.xml renamed to clouds/native-oci-cloud-shell/pom.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<maven.compiler.source>17</maven.compiler.source>
1818
<maven.compiler.target>17</maven.compiler.target>
1919
<maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
20-
<native.maven.plugin.version>0.9.28</native.maven.plugin.version>
20+
<native.maven.plugin.version>0.10.3</native.maven.plugin.version>
2121
</properties>
2222

2323
<dependencies>
@@ -43,8 +43,7 @@
4343
</manifest>
4444
</archive>
4545
</configuration>
46-
</plugin>
47-
46+
</plugin>
4847
</plugins>
4948
</pluginManagement>
5049
</build>
@@ -78,13 +77,12 @@
7877
<configuration>
7978
<imageName>my-app</imageName>
8079
<verbose>true</verbose>
81-
<!-- For Quick Build (22.1+) -->
8280
<!-- <quickBuild>true</quickBuild> -->
8381
<buildArgs>
8482
<buildArg>-H:+ReportExceptionStackTraces</buildArg>
8583
<!-- For mostly static native image (only on Linux AMD64 systems) -->
8684
<!-- <buildArg>-H:+StaticExecutableWithDynamicLibC</buildArg> -->
87-
<!-- To generate the Native Image build output JSON (22.3+) -->
85+
<!-- To generate the Native Image build output JSON -->
8886
<!-- <buildArg>-H:BuildOutputJSONFile=build.json</buildArg> -->
8987
</buildArgs>
9088
</configuration>

0 commit comments

Comments
 (0)