55 lines
1.6 KiB
Groovy
55 lines
1.6 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 '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.bytedeco:javacv-platform:1.5.2'
|
|
implementation 'org.bytedeco:opencv-platform-gpu:4.1.2-1.5.2'
|
|
implementation 'com.google.guava:guava:28.2-jre'
|
|
|
|
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']
|
|
}
|
|
}
|