commit 08be0d8351208dca6956170ca20f63227afb201b Author: Bas Dado Date: Fri Dec 7 18:38:30 2018 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7f69afd --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +# Eclipse +.classpath +.project +.settings/ + +# Intellij +.idea/ +*.iml +*.iws + +# Mac +.DS_Store + +# Maven +log/ +target/ \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..1739d25 --- /dev/null +++ b/pom.xml @@ -0,0 +1,69 @@ + + + + 4.0.0 + + com.basdado.fun + advent-of-code2017 + 1.0-SNAPSHOT + jar + + com.basdado.fun advent-of-code2017 + + + UTF-8 + 1.3.11 + official + 4.12 + + + + + org.jetbrains.kotlin + kotlin-stdlib + ${kotlin.version} + + + org.jetbrains.kotlin + kotlin-test-junit + ${kotlin.version} + test + + + junit + junit + ${junit.version} + test + + + + + src/main/kotlin + src/test/kotlin + + + + org.jetbrains.kotlin + kotlin-maven-plugin + ${kotlin.version} + + + compile + compile + + compile + + + + test-compile + test-compile + + test-compile + + + + + + + + diff --git a/src/main/kotlin/com/basdado/fun/Utils.kt b/src/main/kotlin/com/basdado/fun/Utils.kt new file mode 100644 index 0000000..b696ffb --- /dev/null +++ b/src/main/kotlin/com/basdado/fun/Utils.kt @@ -0,0 +1,11 @@ +package com.basdado.`fun` + +import java.nio.file.Files +import java.nio.file.Paths +import java.util.stream.Stream + +fun lines(resourceFile: String): Stream { + return Files.lines(Paths.get(Utils::class.java.getResource(resourceFile).toURI())) +} + +class Utils \ No newline at end of file