-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
47 lines (37 loc) · 924 Bytes
/
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
plugins {
id 'java'
}
group = 'org.PDFCreator'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
implementation 'org.apache.pdfbox:pdfbox:2.0.31'
}
sourceSets {
main {
java {
srcDir 'native/src/main/java'
}
}
}
test {
useJUnitPlatform()
}
task customFatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'org.PDFCreator.PDFGenerator'
}
archiveBaseName = 'pdf_creator'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task buildBallerina(type: Exec) {
dependsOn customFatJar
commandLine 'bal', 'build', "$rootDir/ballerina/service/backend"
}
build.dependsOn buildBallerina