-
Notifications
You must be signed in to change notification settings - Fork 19
/
dependencies.txt
39 lines (36 loc) · 1.27 KB
/
dependencies.txt
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
configurations {
embed
compile.extendsFrom(embed)
}
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '22.0'
compile group: 'com.google.apis', name: 'google-api-services-youtube', version: 'v3-rev183-1.22.0'
compile group: 'com.google.oauth-client', name: 'google-oauth-client-jetty', version: '1.22.0'
compile group: 'com.google.api-client', name: 'google-api-client', version: '1.22.0'
compile group: 'com.google.http-client', name: 'google-http-client', version: '1.22.0'
embed fileTree(dir: 'build/dependencies', include: '*.jar')
}
task saveDependencies << {
configurations.each { config ->
if (config.name == "default") {
config.each { f ->
if (!f.name.contains("Dummy") && !f.name.contains("guava-jdk")) {
ant.copy (
file: f,
overwrite:true,
todir:"${rootProject.projectDir}/build/dependencies")
}
}
}
}
}
jar {
manifest {
attributes 'Main-Class': 'com.google.youtube.gaming.chat.Main'
}
from configurations.embed.collect {
exclude 'META-INF/LICENSE*'
exclude 'META-INF/NOTICE*'
it.isDirectory() ? it : zipTree(it)
}
}