Browse Source

Initial commit/gradle init

master
kageru 1 year ago
commit
580b279122
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2
  1. 5
      .gitignore
  2. 17
      build.gradle.kts
  3. 1
      settings.gradle.kts
  4. 5
      src/main/kotlin/rps/App.kt
  5. 14
      src/test/kotlin/rps/AppTest.kt

5
.gitignore vendored

@ -0,0 +1,5 @@
# Ignore Gradle project-specific cache directory
.gradle
# Ignore Gradle build output directory
build

17
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"
}

1
settings.gradle.kts

@ -0,0 +1 @@
rootProject.name = "rock-paper-scissors"

5
src/main/kotlin/rps/App.kt

@ -0,0 +1,5 @@
package rps
fun main() {
println("Hello, world")
}

14
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)
}
}
Loading…
Cancel
Save