Skip to content

Commit c970595

Browse files
authored
Merge branch 'jmrozanec:master' into master
2 parents 066b19d + 6824174 commit c970595

169 files changed

Lines changed: 1975 additions & 1595 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/maven-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,18 @@ on:
1616
jobs:
1717
build:
1818

19+
strategy:
20+
matrix:
21+
java: [ '8', '11', '16' ]
22+
1923
runs-on: ubuntu-latest
2024

2125
steps:
2226
- uses: actions/checkout@v2
2327
- name: Set up JDK 1.8
2428
uses: actions/setup-java@v1
2529
with:
26-
java-version: 1.8
30+
java-version: ${{ matrix.java }}
2731

2832
- name: compile and test
2933
run: mvn compile test --file pom.xml

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ bin/
1818
*.log
1919
.DS_Store
2020
.idea
21+
notes.md

.travis.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@ before_install: "git clone -b travis `git config --get remote.origin.url` target
1515
addons:
1616
sonarcloud:
1717
organization: "jmrozanec-github"
18-
token:
19-
secure: "ZmVdpiC5ivHP72R7NZsv3s9XM9WuZQ//psUbpxJf+HLJGes+dAUppkiIBBICLwGstCCdyfTx1XaW56Gh2zTohrNBhv2S7OmrWwp8+o+dCIb1k6B4PsQ3b6h5bplcorAItMstoBZB8EowG875QENwlrZuB/qBHGy61vgERiNzPgA="
2018
script:
2119
- >
2220
if [ "$TRAVIS_PULL_REQUEST" != "false" ];then
23-
mvn org.jacoco:jacoco-maven-plugin:prepare-agent package --settings target/travis/settings.xml -Dsettings.security=target/travis/settings-security.xml -Dmaven.javadoc.skip=true;
21+
mvn jacoco:prepare-agent install jacoco:report package --settings target/travis/settings.xml -Dsettings.security=target/travis/settings-security.xml -Dmaven.javadoc.skip=true;
2422
sonar-scanner
2523
fi
2624
- >
2725
if [ "$TRAVIS_PULL_REQUEST" = "false" ];then
28-
mvn org.jacoco:jacoco-maven-plugin:prepare-agent package -Dmaven.javadoc.skip=true;
26+
mvn jacoco:prepare-agent install jacoco:report package -Dmaven.javadoc.skip=true;
2927
sonar-scanner
3028
fi
3129
@@ -34,6 +32,3 @@ cache:
3432
- '$HOME/.m2/repository'
3533
- '$HOME/.sonar/cache'
3634

37-
after_success:
38-
- mvn cobertura:cobertura coveralls:cobertura
39-
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
cron-utils
2-
===========
3-
A Java library to parse, validate, migrate crons as well as get human readable descriptions for them. The project follows the [Semantic Versioning Convention](http://semver.org/), provides OSGi metadata and uses Apache 2.0 license.
1+
# cron-utils
2+
_We define crons. And support them._
3+
4+
5+
cron-utils is a Java library to define, parse, validate, migrate crons as well as get human readable descriptions for them. The project follows the [Semantic Versioning Convention](http://semver.org/), provides OSGi metadata and uses Apache 2.0 license.
46

57
[![Gitter Chat](http://img.shields.io/badge/chat-online-brightgreen.svg)](https://gitter.im/jmrozanec/cron-utils)
68
[![Build Status](https://travis-ci.org/jmrozanec/cron-utils.png?branch=master)](https://travis-ci.org/jmrozanec/cron-utils)
7-
[![Coverage Status](https://coveralls.io/repos/jmrozanec/cron-utils/badge.png)](https://coveralls.io/r/jmrozanec/cron-utils)
9+
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=cron-utils&metric=coverage)](https://sonarcloud.io/dashboard/index/cron-utils)
810

9-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/35b1b558473d42c4980432a3ecf84f6c)](https://www.codacy.com/app/jmrozanec/cron-utils?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=jmrozanec/cron-utils&amp;utm_campaign=Badge_Grade)
10-
[![Project stats by OpenHub](https://www.openhub.net/p/cron-utils/widgets/project_thin_badge.gif)](https://www.openhub.net/p/cron-utils/)
11-
12-
<!---
13-
[![Quality Gate](https://sonarcloud.io/api/badges/gate?key=cron-utils)](https://sonarcloud.io/dashboard/index/cron-utils)
14-
--->
1511

1612
**Download**
1713

@@ -20,14 +16,16 @@ cron-utils is available on [Maven central](http://search.maven.org/#search%7Cga%
2016
<dependency>
2117
<groupId>com.cronutils</groupId>
2218
<artifactId>cron-utils</artifactId>
23-
<version>9.1.1</version>
19+
<version>9.1.5</version>
2420
</dependency>
2521

2622
For Android developers, cron-utils 7.0.0 assumes Android 26+. For earlier Android versions consider using cron-utils 6.0.6.
2723
If using ScheduleExpression from Java EE, this should be provided as a runtime dependency.
2824

2925
**Current development**
3026

27+
*We are currently working to update the codebase towards JDK 16, to ensure will be fully compatible with JDK 17 when released.*
28+
3129
Now we are developing a new generation of cron-descriptors using neural-translation! Any kind of contributions are welcome: from help with dataset generation to machine learning models training and utilities to load them! If interested, please follow issue [#3](https://github.com/jmrozanec/cron-utils/issues/3)
3230

3331
**Features**
@@ -49,7 +47,7 @@ Now we are developing a new generation of cron-descriptors using neural-translat
4947
* [Unix](http://www.unix.com/man-page/linux/5/crontab/)
5048
* [Cron4j](http://www.sauronsoftware.it/projects/cron4j/)
5149
* [Quartz](http://quartz-scheduler.org/)
52-
* [Spring](https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/scheduling/support/CronSequenceGenerator.html)
50+
* [Spring](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/scheduling/support/CronExpression.html)
5351
* Obtain last/next execution time as well as time from last execution/time to next execution.
5452
* Obtain weekdays count between two dates, considering different weekend policies as well as holidays.
5553
* Need to map constants between different cron/time libraries? Use ConstantsMapper.

0 commit comments

Comments
 (0)