-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
82 lines (68 loc) · 2.15 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
73
74
75
76
77
78
79
80
81
82
description = 'opensaml-idp-example'
group = (System.getenv('DOCKER_REGISTRY') ?: 'com.alainodea')
version = (System.getenv('BUILD_NUMBER') ?: 'DEV')
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'se.transmode.gradle:gradle-docker:1.2'
}
}
apply plugin: 'java'
apply plugin: 'docker'
apply plugin: 'application'
mainClassName = "com.alainodea.idp.app.IdentityProviderMain"
run {
if (project.hasProperty("appArgs")) {
//noinspection GroovyAssignabilityCheck, GrUnresolvedAccess
args appArgs
}
}
compileJava {
sourceCompatibility = '1.9'
targetCompatibility = '1.9'
options.encoding = 'UTF-8'
}
compileTestJava {
sourceCompatibility = '1.9'
targetCompatibility = '1.9'
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'org.opensaml:opensaml-core:3.3.0'
compile 'org.opensaml:opensaml-messaging-api:3.3.0'
compile 'org.opensaml:opensaml-messaging-impl:3.3.0'
compile 'org.opensaml:opensaml-profile-api:3.3.0'
compile 'org.opensaml:opensaml-saml-api:3.3.0'
compile 'org.opensaml:opensaml-saml-impl:3.3.0'
compile 'org.opensaml:opensaml-security-api:3.3.0'
compile 'org.opensaml:opensaml-security-impl:3.3.0'
compile 'org.opensaml:opensaml-soap-api:3.3.0'
compile 'org.opensaml:opensaml-soap-impl:3.3.0'
compile 'org.opensaml:opensaml-storage-api:3.3.0'
compile 'org.opensaml:xmltooling:1.4.4'
compile 'org.opensaml:opensaml-xmlsec-api:3.3.0'
compile 'org.opensaml:opensaml-xmlsec-impl:3.3.0'
runtime group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.5'
}
docker {
baseImage = 'openjdk:8-jre-alpine'
}
task dockerContainer(type: Docker) {
dependsOn "distDocker"
doFirst {
addFile ("${this.description}-${this.version}.tar /")
entryPoint([
"/${this.description}-${this.version}/bin/${this.description}"
])
}
}