-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
99 lines (86 loc) · 2.59 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
87
88
89
90
91
92
93
94
95
96
97
98
99
buildscript {
dependencies {
classpath files('libs/gradle-witness.jar')
}
}
plugins {
id 'java'
id 'idea'
id 'com.github.johnrengelman.shadow' version '1.2.2'
id 'maven'
}
apply plugin: 'witness'
group 'plugins'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenCentral()
maven {
url "http://4thline.org/m2"
}
flatDir {
dirs 'libs'
}
}
configurations {
provided
}
sourceSets {
main {
compileClasspath += configurations.provided
test.compileClasspath += configurations.provided
test.runtimeClasspath += configurations.provided
}
}
idea {
module {
scopes.PROVIDED.plus += [configurations.provided]
downloadJavadoc = true
downloadSources = true
}
}
dependencies {
compile group: 'org.fourthline.cling', name: 'cling-core', version: '2.1.0'
compile group: 'org.fourthline.cling', name: 'cling-support', version: '2.1.0'
if (hasProperty('location.freenet.jar') && property('location.freenet.jar')?.trim()) {
provided files(property('location.freenet.jar'))
}
else {
provided name: 'freenet'
}
if (hasProperty('location.freenet-ext.jar') && property('location.freenet-ext.jar')?.trim()) {
provided files(property('location.freenet-ext.jar'))
}
else {
provided name: 'freenet-ext'
}
if (hasProperty('location.bcprov.jar') && property('location.bcprov.jar')?.trim()) {
provided files(property('location.bcprov.jar'))
}
else {
provided name: 'bcprov-jdk15on-152'
}
testCompile group: 'junit', name: 'junit', version: '4.11'
}
dependencyVerification {
verify = [
'org.fourthline.cling:cling-core:cf556bae1a8526626b139e1a3815a8c960c4c55bf1d24baae143ff8079f326fd',
'org.fourthline.cling:cling-support:d090bff05f033f2d0d1da42ba9f367d1155b54af3b44237baddd0faeef5f6a1b',
'org.seamless:seamless-util:eb663e3739d67137baab18e65ed2cdec28213a8871458323c3cc62da085cec3c',
'org.seamless:seamless-http:05da30fa260cf53770fefbd46482c04f6a37e19b663fec282a4c4384c0def813',
'org.seamless:seamless-xml:6d80a97918e4ae91ecb676f9cd056942f1565d981d054a461058a16096464298',
'org.seamless:seamless-swing:653fa6fea357f1349075bdd94328fc9c0d285046d7deb25a56dc8a86513b64e0',
]
}
tasks.withType(AbstractCompile) {
classpath += configurations.shadow
}
jar {
manifest {
attributes 'Plugin-Main-Class': 'plugins.UPnP2.UPnP2',
'Required-Node-Version': '1472'
}
}
shadowJar {
}