This repository has been archived by the owner on Oct 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
95 lines (82 loc) · 3.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
buildscript {
ext {
springBootVersion = '1.5.2.RELEASE'
}
repositories {
maven { url "http://repo.spring.io/release" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id 'java'
id 'org.springframework.boot' version '1.5.2.RELEASE'
}
springBoot {
executable = true
buildInfo();
}
bootRun {
environment SPRING_PROFILES_ACTIVE: environment.SPRING_PROFILES_ACTIVE ?: "local"
}
group = 'org.gameontext'
version = '0.0.1-SNAPSHOT'
description = """gameon-auth-spring"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven { url "http://repo.spring.io/release" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.maven.apache.org/maven2" }
}
jar {
enabled = true
baseName = 'gameon-auth-spring-social'
version = '1.0.0'
}
task copyContextForDocker(type: Copy) {
dependsOn bootRepackage
from fileTree(dir: "src/main/docker", include: '*')
into "$buildDir/docker"
}
task copyAppForDocker(type: Copy) {
dependsOn bootRepackage
from fileTree(dir: "$buildDir/libs", include: '*.jar')
into "$buildDir/docker"
rename '.+', 'app.jar'
}
build.dependsOn = [copyAppForDocker,copyContextForDocker]
dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter-security', version:'1.5.2.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-jdbc', version:'1.5.2.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-social-facebook', version:'1.5.2.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version:'1.5.2.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf', version:'1.5.2.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version:'1.5.2.RELEASE'
compile group: 'org.springframework.social', name: 'spring-social-core', version:'1.1.4.RELEASE'
compile group: 'org.springframework.social', name: 'spring-social-web', version:'1.1.4.RELEASE'
compile group: 'org.springframework.social', name: 'spring-social-config', version:'1.1.4.RELEASE'
compile group: 'org.springframework.social', name: 'spring-social-security', version:'1.1.4.RELEASE'
compile group: 'org.springframework.social', name: 'spring-social-facebook', version:'2.0.3.RELEASE'
compile group: 'com.github.spring-social', name: 'spring-social-google', version:'1.1.3'
compile group: 'org.springframework.social', name: 'spring-social-github', version:'1.0.0.M4'
compile group: 'org.springframework.social', name: 'spring-social-twitter', version:'1.1.2.RELEASE'
compile(group: 'org.apache.httpcomponents', name: 'httpclient', version:'4.3.6') {
exclude(module: 'commons-logging')
}
compile group: 'io.jsonwebtoken', name: 'jjwt', version:'0.9.0'
compile group: 'org.springframework.security.oauth', name: 'spring-security-oauth2', version:'2.0.13.RELEASE'
compile group: 'org.apache.commons', name: 'commons-lang3', version:'3.3.2'
runtime group: 'org.hsqldb', name: 'hsqldb', version:'2.3.3'
testCompile group: 'org.springframework', name: 'spring-test', version:'4.3.7.RELEASE'
testCompile(group: 'org.springframework.boot', name: 'spring-boot-starter-test', version:'1.5.2.RELEASE') {
exclude(module: 'commons-logging')
}
testCompile group: 'junit', name: 'junit', version:'4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version:'2.8.9'
}