-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (51 loc) · 1.72 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.springframework.boot' version '2.7.11'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
id 'org.jetbrains.kotlin.jvm' version '1.6.21'
id 'org.jetbrains.kotlin.plugin.spring' version '1.6.21'
}
group = 'com.groupstp'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
jar {
duplicatesStrategy = 'exclude'
manifest {
attributes('Main-Class': 'com.groupstp.converter.ConverterApplication')
}
from {
configurations.implementation.getAsFileTree().files.collect { it.isDirectory() ? it : zipTree(it) }
}
}
configurations.implementation.canBeResolved = true
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.jsoup:jsoup:1.14.3'
implementation 'org.xhtmlrenderer:flying-saucer-pdf:9.1.22'
//LibreOffice -----------------------------------------------------------
implementation fileTree(dir: 'libs', include: '*.jar')
//TODO specify the path on the server
implementation files('C:\\Program Files\\LibreOffice\\program\\classes\\unoil.jar')
}
tasks.withType(KotlinCompile) {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '11'
}
}
tasks.named('test') {
useJUnitPlatform()
}
task run(type: JavaExec) {
group = "application"
description = "Runs the Spring Boot application."
classpath = sourceSets.main.runtimeClasspath
main = 'com.groupstp.converter.ConverterApplicationKt'
args '--spring.config.location=classpath:/application.properties'
}