blob: aeffb673b743e7f8ec1fc8ca5a996be5f3f6ed11 [file] [log] [blame]
qiaoweif408cf22019-08-02 11:02:44 +08001plugins {
2 id 'java'
3 id 'org.springframework.boot'
4 id 'org.jetbrains.kotlin.jvm'
5 id 'org.jetbrains.kotlin.plugin.jpa' version '1.3.31'
6 id 'org.jetbrains.kotlin.plugin.spring'
7 id "com.palantir.git-version"
qiaoweif408cf22019-08-02 11:02:44 +08008}
9
10apply plugin: 'java'
11apply plugin: 'io.spring.dependency-management'
12
13def version = gitVersion()
14def details = versionDetails()
15
16group = rootProject.group
17version = '1'
18sourceCompatibility = jdkVersion
19def startClass = 'com.supwisdom.oauth.OAuthApplication'
20
21println("Build version: $version")
22
23bootJar {
24 mainClassName = startClass
25 manifest {
26 attributes('oauth-Version': version)
27 }
28}
29
30jar {
31 baseName = 'oauth'
32}
33
34
35dependencies {
qiaoweif408cf22019-08-02 11:02:44 +080036 implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
37 implementation 'org.springframework.boot:spring-boot-starter-data-redis'
38 implementation 'org.springframework.boot:spring-boot-starter-web'
39 implementation 'org.springframework.boot:spring-boot-starter-security'
40 implementation 'org.springframework.boot:spring-boot-starter-cache'
41 implementation 'org.springframework.boot:spring-boot-autoconfigure'
42 implementation 'org.springframework.security:spring-security-oauth2-jose'
43 implementation 'org.springframework.security:spring-security-oauth2-client'
44 implementation 'org.springframework.security:spring-security-oauth2-jose'
45 implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.1.5.RELEASE'
46 implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
47 implementation 'org.springframework.session:spring-session-data-redis'
qiaoweiefbd9fe2019-08-05 10:01:23 +080048 implementation 'org.springframework.boot:spring-boot-starter-cache'
49 implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE'
qiaoweif408cf22019-08-02 11:02:44 +080050 implementation 'org.jetbrains.kotlin:kotlin-reflect'
51 implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
qiaoweiefbd9fe2019-08-05 10:01:23 +080052 implementation 'commons-codec:commons-codec:1.12'
53 implementation 'org.apache.commons:commons-lang3:3.9'
qiaoweif408cf22019-08-02 11:02:44 +080054 implementation 'net.javacrumbs.shedlock:shedlock-spring:2.5.0'
55 implementation 'net.javacrumbs.shedlock:shedlock-provider-redis-spring:2.5.0'
qiaoweiefbd9fe2019-08-05 10:01:23 +080056
57 implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
58
59 implementation 'org.postgresql:postgresql:42.2.5'
60 implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
61 implementation 'com.jcabi:jcabi-manifests:1.1'
qiaoweif408cf22019-08-02 11:02:44 +080062 implementation 'org.bitbucket.b_c:jose4j:0.6.5'
qiaoweiefbd9fe2019-08-05 10:01:23 +080063 implementation 'io.github.microutils:kotlin-logging:1.6.26'
64 implementation 'org.slf4j:slf4j-parent:1.7.26'
65
66 implementation 'commons-dbcp:commons-dbcp:1.4'
qiaoweif408cf22019-08-02 11:02:44 +080067
68 implementation project(':payapi-common')
69
70 testImplementation 'org.springframework.boot:spring-boot-starter-test'
71 testImplementation 'io.rest-assured:rest-assured:3.3.0'
72 testImplementation 'io.rest-assured:spring-mock-mvc:3.3.0'
73 testImplementation 'org.hamcrest:hamcrest:2.1'
74
75}
76
77compileKotlin {
78 kotlinOptions {
79 freeCompilerArgs = ['-Xjsr305=strict']
80 jvmTarget = jdkVersion
81 }
82}
83
84compileTestKotlin {
85 kotlinOptions {
86 freeCompilerArgs = ['-Xjsr305=strict']
87 jvmTarget = jdkVersion
88 }
89}
90