Skip to content

Commit

Permalink
Update build to not use fatjar plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
itkach committed Oct 1, 2014
1 parent fd49500 commit abd6c28
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,36 +1,29 @@
apply plugin: 'java'
apply plugin: 'eclipse'


buildscript {
repositories {
mavenCentral()
}

dependencies {
classpath 'eu.appsatori:gradle-fatjar-plugin:0.2-rc1'
}
}

apply plugin: 'fatjar'

sourceCompatibility = 1.6
version = '0.1'

repositories {
mavenCentral()
}

//this currently only works in gradle < 2.0
fatJar {
manifest {
jar {
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
configurations.runtime.collect {
it.isDirectory() ? it : zipTree(it)
}
}

manifest {
attributes(
"Main-Class": "itkach.slobber.Slobber",
"Implementation-Title": "Slobber",
"Implementation-Title": "Aard 2 Web",
"Implementation-Version": version)
}

sourceSets {
sourceSets {
main {
resources {
srcDirs = [
Expand Down

0 comments on commit abd6c28

Please sign in to comment.