Skip to content

Commit

Permalink
task4: game added
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfmsu committed Oct 16, 2018
1 parent a6950cb commit 0c585c5
Show file tree
Hide file tree
Showing 96 changed files with 23,259 additions and 0 deletions.
Binary file modified assignments/04/.gradle/4.10.2/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified assignments/04/.gradle/4.10.2/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified assignments/04/.gradle/4.10.2/taskHistory/taskHistory.bin
Binary file not shown.
Binary file modified assignments/04/.gradle/4.10.2/taskHistory/taskHistory.lock
Binary file not shown.
Binary file not shown.
Binary file modified assignments/04/.gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
53 changes: 53 additions & 0 deletions assignments/04/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ dependencies {
ktlint("com.github.shyiko", "ktlint", "0.28.0")
}

val fatJar = task("fatJar", type = Jar::class) {
baseName = "${project.name}-fat"
manifest {
attributes["Main-Class"] = "game.GameKt"
}
from(
configurations.runtime.map {
if (it.isDirectory) it else zipTree(it)
}
)
with(tasks["jar"] as CopySpec)
}

tasks {
val ktlint by creating(JavaExec::class) {
group = "verification"
Expand All @@ -37,3 +50,43 @@ tasks {
dependsOn(ktlint)
}
}

// import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

// group = "io.rybalkinsd"
// version = "1.0-SNAPSHOT"

// plugins {
// kotlin("jvm") version "1.2.71"
// }

// tasks.withType<KotlinCompile> {
// kotlinOptions.jvmTarget = "1.8"
// }

// repositories {
// jcenter()
// }

// val ktlint by configurations.creating

// dependencies {
// compile(kotlin("stdlib-jdk8"))
// testCompile("junit", "junit", "4.12")

// ktlint("com.github.shyiko", "ktlint", "0.28.0")
// }

// tasks {
// val ktlint by creating(JavaExec::class) {
// group = "verification"
// description = "Check Kotlin code style."
// main = "Game"
// classpath = ktlint
// args = listOf("src/**/*.kt")
// }

// "check" {
// dependsOn(ktlint)
// }
// }
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions assignments/04/build/kotlin/0410SNAPSHOTjar-classes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/home/alexfmsu/Git/kotlin-boot-camp/assignments/04/build/classes/kotlin/main/game/Game$Companion.class:/home/alexfmsu/Git/kotlin-boot-camp/assignments/04/build/classes/kotlin/main/game/Game.class:/home/alexfmsu/Git/kotlin-boot-camp/assignments/04/build/classes/kotlin/main/game/GameKt.class:/home/alexfmsu/Git/kotlin-boot-camp/assignments/04/build/classes/kotlin/main/game/WordHandler$Companion.class:/home/alexfmsu/Git/kotlin-boot-camp/assignments/04/build/classes/kotlin/main/game/WordHandler.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2
1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3011001
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9011001
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4011001
Binary file not shown.
Binary file added assignments/04/build/libs/04-1.0-SNAPSHOT.jar
Binary file not shown.
Binary file added assignments/04/build/libs/04-fat-1.0-SNAPSHOT.jar
Binary file not shown.
3 changes: 3 additions & 0 deletions assignments/04/build/tmp/fatJar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: game.GameKt

2 changes: 2 additions & 0 deletions assignments/04/build/tmp/jar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

Loading

0 comments on commit 0c585c5

Please sign in to comment.