61 lines
2.1 KiB
Groovy
61 lines
2.1 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.2.1.RELEASE")
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id 'application'
|
|
id 'org.springframework.boot' version '2.2.2.RELEASE'
|
|
}
|
|
apply plugin: 'org.springframework.boot'
|
|
apply plugin: 'io.spring.dependency-management'
|
|
bootJar {
|
|
baseName = 'gs-rest-service'
|
|
version = '0.1.0'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
configurations {
|
|
all*.exclude group: 'ch.qos.logback'
|
|
all*.exclude group: 'org.slf4j'
|
|
all*.exclude group: 'org.apache.logging.log4j', module:'log4j-to-slf4j'
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':gpu-opencvcore')
|
|
implementation "org.eclipse.jdt:org.eclipse.jdt.annotation:${versionJdt}"
|
|
implementation "com.fasterxml.jackson.core:jackson-databind:${versionJackson}"
|
|
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${versionJackson}"
|
|
implementation "javax.xml.bind:jaxb-api:${versionJaxb}"
|
|
implementation 'org.bytedeco:ffmpeg-platform:4.2.1-1.5.2'
|
|
implementation 'com.google.inject:guice:4.0'
|
|
implementation 'org.apache.logging.log4j:log4j-api:2.13.0'
|
|
implementation 'org.apache.logging.log4j:log4j-core:2.13.0'
|
|
implementation 'org.apache.logging.log4j:log4j-web:2.13.0'
|
|
implementation 'org.apache.logging.log4j:log4j-iostreams:2.13.0'
|
|
implementation 'org.springframework.boot:spring-boot-starter-actuator:2.2.2.RELEASE'
|
|
implementation 'org.springframework.boot:spring-boot-starter-web:2.2.2.RELEASE'
|
|
implementation 'org.springframework:spring-jdbc:5.0.9.RELEASE'
|
|
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.2.2.RELEASE'
|
|
testImplementation "junit:junit:${versionJunit}"
|
|
testImplementation 'org.assertj:assertj-core:3.6.2'
|
|
testImplementation 'org.mockito:mockito-core:3.1.0'
|
|
}
|
|
|
|
application {
|
|
mainClassName = 'de.unidue.nes.talako.GpuTestSystem'
|
|
if (new File("/usr/lib/opencv").exists()) {
|
|
applicationDefaultJvmArgs = ['-Djava.library.path=/usr/lib/opencv']
|
|
} else {
|
|
applicationDefaultJvmArgs = ['-Djava.library.path=' + project(':gpu-opencvcore').getProjectDir() + '/win64']
|
|
}
|
|
}
|