forked from Yubico/java-webauthn-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (59 loc) · 1.75 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
66
67
68
69
70
71
72
plugins {
id 'java'
id 'war'
id 'application'
id 'scala'
}
description = 'WebAuthn demo'
configurations {
forJdk10
}
dependencies {
implementation(
project(':webauthn-server-attestation'),
project(':webauthn-server-core'),
project(':yubico-util'),
addVersion('com.google.guava:guava'),
addVersion('com.fasterxml.jackson.core:jackson-databind'),
addVersion('com.upokecenter:cbor'),
addVersion('javax.ws.rs:javax.ws.rs-api'),
addVersion('org.eclipse.jetty:jetty-server'),
addVersion('org.eclipse.jetty:jetty-servlet'),
addVersion('org.glassfish.jersey.containers:jersey-container-servlet-core'),
addVersion('org.slf4j:slf4j-api'),
)
forJdk10(
addVersion('javax.activation:activation'),
addVersion('javax.xml.bind:jaxb-api'),
)
runtimeOnly(
configurations.forJdk10,
addVersion('ch.qos.logback:logback-classic'),
addVersion('org.glassfish.jersey.containers:jersey-container-servlet'),
addVersion('org.glassfish.jersey.inject:jersey-hk2'),
)
testImplementation(
project(':webauthn-server-core').sourceSets.test.output,
project(':yubico-util-scala'),
addVersion('junit:junit'),
addVersion('org.mockito:mockito-core'),
addVersion('org.scala-lang:scala-library'),
addVersion('org.scalacheck:scalacheck_2.13'),
addVersion('org.scalatest:scalatest_2.13'),
)
modules {
module('javax.servlet:servlet-api') {
replacedBy('javax.servlet:javax.servlet-api')
}
}
}
mainClassName = 'demo.webauthn.EmbeddedServer'
[installDist, distZip, distTar].each { task ->
def intoDir = (task == installDist) ? "/" : "${project.name}-${project.version}"
task.into(intoDir) {
from 'keystore.jks'
from('src/main/webapp') {
into 'src/main/webapp'
}
}
}