Skip to content

Commit 65eb0a9

Browse files
committed
Gradle 7.6-rc-1
1 parent e02720b commit 65eb0a9

File tree

17 files changed

+436
-31
lines changed

17 files changed

+436
-31
lines changed

.github/workflows/gradle_build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
name: Java build with Gradle
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches: [ "main" ]
8+
pull_request:
9+
branches: [ "main" ]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: get code
20+
uses: actions/checkout@v3
21+
22+
- name: Set up JDK 19
23+
uses: actions/setup-java@v3
24+
with:
25+
java-version: '19'
26+
distribution: 'adopt'
27+
28+
- name: Setup Gradle
29+
uses: gradle/gradle-build-action@v2
30+
31+
- name: run build script
32+
run: ./gradle-build-all.sh

.github/workflows/mvn_build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
name: Java CI with Maven
2+
name: Java build with Maven
33

44
on:
55
workflow_dispatch:
@@ -13,7 +13,6 @@ permissions:
1313

1414
jobs:
1515
build:
16-
1716
runs-on: ubuntu-latest
1817

1918
strategy:

build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
subprojects { def project ->
3+
4+
apply plugin: 'java'
5+
apply plugin: 'application'
6+
7+
compileJava {
8+
options.compilerArgs.addAll(['--release', '19'])
9+
options.compilerArgs.addAll(['--enable-preview'])
10+
options.compilerArgs.addAll(['--add-modules', 'jdk.incubator.concurrent'])
11+
}
12+
13+
application {
14+
applicationDefaultJvmArgs = ['--enable-preview',
15+
'--add-modules', 'jdk.incubator.concurrent']
16+
}
17+
18+
}

egg_1_max_p_threads/README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,28 @@ Build Notes:
1111
------------
1212

1313
* tested with [this jdk](../JDK.version.md)
14+
* tested with [this version](../Gradle.version.md) of Gradle
1415
* tested with [this version](../Maven.version.md) of Maven
15-
* 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):
17+
To Run (using Gradle):
1818
---------------------
1919

20-
* `./mvn-go.sh` will clean, compile, exec
20+
* `./gradle-run.sh`
21+
22+
To Run (using Maven):
23+
---------------------
24+
25+
* `./mvn-run.sh`
2126

2227
To Build (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_1_max_p_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_1_max_p_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_1_max_p_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_1_max_p_threads/mvn-clean.sh

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

egg_1_max_p_threads/mvn-compile.sh

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

0 commit comments

Comments
 (0)