-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
71 lines (57 loc) · 1.58 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
apply from: 'versions.gradle'
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
}
subprojects {
repositories {
mavenCentral()
}
dependencies {
implementation "org.jboss.resteasy:resteasy-client:${rootProject.resteasyVersion}"
implementation "com.konghq:unirest-java:${rootProject.unirestVersion}"
implementation "io.projectreactor:reactor-core:${rootProject.reactorVersion}"
implementation "com.damnhandy:handy-uri-templates:${rootProject.handyURITemplatesVersion}"
implementation "com.fasterxml.jackson.core:jackson-databind:${rootProject.jacksonCoreVersion}"
}
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_11
}
// ================================= TASKS
// :)
final destination = 'dest'
task copyJars(type: Copy, dependsOn: subprojects.jar) {
from subprojects.jar
into project.file(destination)
}
task copyLibs(type: Copy) {
from 'lib'
into project.file("$destination/lib")
}
task copyDeps(type: Copy) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from subprojects.configurations.runtimeClasspath
into project.file("$destination/lib")
}
task copyArgumentFiles(type: Copy) {
from 'resources'
into project.file("$destination/resources")
}
task copyReadmeFiles(type: Copy) {
from 'Readme.md'
into project.file(destination)
}
task clearArtifacts(type: Delete) {
delete destination
}
clean {
dependsOn clearArtifacts
}
build {
dependsOn copyLibs
dependsOn copyJars
dependsOn copyDeps
dependsOn copyReadmeFiles
dependsOn copyArgumentFiles
}