Skip to content

Commit 5424b69

Browse files
committed
added Gradle for egg9
1 parent 863b8fa commit 5424b69

21 files changed

+105
-64
lines changed

egg_9_sc_fan_in/client/README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,27 @@ Summary:
88
To Build:
99
---------
1010

11-
* tested with [this JDK](../../JDK.version.md)
12-
* Gradle does not yet support JDK 19 preview (as of NOV 2022). Check [here](https://docs.gradle.org/current/userguide/compatibility.html)
13-
* unknown if Maven can be used ¯\_(ツ)_
11+
* tested with [this jdk](../../JDK.version.md)
12+
* tested with [this version](../../Gradle.version.md) of Gradle
13+
* tested with [this version](../../Maven.version.md) of Maven
14+
15+
To Run (using Gradle):
16+
---------------------
17+
18+
* `./gradle-run.sh`
19+
20+
To Run (using Maven):
21+
---------------------
22+
23+
* `./mvn-run.sh`
24+
25+
To Run (using Bash):
26+
----------------------
27+
28+
* `./run.sh`
1429

1530
useful commands:
1631

1732
* `sdk env`
1833
- SDKMan! will set JDK to value in `.sdkmanrc`
19-
* `./clean.sh`
20-
* `./compile.sh`
21-
* `./run.sh`
22-
* note `./go.sh` does: clean, compile, run
34+
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"
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"
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_9_sc_fan_in/client/mvn-clean.sh

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

egg_9_sc_fan_in/client/mvn-compile.sh

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

egg_9_sc_fan_in/client/mvn-go.sh

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

egg_9_sc_fan_in/client/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"

egg_9_sc_fan_in/server/README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,27 @@ Build Notes:
1212
------------
1313

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

18-
To Build (using Maven):
18+
To Run (using Gradle):
1919
---------------------
2020

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

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

31+
* `./run.sh`
32+
2633
useful commands:
2734

2835
* `sdk env`
2936
- SDKMan! will set JDK to value in `.sdkmanrc`
30-
* `./clean.sh`
31-
* `./compile.sh`
32-
* `./run.sh`
33-
* note `./go.sh` is useful for clean-compile-run cycle
37+
3438

0 commit comments

Comments
 (0)