Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.69 KB

File metadata and controls

36 lines (27 loc) · 1.69 KB

cron-utils

cron-utils is a Java library to define, parse, validate, and migrate crons. The project follows the Semantic Versioning Convention, provides OSGi metadata, and uses the Apache 2.0 license.

Modules

The project is structured into several modules to separate core logic from niche features:

Download

Available on Maven Central:

<dependency>
    <groupId>io.github.projectunified</groupId>
    <artifactId>cron-utils-core</artifactId>
    <version>9.2.2-SNAPSHOT</version>
</dependency>

Features

  • Define Arbitrary Crons: Define your own cron format with custom fields and constraints.
  • Predefined Definitions: Unix, Cron4j, Quartz, and Spring definitions provided out-of-the-box.
  • Execution Time: Calculate last/next execution time, duration from/to execution.
  • Cron Builder: Decouple cron creation from specific providers.
  • Validation: Validate cron strings against definitions or via Bean Validation.
  • Migration: Map crons between different definitions (e.g., Quartz to Cron4j).
  • Human Readable: Describe crons in multiple languages (English, German, Chinese, etc.).