A simple repo that finds the norwegian holidays for a given year
- Kotlin
- Gradle
- JDK 21
To build locally and run the integration tests you can simply run ./gradlew clean build
or on windows
gradlew.bat clean build
Gradle(kotlin)
implementation("io.github.mikaojk:norwegian-holidays:1.0.2")
Maven
<dependency>
<groupId>io.github.mikaojk</groupId>
<artifactId>norwegian-holidays</artifactId>
<version>1.0.2</version>
</dependency>
Find the newest version of gradle here: https://gradle.org/releases/ Then run this command:
./gradlew wrapper --gradle-version $gradleVersjon
val year = 2022
val easterDay = getNorwegianHolidays(year).find { it.name == "1. påskedag" }?.date
println("Easter day for 2022 is: $easterDay")
Questions and/or feature requests? Please create an issue.