-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle.kts
86 lines (64 loc) · 2.26 KB
/
build.gradle.kts
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 {
java
application
id("com.jfrog.bintray") version "1.8.5"
}
group = "io.github.eroshenkoam"
description = "Allure PDF"
val gradleScriptDir by extra("${rootProject.projectDir}/gradle")
tasks.withType(Wrapper::class) {
gradleVersion = "6.1.1"
}
application {
mainClassName = "io.github.eroshenkoam.allure.AllurePDF"
}
repositories {
mavenCentral()
}
dependencies {
annotationProcessor("info.picocli:picocli-codegen:4.1.4")
annotationProcessor("org.projectlombok:lombok:1.18.12")
compileOnly("org.projectlombok:lombok:1.18.12")
implementation("com.fasterxml.jackson.core:jackson-databind:2.10.2")
implementation("org.apache.commons:commons-collections4:4.4")
implementation("io.qameta.allure:allure-model:2.13.1")
implementation("org.slf4j:slf4j-log4j12:1.7.25")
implementation("org.slf4j:slf4j-simple:1.7.25")
implementation("commons-logging:commons-logging:1.2")
implementation("com.google.code.findbugs:jsr305:3.0.2")
implementation("com.github.librepdf:openpdf:1.3.26")
implementation("org.apache.xmlgraphics:fop:2.4") {
exclude(group = "com.sun.media", module = "jai-codec")
exclude(group = "javax.media", module = "jai-core")
}
implementation("info.picocli:picocli:4.1.4")
implementation("commons-io:commons-io:2.6")
testImplementation("junit:junit:4.12")
}
val sourceJar by tasks.creating(Jar::class) {
from(sourceSets.getByName("main").allSource)
archiveClassifier.set("sources")
}
val javadocJar by tasks.creating(Jar::class) {
from(tasks.getByName("javadoc"))
archiveClassifier.set("javadoc")
}
apply(from = "$gradleScriptDir/maven.gradle")
artifacts.add("archives", sourceJar)
artifacts.add("archives", javadocJar)
tasks.withType(Javadoc::class) {
(options as StandardJavadocDocletOptions).addStringOption("Xdoclint:none", "-quiet")
}
val startScripts by tasks.existing(CreateStartScripts::class) {
applicationName = "allure-pdf"
classpath = classpath?.plus(files("src/lib/config"))
doLast {
unixScript.writeText(unixScript.readText()
.replace(Regex("(?m)^APP_HOME="), "export APP_HOME=")
.replace("\$(uname)\" = \"Darwin", "")
)
}
}
tasks.build {
dependsOn(tasks.installDist)
}