-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
86 lines (75 loc) · 2.17 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
plugins {
id 'idea'
id 'eclipse'
id 'java'
id 'io.freefair.lombok' version '5.3.0'
id 'application'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'com.github.jk1.dependency-license-report' version '1.17'
id 'org.ajoberstar.grgit' version '4.1.0'
id 'org.ajoberstar.git-publish' version '3.0.0'
}
group = 'com.dellemc.objectscale'
version = '1.2'
mainClassName = "com.dellemc.objectscale.tool.ReReplicationCli"
archivesBaseName = 'rereplication-tool'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
configurations {
// need a separate scope for the shadow app, for logging config
shadow.extendsFrom runtimeClasspath
}
dependencies {
implementation 'org.apache.logging.log4j:log4j-core:2.14.1'
implementation platform('software.amazon.awssdk:bom:2.17.24')
implementation 'software.amazon.awssdk:s3'
implementation 'software.amazon.awssdk:apache-client'
implementation 'commons-cli:commons-cli:1.4'
implementation 'org.apache.commons:commons-csv:1.8'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
shadow 'org.apache.logging.log4j:log4j-slf4j-impl:2.14.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
testRuntimeOnly 'org.apache.logging.log4j:log4j-slf4j-impl:2.14.1'
}
shadowJar {
classifier ''
configurations = [project.configurations.shadow]
manifest {
attributes 'Implementation-Version': project.version
}
from('src/app/resources')
}
test {
useJUnitPlatform()
}
import com.github.jk1.license.render.*
licenseReport {
renderers = [new InventoryHtmlReportRenderer(), new CsvReportRenderer()]
}
ext.aggregatedDocsDir = "$buildDir/aggregatedDocs"
task aggregateDocs {
doLast {
copy {
from docsDir
into "${aggregatedDocsDir}/latest"
}
copy {
from docsDir
into "${aggregatedDocsDir}/${project.version}"
}
}
}
tasks.aggregateDocs.dependsOn javadoc
gitPublish {
branch = 'gh-pages'
contents {
from aggregatedDocsDir
}
preserve { include '**/*' }
}
tasks.gitPublishPush.dependsOn aggregateDocs
clean {
delete aggregatedDocsDir
}