forked from CompendiumNG/CompendiumNG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (53 loc) · 1.64 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
defaultTasks 'build'
task wrapper(type: Wrapper) {
gradleVersion = '1.10'
}
allprojects {
apply plugin: 'eclipse'
group = 'org.compendiumng'
version = '2.1.3'
repositories {
mavenLocal()
mavenCentral()
}
}
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-izpack-plugin:0.2.3'
}
}
// only for the "application" module
configure(subprojects.findAll {it.name == 'application'}) {
apply plugin: 'application'
apply plugin: 'izpack'
mainClassName = "com.compendium.ProjectCompendium"
compileJava {
sourceCompatibility = 1.7
targetCompatibility = 1.7
}
dependencies {
izpack 'org.codehaus.izpack:izpack-standalone-compiler:4.3.5'
}
izpack {
baseDir = file("$buildDir")
installFile = file('application/src/main/izpack/install.xml')
outputFile = file("$buildDir/CompendiumNG-installer.jar")
compression = 'deflate'
compressionLevel = 9
appProperties = ['app.group': 'org.compendiumng', 'app.name': 'CompendiumNG', 'app.title': 'CompendiumNG', 'app.version': version, 'app.subpath': "CompendiumNG-$version"]
}
jar {
destinationDir=file("$buildDir")
archiveName='CompendiumNG.jar'
manifest {
attributes 'Implementation-Title': 'CompendiumNG application', 'Implementation-Version': version, 'Main-class': mainClassName
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
}
build.dependsOn izPackCreateInstaller
}