Skip to content

Commit 90c9f2b

Browse files
committed
Gradle for egg5
1 parent c6fb314 commit 90c9f2b

File tree

12 files changed

+45
-33
lines changed

12 files changed

+45
-33
lines changed

egg_5_sc_invoke_all/README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,26 @@ Build Notes:
1313
------------
1414

1515
* tested with [this jdk](../JDK.version.md)
16+
* tested with [this version](../Gradle.version.md) of Gradle
1617
* tested with [this version](../Maven.version.md) of Maven
17-
* Gradle does not yet support JDK 19 preview (as of NOV 2022). Check [here](https://docs.gradle.org/current/userguide/compatibility.html)
1818

19-
To Build (using Maven):
19+
To Run (using Gradle):
2020
---------------------
2121

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

24-
To Build (using Bash):
24+
To Run (using Maven):
25+
---------------------
26+
27+
* `./mvn-run.sh`
28+
29+
To Run (using Bash):
2530
----------------------
2631

32+
* `./run.sh`
33+
2734
useful commands:
2835

2936
* `sdk env`
3037
- SDKMan! will set JDK to value in `.sdkmanrc`
31-
* `./clean.sh`
32-
* `./compile.sh`
33-
* `./run.sh`
34-
* note `./go.sh` is useful for clean-compile-run cycle
3538

egg_5_sc_invoke_all/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+
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_5_sc_invoke_all/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_5_sc_invoke_all/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_5_sc_invoke_all/mvn-clean.sh

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

egg_5_sc_invoke_all/mvn-compile.sh

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

egg_5_sc_invoke_all/mvn-go.sh

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

egg_5_sc_invoke_all/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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ set -e
1010

1111
./gradlew egg_4_virtual_exec:compileJava
1212

13-
# cd $MY_HOME/egg_5_sc_invoke_all
13+
./gradlew egg_5_sc_invoke_all:compileJava
14+
1415
# cd $MY_HOME/egg_6_sc_invoke_any
1516
# cd $MY_HOME/egg_7_sc_deadline
1617
# cd $MY_HOME/egg_8_sc_custom_invoke_some

0 commit comments

Comments
 (0)