Skip to content

Commit

Permalink
Add Gradle Build Script
Browse files Browse the repository at this point in the history
Signed-off-by: Jadon Fowler <[email protected]>
  • Loading branch information
phase committed Jan 21, 2017
1 parent 0bfa43b commit 863ecbf
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#Gradle
/.gradle
/build/

#GBA
*.gba
Expand All @@ -22,4 +23,4 @@
*.bak
*.spr
roms/
config.txt
config.txt
31 changes: 31 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
buildscript {
ext.kotlin_version = '1.0.3'

repositories {
mavenCentral()
}

dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

apply plugin: "kotlin"
apply plugin: "application"

mainClassName = "xyz.jadonfowler.sbhs.SBHS"

jar {
manifest {
attributes 'Main-Class': 'xyz.jadonfowler.sbhs.SBHS'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}

repositories {
mavenCentral()
}

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ object SBHS {
if (config.exists() && config.isFile)
gameLocation = config.readText()
else gameLocation = getFile()
raf = RandomAccessFile(gameLocation, "rw")
try {
raf = RandomAccessFile(gameLocation, "rw")
} catch(e: Exception) {
e.printStackTrace()
System.exit(-1)
}

val mainTabs = JTabbedPane()
run {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes

0 comments on commit 863ecbf

Please sign in to comment.