|
|
|
@ -27,11 +27,19 @@ test {
@@ -27,11 +27,19 @@ test {
|
|
|
|
|
useJUnitPlatform() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
task run(type: JavaExec) { |
|
|
|
|
group = "application" |
|
|
|
|
description = "Run the main class with JavaExecTask" |
|
|
|
|
classpath = sourceSets.main.runtimeClasspath |
|
|
|
|
mainClass = 'de.srsoftware.oidc.app.Application' |
|
|
|
|
args = ['--base','/home/srichter/workspace/LightOIDC/de.srsoftware.oidc.web/src/main/resources'] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
jar { |
|
|
|
|
manifest { |
|
|
|
|
attributes "Main-Class": "de.srsoftware.oidc.app.Application" |
|
|
|
|
} |
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE |
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE |
|
|
|
|
from { |
|
|
|
|
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } |
|
|
|
|
} |
|
|
|
|