blob: 2854362373851ef70299fa9438f21f6940aa122a [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
binquan.qiuu6cf8c4f2020-07-08 11:17:48 +080031tasks.withType(JavaCompile) {
32 options.encoding = "UTF-8"
33}
34
35
qiaoweie1e11c62019-08-02 11:02:44 +080036
37dependencies {
Tang Cheng91ca2772019-12-16 08:59:52 +080038 implementation project(":payapi-common")
qiaowei8df76ba2019-08-05 10:01:23 +080039
Tang Cheng91ca2772019-12-16 08:59:52 +080040 implementation "org.springframework.boot:spring-boot-starter-data-jpa"
41 implementation "org.springframework.boot:spring-boot-starter-data-redis"
42 implementation "org.springframework.boot:spring-boot-starter-web"
43 implementation "org.springframework.boot:spring-boot-starter-security"
44 implementation "org.springframework.boot:spring-boot-starter-cache"
45 implementation "org.springframework.boot:spring-boot-autoconfigure"
46 implementation "org.springframework.security:spring-security-oauth2-jose"
47 implementation "org.springframework.security:spring-security-oauth2-client"
48 implementation "org.springframework.security:spring-security-oauth2-jose"
49 implementation "org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure"
50 implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
51 implementation "org.springframework.session:spring-session-data-redis"
52 implementation "org.springframework.boot:spring-boot-starter-cache"
qiaowei8df76ba2019-08-05 10:01:23 +080053
Tang Cheng91ca2772019-12-16 08:59:52 +080054 implementation "org.thymeleaf.extras:thymeleaf-extras-springsecurity5"
55 implementation "org.springframework.social:spring-social-web:${springSocialVersion}"
56 implementation "net.javacrumbs.shedlock:shedlock-spring:${shedlockVersion}"
57 implementation "net.javacrumbs.shedlock:shedlock-provider-redis-spring:${shedlockVersion}"
58 implementation "org.bitbucket.b_c:jose4j:${jose4jVersion}"
59 implementation "org.apache.commons:commons-lang3:${lang3Version}"
qiaoweie1e11c62019-08-02 11:02:44 +080060
61}
62
63compileKotlin {
64 kotlinOptions {
65 freeCompilerArgs = ['-Xjsr305=strict']
66 jvmTarget = jdkVersion
67 }
68}
69
70compileTestKotlin {
71 kotlinOptions {
72 freeCompilerArgs = ['-Xjsr305=strict']
73 jvmTarget = jdkVersion
74 }
75}
76