Skip to content

Commit 7b014cf

Browse files
committed
Gradle for egg6
1 parent 90c9f2b commit 7b014cf

File tree

12 files changed

+45
-33
lines changed

12 files changed

+45
-33
lines changed

egg_6_sc_invoke_any/README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,27 @@ Build Notes:
99
------------
1010

1111
* tested with [this jdk](../JDK.version.md)
12+
* tested with [this version](../Gradle.version.md) of Gradle
1213
* tested with [this version](../Maven.version.md) of Maven
13-
* Gradle does not yet support JDK 19 preview (as of NOV 2022). Check [here](https://docs.gradle.org/current/userguide/compatibility.html)
1414

15-
To Build (using Maven):
15+
To Run (using Gradle):
1616
---------------------
1717

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

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

28+
* `./run.sh`
29+
2330
useful commands:
2431

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

3235

egg_6_sc_invoke_any/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_6_sc_invoke_any/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_6_sc_invoke_any/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_6_sc_invoke_any/mvn-clean.sh

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

egg_6_sc_invoke_any/mvn-compile.sh

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

egg_6_sc_invoke_any/mvn-go.sh

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

egg_6_sc_invoke_any/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
@@ -12,7 +12,8 @@ set -e
1212

1313
./gradlew egg_5_sc_invoke_all:compileJava
1414

15-
# cd $MY_HOME/egg_6_sc_invoke_any
15+
./gradlew egg_6_sc_invoke_any:compileJava
16+
1617
# cd $MY_HOME/egg_7_sc_deadline
1718
# cd $MY_HOME/egg_8_sc_custom_invoke_some
1819
# cd $MY_HOME/egg_9_sc_fan_in/client

0 commit comments

Comments
 (0)