diff options
| -rw-r--r-- | build.gradle | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/build.gradle b/build.gradle index f95f1052..87a3c78b 100644 --- a/build.gradle +++ b/build.gradle | |||
| @@ -1,14 +1,25 @@ | |||
| 1 | 1 | ||
| 2 | buildscript { | ||
| 3 | repositories { | ||
| 4 | mavenCentral() | ||
| 5 | } | ||
| 6 | |||
| 7 | dependencies { | ||
| 8 | classpath 'eu.appsatori:gradle-fatjar-plugin:0.2-rc1' | ||
| 9 | } | ||
| 10 | } | ||
| 11 | |||
| 2 | apply plugin: "java" | 12 | apply plugin: "java" |
| 3 | apply plugin: "eclipse" | 13 | apply plugin: "eclipse" |
| 4 | apply plugin: "maven" | 14 | apply plugin: "maven" |
| 15 | apply plugin: "fatjar" | ||
| 5 | 16 | ||
| 6 | sourceCompatibility = 1.6 | 17 | sourceCompatibility = 1.7 |
| 7 | targetCompatibility = 1.6 | 18 | targetCompatibility = 1.7 |
| 8 | 19 | ||
| 9 | group = "com.cuchazinteractive" | 20 | group = "com.cuchazinteractive" |
| 10 | archivesBaseName = "enigma" | 21 | archivesBaseName = "enigma" |
| 11 | version = "0.1" | 22 | version = "0.1b" |
| 12 | 23 | ||
| 13 | sourceSets | 24 | sourceSets |
| 14 | { | 25 | { |
| @@ -43,7 +54,6 @@ repositories | |||
| 43 | 54 | ||
| 44 | dependencies | 55 | dependencies |
| 45 | { | 56 | { |
| 46 | compile files( "${System.properties['java.home']}/../lib/tools.jar" ) | ||
| 47 | compile fileTree( dir: "libs", include: "*.jar" ) | 57 | compile fileTree( dir: "libs", include: "*.jar" ) |
| 48 | compile "de.sciss:jsyntaxpane:1.0.0" | 58 | compile "de.sciss:jsyntaxpane:1.0.0" |
| 49 | compile "com.google.guava:guava:17.0" | 59 | compile "com.google.guava:guava:17.0" |
| @@ -52,10 +62,15 @@ dependencies | |||
| 52 | testCompile "junit:junit:4.11" | 62 | testCompile "junit:junit:4.11" |
| 53 | } | 63 | } |
| 54 | 64 | ||
| 55 | uploadArchives | 65 | fatJar |
| 56 | { | 66 | { |
| 57 | repositories.mavenDeployer | 67 | manifest |
| 58 | { | 68 | { |
| 59 | repository( url: "file://${project.projectDir}/../maven" ) | 69 | attributes( |
| 70 | "Title": archivesBaseName, | ||
| 71 | "Manifest-Version": "1.0", | ||
| 72 | "Version": version, | ||
| 73 | "Main-Class" : "cuchaz.enigma.Main" | ||
| 74 | ) | ||
| 60 | } | 75 | } |
| 61 | } | 76 | } |