-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
86 lines (70 loc) · 2.04 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
// It turns out that sourceCompatibility and targetCompatibility are not enough to make the jar file actually cocmpatible.
// adding "--release 8" as a javac flags help.
//tasks.withType(JavaCompile) {
// options.compilerArgs.addAll(['--release 8'])
//}
apply plugin: 'application'
apply plugin: 'eclipse'
apply plugin: 'signing'
///
/// General
///
group = "edu.uncc.cs.bridges"
version = "3.4.3"
///
/// Artifacts and deployment
///
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
archiveClassifier = 'sources'
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
sourceSets {
main {
java {
}
}
}
task fatJar(type: Jar) {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
manifest {
attributes 'Implementation-Title': 'Bridges Jar File',
'Implementation-Version': version
}
archiveBaseName = project.name
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it)}}
with jar
}
///
/// Repositories and dependencies
///
// In this section you declare where to find the dependencies of your project
repositories {
// Use 'maven central' for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
}
// In this section you declare the dependencies for your production and
// test code
dependencies {
// The production code uses the SLF4J logging API at compile time
implementation 'org.slf4j:slf4j-api:1.7.5'
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
implementation 'org.apache.httpcomponents:fluent-hc:4.3.1'
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.google.guava:guava:16+'
implementation 'io.socket:socket.io-client:2.0.1'
}