Skip to content

Commit 58aef42

Browse files
committed
Gradle for egg7
1 parent 7b014cf commit 58aef42

File tree

12 files changed

+44
-32
lines changed

12 files changed

+44
-32
lines changed

egg_7_sc_deadline/README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,26 @@ 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

egg_7_sc_deadline/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_7_sc_deadline/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_7_sc_deadline/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_7_sc_deadline/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_7_sc_deadline/mvn-clean.sh

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

egg_7_sc_deadline/mvn-compile.sh

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

egg_7_sc_deadline/mvn-go.sh

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

egg_7_sc_deadline/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
@@ -14,7 +14,8 @@ set -e
1414

1515
./gradlew egg_6_sc_invoke_any:compileJava
1616

17-
# cd $MY_HOME/egg_7_sc_deadline
17+
./gradlew egg_7_sc_deadline:compileJava
18+
1819
# cd $MY_HOME/egg_8_sc_custom_invoke_some
1920
# cd $MY_HOME/egg_9_sc_fan_in/client
2021
# cd $MY_HOME/egg_9_sc_fan_in/server

0 commit comments

Comments
 (0)