-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle.kts
56 lines (42 loc) · 1.98 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
plugins {
id("java")
id("war")
id("org.springframework.boot") version Versions.springBoot
}
description = "Sample Spring Boot Rest Api"
repositories {
mavenCentral()
}
dependencies {
implementation(platform("org.springframework.boot:spring-boot-dependencies:${Versions.springBoot}"))
implementation("org.jodconverter:jodconverter-local-lo:${Versions.Dependencies.jodConverter}")
implementation("org.jodconverter:jodconverter-spring-boot-starter:${Versions.Dependencies.jodConverter}")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("commons-io:commons-io:${Versions.Dependencies.commonsIo}")
implementation("org.glassfish.jaxb:jaxb-runtime")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:${Versions.Dependencies.openApi}")
implementation("io.swagger.core.v3:swagger-annotations:${Versions.Dependencies.swagger}")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
java {
sourceCompatibility = Versions.jvm
targetCompatibility = Versions.jvm
}
// If you experience connection issue on Windows 10, you may have to set a project property
// pointing to a templateProfileDir where OpenGL is disabled by default. This must be done
// for the Test and BootRun tasks.
// Read here to know how to disable OpenGL:
// https://wiki.documentfoundation.org/OpenGL#:~:text=LibreOffice%205.3%20and%20newer%3A,Click%20%22Apply%20Changes%20and%20Restart%22
tasks.getByName<Test>("test") {
useJUnitPlatform()
project.findProperty("org.jodconverter.local.manager.templateProfileDir")?.let {
systemProperty("org.jodconverter.local.manager.templateProfileDir", it)
}
}
tasks.bootRun {
project.findProperty("org.jodconverter.local.manager.templateProfileDir")?.let {
systemProperty("org.jodconverter.local.manager.templateProfileDir", it)
}
}