Skip to content

Commit ec61ce8

Browse files
committed
Gradle for egg3
1 parent 623d184 commit ec61ce8

File tree

12 files changed

+43
-31
lines changed

12 files changed

+43
-31
lines changed

egg_3_legacy_exec/README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,25 @@ Build Notes:
1111
* tested with [this version](../Maven.version.md) of Maven
1212
* Gradle does not yet support JDK 19 preview (as of NOV 2022). Check [here](https://docs.gradle.org/current/userguide/compatibility.html)
1313

14-
To Build (using Maven):
14+
To Run (using Gradle):
1515
---------------------
1616

17-
* `./mvn-go.sh` will clean, compile, exec
17+
* `./gradle-run.sh`
1818

19-
To Build (using Bash):
19+
To Run (using Maven):
20+
---------------------
21+
22+
* `./mvn-run.sh`
23+
24+
To Run (using Bash):
2025
----------------------
2126

27+
* `./run.sh`
28+
2229
useful commands:
2330

2431
* `sdk env`
2532
- SDKMan! will set JDK to value in `.sdkmanrc`
26-
* `./clean.sh`
27-
* `./compile.sh`
28-
* `./run.sh`
29-
* note `./go.sh` is useful for clean-compile-run cycle
3033

3134
Flight Recorder (with Bash):
3235
----------------

egg_3_legacy_exec/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
mainClassName = "net.codetojoy.Runner"
3+

egg_3_legacy_exec/gradle-build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
../gradlew compileJava
6+
7+
echo "run complete"

egg_3_legacy_exec/gradle-run.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
../gradlew run
6+
7+
echo "run complete"

egg_3_legacy_exec/mvn-build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
mvn install
6+
mvn clean
7+
mvn compile
8+
9+
echo "run complete"

egg_3_legacy_exec/mvn-clean.sh

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

egg_3_legacy_exec/mvn-compile.sh

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

egg_3_legacy_exec/mvn-go.sh

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

egg_3_legacy_exec/mvn-run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -e
44

5+
mvn install
6+
mvn clean
7+
mvn compile
58
mvn exec:exec
69

710
echo "run complete"

gradle-build-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e
66

77
./gradlew egg_2_max_v_threads:compileJava
88

9-
# cd $MY_HOME/egg_3_legacy_exec
9+
./gradlew egg_3_legacy_exec:compileJava
1010

1111
# cd $MY_HOME/egg_4_virtual_exec
1212

0 commit comments

Comments
 (0)