summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle29
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
2buildscript {
3 repositories {
4 mavenCentral()
5 }
6
7 dependencies {
8 classpath 'eu.appsatori:gradle-fatjar-plugin:0.2-rc1'
9 }
10}
11
2apply plugin: "java" 12apply plugin: "java"
3apply plugin: "eclipse" 13apply plugin: "eclipse"
4apply plugin: "maven" 14apply plugin: "maven"
15apply plugin: "fatjar"
5 16
6sourceCompatibility = 1.6 17sourceCompatibility = 1.7
7targetCompatibility = 1.6 18targetCompatibility = 1.7
8 19
9group = "com.cuchazinteractive" 20group = "com.cuchazinteractive"
10archivesBaseName = "enigma" 21archivesBaseName = "enigma"
11version = "0.1" 22version = "0.1b"
12 23
13sourceSets 24sourceSets
14{ 25{
@@ -43,7 +54,6 @@ repositories
43 54
44dependencies 55dependencies
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
55uploadArchives 65fatJar
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}