Skip to content

marcin-chwedczuk/polish-holidays

Repository files navigation

Polish Holidays

Build Status

PolishHolidays is a simple library that returns list of Polish holidays.

To use it with Maven add:

<dependency>
    <groupId>pl.marcinchwedczuk</groupId>
    <artifactId>polish-holidays</artifactId>
    <version>1.0</version>
</dependency>

Basic usage:

List<Holiday> holidays = HolidayCalendars
        .createPolishHolidaysCalendar()
        .holidaysForYear(2021);

example directory contains more extensive example. To run the example navigate to example directory and run:

../mvnw -f pom.xml clean package
java -jar ./target/example-1.0-SNAPSHOT-jar-with-dependencies.jar

This will start a simple calendar program: Example program

Building, etc.

This project uses Eclipse Code formatter. Setup instructions for IntelliJ: https://github.com/krasa/EclipseCodeFormatter#instructions. Code style (based on Google Java Styleguide) is stored in eclipse-java-google-style.xml file.

To compile and run tests execute:

./mvnw

Reformat source code:

./mvnw spotless:apply

Browse SpotBugs report:

./mvnw spotbugs:gui

Publish package to Maven Central:

./mvnw clean deploy -Psonatype

About

Library that provides list of Polish holidays.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages