cron4s

CRON expression parser for Scala

License

License

GroupId

GroupId

com.github.alonsodomin.cron4s
ArtifactId

ArtifactId

cron4s-testkit_sjs0.6_2.11
Last Version

Last Version

0.6.0-M1
Release Date

Release Date

Type

Type

jar
Description

Description

cron4s
CRON expression parser for Scala
Project URL

Project URL

https://github.com/alonsodomin/cron4s
Project Organization

Project Organization

Antonio Alonso Dominguez
Source Code Management

Source Code Management

https://github.com/alonsodomin/cron4s

Download cron4s-testkit_sjs0.6_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.alonsodomin.cron4s/cron4s-testkit_sjs0.6_2.11/ -->
<dependency>
    <groupId>com.github.alonsodomin.cron4s</groupId>
    <artifactId>cron4s-testkit_sjs0.6_2.11</artifactId>
    <version>0.6.0-M1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.alonsodomin.cron4s/cron4s-testkit_sjs0.6_2.11/
implementation 'com.github.alonsodomin.cron4s:cron4s-testkit_sjs0.6_2.11:0.6.0-M1'
// https://jarcasting.com/artifacts/com.github.alonsodomin.cron4s/cron4s-testkit_sjs0.6_2.11/
implementation ("com.github.alonsodomin.cron4s:cron4s-testkit_sjs0.6_2.11:0.6.0-M1")
'com.github.alonsodomin.cron4s:cron4s-testkit_sjs0.6_2.11:jar:0.6.0-M1'
<dependency org="com.github.alonsodomin.cron4s" name="cron4s-testkit_sjs0.6_2.11" rev="0.6.0-M1">
  <artifact name="cron4s-testkit_sjs0.6_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.alonsodomin.cron4s', module='cron4s-testkit_sjs0.6_2.11', version='0.6.0-M1')
)
libraryDependencies += "com.github.alonsodomin.cron4s" % "cron4s-testkit_sjs0.6_2.11" % "0.6.0-M1"
[com.github.alonsodomin.cron4s/cron4s-testkit_sjs0.6_2.11 "0.6.0-M1"]

Dependencies

compile (9)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12
com.github.alonsodomin.cron4s : cron4s-core_sjs0.6_2.11 jar 0.6.0-M1
org.scala-js : scalajs-library_2.11 jar 0.6.28
org.typelevel : cats-laws_sjs0.6_2.11 jar 1.6.1
org.typelevel : cats-testkit_sjs0.6_2.11 jar 1.6.1
org.typelevel : discipline_sjs0.6_2.11 jar 0.11.1
org.typelevel : catalysts-platform_sjs0.6_2.11 jar 0.8
org.scalacheck : scalacheck_sjs0.6_2.11 jar 1.14.0
org.scalatest : scalatest_sjs0.6_2.11 jar 3.0.5

test (1)

Group / Artifact Type Version
org.scala-js : scalajs-test-interface_2.11 jar 0.6.28

Project Modules

There are no modules declared in this project.

Cron4s

Join the chat at https://gitter.im/alonsodomin/cron4s Build Status Scala.js License Maven Central

Codacy Badge codecov Mergify Status

Idiomatic Cron expression parsing in Scala and ScalaJS.

Documentation

Please, take a look at the user guide for instructions on how to use this library. The remaining of this section will be focused on information for other developers.

Building

cron4s is built using SBT:

git clone https://github.com/alonsodomin/cron4s
cd cron4s
sbt test

The user documentation is built/generated using sbt-microsites and requires Jekyll to be installed in the local machine. To generate and browse the latest docs from master follow these steps from the project's root folder:

sbt makeMicrosite
cd docs/target/site
jekyll serve

Then make your browser point to http://127.0.0.1:4000/cron4s and that's all.

Cross building

cron4s is cross-built and published for several versions of Scala. The different set of versions are configured in the .travis.yml file in the scala section. For example:

scala:
  - 2.12.9
  - 2.13.0

Supporting additional Scala versions is a matter of adding a new version to that section and then make the codebase compile against it whilst preserving backwards compatibility. The easiest way to check that compatibility is triggering a cross build with SBT:

sbt +test

Repository Automation

There is some sort of automation configured in this repository to ease the management of some tedious or repetitive tasks:

  • Version upgrades: The Scala Steward will be producing pull requests with version upgrades of this library dependencies.
  • Auto-merge: Mergify is installed in this repo to do auto-merge of pull requests that meet a given criteria. This said criteria can be modified in the .mergify at the project's root folder.
  • Travis Release: Travis CI has been configured, not just to build the project, but also to be able to release to Maven Central with minimal user interaction. Pushing a tag in the repo with the version number will sign and publish such a release in Maven Central, non-tagged commits to master will be published as SNAPSHOT.

Related Projects

This is a non-exhaustive list of other open source projects and libraries that use or are somewhat related to Cron4s. If you have a library that depends on Cron4s you could add it here:

  • fs2-cron: Create pure functional streams that emit elements based on a given cron schedule.
  • pureconfig-cron4s: Cron expression parsing support in configuration files.

Code Of Conduct

See the Code of Conduct.

License

Copyright 2017 Antonio Alonso Dominguez

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Versions

Version
0.6.0-M1
0.5.0
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0