blob: 1d9dd6cd1a039cab8827775533d04b59dfbd19c3 [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'
qiaoweie1e11c62019-08-02 11:02:44 +08007}
8
9apply plugin: 'java'
10apply plugin: 'io.spring.dependency-management'
11
qiaoweie1e11c62019-08-02 11:02:44 +080012def startClass = 'com.supwisdom.oauth.OAuthApplication'
13
Tang Cheng1d565842019-12-18 20:33:41 +080014println("Build version: $buildVersion")
qiaoweie1e11c62019-08-02 11:02:44 +080015
16bootJar {
Tang Chengf36d7252019-12-17 14:14:50 +080017 enabled = true
qiaoweie1e11c62019-08-02 11:02:44 +080018 mainClassName = startClass
19 manifest {
Tang Cheng1d565842019-12-18 20:33:41 +080020 attributes('oauth-Version': buildVersion)
qiaoweie1e11c62019-08-02 11:02:44 +080021 }
22}
23
qiaoweie1e11c62019-08-02 11:02:44 +080024dependencies {
Tang Cheng91ca2772019-12-16 08:59:52 +080025 implementation project(":payapi-common")
qiaowei8df76ba2019-08-05 10:01:23 +080026
Tang Cheng91ca2772019-12-16 08:59:52 +080027 implementation "org.springframework.boot:spring-boot-starter-data-jpa"
28 implementation "org.springframework.boot:spring-boot-starter-data-redis"
29 implementation "org.springframework.boot:spring-boot-starter-web"
30 implementation "org.springframework.boot:spring-boot-starter-security"
31 implementation "org.springframework.boot:spring-boot-starter-cache"
32 implementation "org.springframework.boot:spring-boot-autoconfigure"
33 implementation "org.springframework.security:spring-security-oauth2-jose"
34 implementation "org.springframework.security:spring-security-oauth2-client"
35 implementation "org.springframework.security:spring-security-oauth2-jose"
36 implementation "org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure"
37 implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
38 implementation "org.springframework.session:spring-session-data-redis"
39 implementation "org.springframework.boot:spring-boot-starter-cache"
qiaowei8df76ba2019-08-05 10:01:23 +080040
Tang Cheng91ca2772019-12-16 08:59:52 +080041 implementation "org.thymeleaf.extras:thymeleaf-extras-springsecurity5"
42 implementation "org.springframework.social:spring-social-web:${springSocialVersion}"
43 implementation "net.javacrumbs.shedlock:shedlock-spring:${shedlockVersion}"
44 implementation "net.javacrumbs.shedlock:shedlock-provider-redis-spring:${shedlockVersion}"
45 implementation "org.bitbucket.b_c:jose4j:${jose4jVersion}"
46 implementation "org.apache.commons:commons-lang3:${lang3Version}"
qiaoweie1e11c62019-08-02 11:02:44 +080047
48}
49
50compileKotlin {
51 kotlinOptions {
52 freeCompilerArgs = ['-Xjsr305=strict']
53 jvmTarget = jdkVersion
54 }
55}
56
57compileTestKotlin {
58 kotlinOptions {
59 freeCompilerArgs = ['-Xjsr305=strict']
60 jvmTarget = jdkVersion
61 }
62}
63