Initial commit/gradle init
This commit is contained in:
commit
580b279122
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# Ignore Gradle project-specific cache directory
|
||||
.gradle
|
||||
|
||||
# Ignore Gradle build output directory
|
||||
build
|
17
build.gradle.kts
Normal file
17
build.gradle.kts
Normal file
@ -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
Normal file
1
settings.gradle.kts
Normal file
@ -0,0 +1 @@
|
||||
rootProject.name = "rock-paper-scissors"
|
5
src/main/kotlin/rps/App.kt
Normal file
5
src/main/kotlin/rps/App.kt
Normal file
@ -0,0 +1,5 @@
|
||||
package rps
|
||||
|
||||
fun main() {
|
||||
println("Hello, world")
|
||||
}
|
14
src/test/kotlin/rps/AppTest.kt
Normal file
14
src/test/kotlin/rps/AppTest.kt
Normal file
@ -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…
Reference in New Issue
Block a user