Skip to content

Commit 623d184

Browse files
committed
Gradle for egg 2
1 parent 5d215b8 commit 623d184

File tree

13 files changed

+45
-33
lines changed

13 files changed

+45
-33
lines changed

egg_1_max_p_threads/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To Run (using Maven):
2424

2525
* `./mvn-run.sh`
2626

27-
To Build (using Bash):
27+
To Run (using Bash):
2828
----------------------
2929

3030
* `./run.sh`

egg_2_max_v_threads/README.md

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

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

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

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

30+
* `./run.sh`
31+
2532
useful commands:
2633

2734
* `sdk env`
2835
- SDKMan! will set JDK to value in `.sdkmanrc`
29-
* `./clean.sh`
30-
* `./compile.sh`
31-
* `./run.sh`
32-
* note `./go.sh` is useful for clean-compile-run cycle
3336

3437
Flight Recorder (with Bash):
3538
----------------

egg_2_max_v_threads/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_2_max_v_threads/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_2_max_v_threads/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_2_max_v_threads/mvn-clean.sh

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

egg_2_max_v_threads/mvn-compile.sh

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

egg_2_max_v_threads/mvn-go.sh

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

egg_2_max_v_threads/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"

0 commit comments

Comments
 (0)