프로젝트
GitHub에서 보기
kousen/java_8_recipes
소개
O'Reilly의 『Modern Java Recipes』 도서 소스 코드입니다.
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalJava 8 Recipes
Source code for Modern Java Recipes (O'Reilly, 2017)
http://shop.oreilly.com/product/0636920056669.do
Project Status
This project has been modernized and updated with the latest tooling:
- Java 17 (using Gradle toolchain support)
- Gradle 8.14.2 (latest stable)
- JUnit 5.13.2 (migrated from JUnit 4, using BOM management)
- Modern build configuration with dependency management
Requirements
- Java 17 or later (automatically managed by Gradle toolchain)
- No additional setup required - Gradle wrapper handles everything
Quick Start
# Clone the repository
git clone <repository-url>
cd java_8_recipes
# Run tests
./gradlew test
# Build the project
./gradlew build
IDE Setup
IntelliJ IDEA
- Clone repo or download zip and extract
- Use
File -> Openor if no project is open,Import - Navigate to the
build.gradlefile inside the project - Click enter and accept all the defaults
- IntelliJ will automatically configure the project with Java 17
Eclipse (and Eclipse-based tools, like STS)
- Open a command prompt in the root of the project
- Type
./gradlew cleanEclipse eclipse(Unix/Mac) orgradlew cleanEclipse eclipse(Windows) - Wait for the dependencies to be downloaded
- Choose
File -> Import… -> General -> Existing Projects into Workspace - Navigate to the root of the project and select it
Testing
All tests have been migrated to JUnit 5 and use modern testing patterns:
# Run all tests
./gradlew test
# Run tests with detailed output
./gradlew test --info
# Run specific test class
./gradlew test --tests "concurrency.CompletableFutureTests"
Project Structure
The project contains examples and tests for Java 8+ features including:
- Concurrency: CompletableFuture, parallel streams
- Streams: Operations, collectors, patterns
- Optional: Usage patterns and best practices
- Date/Time: Modern java.time API
- Lambdas: Functional programming patterns
- Collectors: Custom and built-in collectors
Recent Updates
- Upgraded from Gradle 7.5.1 to 8.14.2
- Migrated from Java 11 to Java 17 (using toolchain)
- Complete migration from JUnit 4 to JUnit 5
- Modernized dependency management with version catalogs
- Removed deprecated JUnit vintage engine dependency
관련 프로젝트 살펴보기
불러오는 중…