-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathbuild.gradle
55 lines (50 loc) · 2.24 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
description = 'Base module of keycloak-mock'
configurations {
jsResourceJar {
transitive = false
}
htmlResourceJar {
transitive = false
}
}
ext {
dagger_version = '2.51.1'
}
dependencies {
implementation "io.jsonwebtoken:jjwt-impl:$jjwt_version"
implementation "io.jsonwebtoken:jjwt-jackson:$jjwt_version"
implementation "io.vertx:vertx-web:$vertx_version"
implementation "io.vertx:vertx-web-templ-freemarker:$vertx_version"
implementation "com.google.code.findbugs:jsr305:$jsr305_version"
implementation "com.google.dagger:dagger:$dagger_version"
implementation "org.slf4j:slf4j-api:$slf4j_version"
jsResourceJar "org.keycloak:keycloak-js-adapter:[email protected]"
htmlResourceJar "org.keycloak:keycloak-services:$keycloak_version"
testImplementation 'io.fusionauth:fusionauth-jwt:5.3.3'
testImplementation "io.rest-assured:rest-assured:$restassured_version"
// required to mock RoutingContext
testImplementation "io.vertx:vertx-codegen:$vertx_version"
testImplementation 'net.javacrumbs.json-unit:json-unit-assertj:3.4.1'
testImplementation "org.assertj:assertj-core:$assertj_version"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "org.junit.jupiter:junit-jupiter-params"
testImplementation "org.mockito:mockito-junit-jupiter:$mockito_version"
testRuntimeOnly "org.slf4j:slf4j-simple:$slf4j_version"
annotationProcessor "com.google.dagger:dagger-compiler:$dagger_version"
}
tasks.register('addResources', Copy) {
// make sure to fail if both JARs contain a NOTICE, then we need to merge the files somehow ...
duplicatesStrategy = DuplicatesStrategy.FAIL
from files(tarTree(configurations.jsResourceJar.singleFile)) {
include '/package/lib/keycloak.js'
include '/META-INF/NOTICE'
}
from files(zipTree(configurations.htmlResourceJar.singleFile)) {
include '/org/keycloak/protocol/oidc/endpoints/3p-cookies-step1.html'
include '/org/keycloak/protocol/oidc/endpoints/3p-cookies-step2.html'
include '/org/keycloak/protocol/oidc/endpoints/login-status-iframe.html'
include '/META-INF/NOTICE'
}
into 'build/resources/main'
}
processResources.dependsOn addResources