blob: 2ae2546e5953e8390bb64b060385f35d1598fac2 [file] [log] [blame]
qiaoweie1e11c62019-08-02 11:02:44 +08001plugins {
2 id 'java'
3 id 'org.springframework.boot'
4 id 'org.jetbrains.kotlin.jvm'
Tang Cheng91ca2772019-12-16 08:59:52 +08005 id 'org.jetbrains.kotlin.plugin.jpa'
qiaoweie1e11c62019-08-02 11:02:44 +08006 id 'org.jetbrains.kotlin.plugin.spring'
7 id "com.palantir.git-version"
qiaoweie1e11c62019-08-02 11:02:44 +08008}
9
10apply plugin: 'java'
11apply plugin: 'io.spring.dependency-management'
12
qiaoweie1e11c62019-08-02 11:02:44 +080013sourceCompatibility = jdkVersion
14def startClass = 'com.supwisdom.oauth.OAuthApplication'
15
Tang Chengf36d7252019-12-17 14:14:50 +080016println("Build version: $gitVersion")
qiaoweie1e11c62019-08-02 11:02:44 +080017
18bootJar {
Tang Chengf36d7252019-12-17 14:14:50 +080019 enabled = true
qiaoweie1e11c62019-08-02 11:02:44 +080020 mainClassName = startClass
21 manifest {
Tang Chengf36d7252019-12-17 14:14:50 +080022 attributes('oauth-Version': gitVersion)
qiaoweie1e11c62019-08-02 11:02:44 +080023 }
24}
25
qiaoweie1e11c62019-08-02 11:02:44 +080026dependencies {
Tang Cheng91ca2772019-12-16 08:59:52 +080027 implementation project(":payapi-common")
qiaowei8df76ba2019-08-05 10:01:23 +080028
Tang Cheng91ca2772019-12-16 08:59:52 +080029 implementation "org.springframework.boot:spring-boot-starter-data-jpa"
30 implementation "org.springframework.boot:spring-boot-starter-data-redis"
31 implementation "org.springframework.boot:spring-boot-starter-web"
32 implementation "org.springframework.boot:spring-boot-starter-security"
33 implementation "org.springframework.boot:spring-boot-starter-cache"
34 implementation "org.springframework.boot:spring-boot-autoconfigure"
35 implementation "org.springframework.security:spring-security-oauth2-jose"
36 implementation "org.springframework.security:spring-security-oauth2-client"
37 implementation "org.springframework.security:spring-security-oauth2-jose"
38 implementation "org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure"
39 implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
40 implementation "org.springframework.session:spring-session-data-redis"
41 implementation "org.springframework.boot:spring-boot-starter-cache"
qiaowei8df76ba2019-08-05 10:01:23 +080042
Tang Cheng91ca2772019-12-16 08:59:52 +080043 implementation "org.thymeleaf.extras:thymeleaf-extras-springsecurity5"
44 implementation "org.springframework.social:spring-social-web:${springSocialVersion}"
45 implementation "net.javacrumbs.shedlock:shedlock-spring:${shedlockVersion}"
46 implementation "net.javacrumbs.shedlock:shedlock-provider-redis-spring:${shedlockVersion}"
47 implementation "org.bitbucket.b_c:jose4j:${jose4jVersion}"
48 implementation "org.apache.commons:commons-lang3:${lang3Version}"
qiaoweie1e11c62019-08-02 11:02:44 +080049
50}
51
52compileKotlin {
53 kotlinOptions {
54 freeCompilerArgs = ['-Xjsr305=strict']
55 jvmTarget = jdkVersion
56 }
57}
58
59compileTestKotlin {
60 kotlinOptions {
61 freeCompilerArgs = ['-Xjsr305=strict']
62 jvmTarget = jdkVersion
63 }
64}
65