Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task4: game added #123

Open
wants to merge 1 commit into
base: assignment04
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
16 changes: 16 additions & 0 deletions assignments/04/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ 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 @@ -36,4 +48,8 @@ tasks {
"check" {
dependsOn(ktlint)
}

"build" {
dependsOn(fatJar)
}
}
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 @@
4
3
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-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

3 changes: 3 additions & 0 deletions assignments/04/build/tmp/jar2/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: game.GameKt

Loading