https://github.com/hermippus/java-stream-api-example
Java StreamAPI example
https://github.com/hermippus/java-stream-api-example
java stream-api
Last synced: 10 months ago
JSON representation
Java StreamAPI example
- Host: GitHub
- URL: https://github.com/hermippus/java-stream-api-example
- Owner: hermippus
- License: gpl-3.0
- Created: 2025-01-18T15:54:48.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-19T15:59:42.000Z (12 months ago)
- Last Synced: 2025-02-03T09:57:55.898Z (11 months ago)
- Topics: java, stream-api
- Language: Java
- Homepage:
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Java StreamAPI example
## Tech stack:
* GraalVM 21
* Lombok
* Gradle
## Requirements
* GraalVM 21
## Build setup
### Jenkins
To set up continuous integration with Jenkins, use the `Jenkinsfile` located in the root of the project. Jenkins will
automatically detect and use this file when you configure your Jenkins job with the "Pipeline from SCM" option. This
will trigger the pipeline to build the project and create the `stream-api` native image
### GitHub Actions
To set up continuous integration with GitHub Actions, use the `.github/workflows/gradle.yml` file located in the root of
the repository. This file defines the steps required to build the project and create the `stream-api` native image
GitHub Actions will automatically detect and use this workflow when you push code to the repository. It will trigger the
defined steps, including setting up the environment, installing dependencies, and running the Gradle build tasks to
create the `stream-api` native image
### Manual
To manually build the project, follow these steps:
```bash
# clone the repository
$ git clone https://github.com/hermippus/java-stream-api-example
# navigate to the project directory
$ cd java-stream-api-example
# build with Gradle (Jar)
$ ./gradlew build
# build with Gradle (Native Image)
$ ./gradlew nativeCompile
```
The jar file is located in `build/libs/`
The native image is located in `build/native/nativeCompile/`