-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
72 lines (57 loc) · 1.47 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
69
70
71
72
group 'org.tiwindete'
version '0.1.0'
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url "http://clojars.org/repo/" }
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.Lomadriel:LFC:0.3.2'
compile 'kryonet:kryonet:2.21'
compile 'com.esotericsoftware.kryo:kryo:2.24.0'
/*compile 'com.esotericsoftware:minlog:1.3.1-SNAPSHOT'
compile 'org.objenesis:objenesis-parent:2.5-SNAPSHOT'*/
testCompile group: 'junit', name: 'junit', version: '4.11'
}
idea {
project {
languageLevel = '1.8'
}
module {
downloadJavadoc = true // defaults to false
downloadSources = true
}
}
task copyLicense(type: Copy) {
from "LICENSE"
into "$buildDir"
}
jar {
from { 'LICENSE' }
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Anime Warfare',
'Implementation-Version': version,
'Main-Class': "org.tiwindetea.animewarfare.MainApp"
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}