-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (47 loc) · 1.25 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
apply plugin: 'java'
apply plugin: 'findbugs'
apply plugin: 'application'
apply plugin: 'eclipse'
apply plugin: 'gradle-one-jar'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.rholder:gradle-one-jar:1.0.4'
}
}
version = "0.0.2"
group= "pl.grm"
description = 'BOL Game Launcher Client'
archivesBaseName = "BoL-Launcher"
mainClassName = 'pl.grm.bol.launcher.Launcher'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compile group: 'org.ini4j', name: 'ini4j', version: '0.5.2'
compile 'com.google.guava:guava:18.0'
compile files('libs/BoL-Launcher_Lib-0.0.2.jar', 'libs/EffectProgressBar.jar')
testCompile 'junit:junit:4.11'
}
jar {
manifest {
attributes "Main-Class": "pl.grm.bol.launcher.Launcher"
attributes "Class-Path": configurations.compile.collect { it.getName() }.join(' ')
}
}
task execJar(type: OneJar) {
mainClass = mainClassName
archiveName = archivesBaseName+"-"+version+"-SNAPSHOT.jar"
}
findbugs {
ignoreFailures = true
sourceSets = [sourceSets.main]
reportsDir = file("$project.buildDir/reports/findbugs")
effort = "max"
}
task wrapper(type: Wrapper) {
gradleVersion = '2.1'
}