-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathbuild.gradle
90 lines (81 loc) · 2.74 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
apply plugin: 'distribution'
apply plugin: 'project-report'
allprojects {
apply plugin: 'java'
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
repositories {
mavenCentral()
}
// show api deprecation
// gradle.projectsEvaluated {
// tasks.withType(JavaCompile) {
// options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
// }
// }
}
subprojects{
apply plugin: 'maven-publish'
}
evaluationDependsOn(':core:core-awt')
defaultTasks 'taskReport', 'dependencyReport', 'sourcesJar', 'genPomFileForCoreJarPub', 'genPomFileForViewerJarPub','osDistZip', 'osDistTar'
// Main distribution for os bundle
distributions {
os {
distributionBaseName.set("icepdf")
version "${VERSION + (RELEASE_TYPE?.trim()? '-' + RELEASE_TYPE:'')}"
contents {
duplicatesStrategy = 'exclude'
into('libs-source') {
from 'core/core-awt/build/libs/'
from 'viewer/viewer-awt/build/libs/'
include '*-sources.jar'
}
into('libs') {
// dependency jars
def libs = []
libs << project(':core:core-awt').configurations.runtimeClasspath.files
// libs << project(':viewer:viewer-awt').configurations.runtimeClasspath.files
from libs
from project(':core:core-awt').jar
from project(':viewer:viewer-awt').jar
}
// dependencies information
into('dependencies') {
from 'build/reports/project'
}
// licenses copy
into('licenses') {
from 'licenses'
}
// maven auto generated pom files.
into ('maven2') {
from 'core/core-awt/build/publications/coreJar/pom-default.xml'
rename { String fileName ->
fileName.replace("pom-default.xml", "icepdf-core.xml")
}
}
into ('maven2') {
from 'viewer/viewer-awt/build/publications/viewerJar/pom-default.xml'
rename { String fileName ->
fileName.replace("pom-default.xml", "icepdf-viewer.xml")
}
}
// examples
// into ('examples') {
// from 'examples'
// }
// readme.
into (''){
from 'readme.html'
filter(org.apache.tools.ant.filters.ReplaceTokens,
tokens: [version: VERSION])
}
}
}
}
dependencies {
implementation project(':core:core-awt')
implementation project(':viewer:viewer-awt')
}