File tree Expand file tree Collapse file tree
src/main/java/language/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build with Gradle
2+
3+ on :
4+ push :
5+ branches : [ 'main' ]
6+ pull_request :
7+ branches : [ 'main' ]
8+
9+ permissions :
10+ contents : read
11+
12+ env :
13+ JAVA_VERSION : ' 23'
14+ JAVA_DISTRIBUTION : ' temurin'
15+
16+ jobs :
17+ build :
18+ name : Build and test application
19+ runs-on : ubuntu-24.04
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v6
23+
24+ - name : Setup Java
25+ uses : actions/setup-java@v5
26+ with :
27+ java-version : ${{ env.JAVA_VERSION }}
28+ distribution : ${{ env.JAVA_DISTRIBUTION }}
29+
30+ - name : Setup Gradle
31+ uses : gradle/actions/setup-gradle@v5
32+
33+ - name : Build and Test
34+ run : ./gradlew test
Original file line number Diff line number Diff line change 11# Un template d'Application en Ligne de Commande (CLI) avec Java 23 et les JEP 458 et 477
22
3+ [ ![ Classic Build] ( https://github.com/java-cli-apps/java-23-quickstart/actions/workflows/build.yml/badge.svg )] ( https://github.com/java-cli-apps/java-23-quickstart/actions/workflows/build.yml )
4+
35Le template ** java-23-quickstart** permet de démarrer une nouvelle application en commande ligne avec Java et Gradle.
46
57Ce template nécessite d'utiliser Java 23 ou une version supérieure car il utilise les JEPs suivantes :
Original file line number Diff line number Diff line change 55
66public interface Greeting {
77
8- enum Language {
8+ enum Language {
99 French , English
1010 }
1111
You can’t perform that action at this time.
0 commit comments