Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

63 lines (54 sloc) 1.165 kb
apply plugin: 'java'
apply plugin: 'idea'
archivesBaseName = "Catacomb-Snatch"
project.group = "com.mojang.mojam"
project.version = "1.1.1-SNAPSHOT"
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'res'
exclude '**/*.ogg'
}
}
}
dependencies {
compile fileTree( dir: 'lib', include: '*.jar')
}
//fat jar~!
//Could be easier to use the jarjar ant task, it's probably faster
jar {
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes "Main-Class" : "com.mojang.mojam.MojamStartup"
}
}
task run() {
dependsOn "build"
doLast {
println "Executing Catacomb Snatch!"
javaexec {
main = '-jar'
args = [ jar.archivePath ]
}
}
}
apply plugin: 'macAppBundle'
macAppBundle {
mainClassName = "com.mojang.mojam.MojamComponent"
icon = "res/art/icon/cs_icons.icns"
}
buildscript {
repositories {
ivy {
artifactPattern 'http://gradle-macappbundle.googlecode.com/files/[module]-[revision].[ext]'
}
}
dependencies {
classpath 'edu.sc.seis:gradle-macappbundle:1.0.4'
}
}
Jump to Line
Something went wrong with that request. Please try again.