commit 580b2791224f36b625766d24c241ec1f9f05b108 Author: kageru Date: Thu Oct 22 19:14:15 2020 +0200 Initial commit/gradle init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b6985c --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Ignore Gradle project-specific cache directory +.gradle + +# Ignore Gradle build output directory +build diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..6b25766 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,17 @@ +plugins { + id("org.jetbrains.kotlin.jvm") version "1.4.10" + application +} + +repositories { + jcenter() +} + +dependencies { + testImplementation("org.jetbrains.kotlin:kotlin-test") + testImplementation("org.jetbrains.kotlin:kotlin-test-junit:1.4.10") +} + +application { + mainClassName = "rps.GameKt" +} diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 0000000..323d9d9 --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1 @@ +rootProject.name = "rock-paper-scissors" diff --git a/src/main/kotlin/rps/App.kt b/src/main/kotlin/rps/App.kt new file mode 100644 index 0000000..ce187fa --- /dev/null +++ b/src/main/kotlin/rps/App.kt @@ -0,0 +1,5 @@ +package rps + +fun main() { + println("Hello, world") +} diff --git a/src/test/kotlin/rps/AppTest.kt b/src/test/kotlin/rps/AppTest.kt new file mode 100644 index 0000000..be22bdf --- /dev/null +++ b/src/test/kotlin/rps/AppTest.kt @@ -0,0 +1,14 @@ +/* + * This Kotlin source file was generated by the Gradle 'init' task. + */ +package rps + +import kotlin.test.Test +import kotlin.test.assertEquals + +class GameTest { + @Test + fun testAppHasAGreeting() { + assertEquals(2 + 2, 4) + } +}