blob: 349670343233fe05b911bb648f6e694057611cd6 [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 +080013def details = versionDetails()
14
qiaoweie1e11c62019-08-02 11:02:44 +080015sourceCompatibility = jdkVersion
16def startClass = 'com.supwisdom.oauth.OAuthApplication'
17
18println("Build version: $version")
19
20bootJar {
21 mainClassName = startClass
22 manifest {
23 attributes('oauth-Version': version)
24 }
25}
26
27jar {
28 baseName = 'oauth'
29}
30
31
32dependencies {
Tang Cheng91ca2772019-12-16 08:59:52 +080033 implementation project(":payapi-common")
qiaowei8df76ba2019-08-05 10:01:23 +080034
Tang Cheng91ca2772019-12-16 08:59:52 +080035 implementation "org.springframework.boot:spring-boot-starter-data-jpa"
36 implementation "org.springframework.boot:spring-boot-starter-data-redis"
37 implementation "org.springframework.boot:spring-boot-starter-web"
38 implementation "org.springframework.boot:spring-boot-starter-security"
39 implementation "org.springframework.boot:spring-boot-starter-cache"
40 implementation "org.springframework.boot:spring-boot-autoconfigure"
41 implementation "org.springframework.security:spring-security-oauth2-jose"
42 implementation "org.springframework.security:spring-security-oauth2-client"
43 implementation "org.springframework.security:spring-security-oauth2-jose"
44 implementation "org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure"
45 implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
46 implementation "org.springframework.session:spring-session-data-redis"
47 implementation "org.springframework.boot:spring-boot-starter-cache"
qiaowei8df76ba2019-08-05 10:01:23 +080048
Tang Cheng91ca2772019-12-16 08:59:52 +080049 implementation "org.thymeleaf.extras:thymeleaf-extras-springsecurity5"
50 implementation "org.springframework.social:spring-social-web:${springSocialVersion}"
51 implementation "net.javacrumbs.shedlock:shedlock-spring:${shedlockVersion}"
52 implementation "net.javacrumbs.shedlock:shedlock-provider-redis-spring:${shedlockVersion}"
53 implementation "org.bitbucket.b_c:jose4j:${jose4jVersion}"
54 implementation "org.apache.commons:commons-lang3:${lang3Version}"
qiaoweie1e11c62019-08-02 11:02:44 +080055
56}
57
58compileKotlin {
59 kotlinOptions {
60 freeCompilerArgs = ['-Xjsr305=strict']
61 jvmTarget = jdkVersion
62 }
63}
64
65compileTestKotlin {
66 kotlinOptions {
67 freeCompilerArgs = ['-Xjsr305=strict']
68 jvmTarget = jdkVersion
69 }
70}
71