qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 1 | plugins { |
| 2 | id 'java' |
| 3 | id 'org.springframework.boot' |
| 4 | id 'org.jetbrains.kotlin.jvm' |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 5 | id 'org.jetbrains.kotlin.plugin.jpa' |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 6 | id 'org.jetbrains.kotlin.plugin.spring' |
| 7 | id "com.palantir.git-version" |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | apply plugin: 'java' |
| 11 | apply plugin: 'io.spring.dependency-management' |
| 12 | |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 13 | sourceCompatibility = jdkVersion |
| 14 | def startClass = 'com.supwisdom.oauth.OAuthApplication' |
| 15 | |
Tang Cheng | f36d725 | 2019-12-17 14:14:50 +0800 | [diff] [blame^] | 16 | println("Build version: $gitVersion") |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 17 | |
| 18 | bootJar { |
Tang Cheng | f36d725 | 2019-12-17 14:14:50 +0800 | [diff] [blame^] | 19 | enabled = true |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 20 | mainClassName = startClass |
| 21 | manifest { |
Tang Cheng | f36d725 | 2019-12-17 14:14:50 +0800 | [diff] [blame^] | 22 | attributes('oauth-Version': gitVersion) |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 23 | } |
| 24 | } |
| 25 | |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 26 | dependencies { |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 27 | implementation project(":payapi-common") |
qiaowei | 8df76ba | 2019-08-05 10:01:23 +0800 | [diff] [blame] | 28 | |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 29 | 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" |
qiaowei | 8df76ba | 2019-08-05 10:01:23 +0800 | [diff] [blame] | 42 | |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 43 | 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}" |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 49 | |
| 50 | } |
| 51 | |
| 52 | compileKotlin { |
| 53 | kotlinOptions { |
| 54 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 55 | jvmTarget = jdkVersion |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | compileTestKotlin { |
| 60 | kotlinOptions { |
| 61 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 62 | jvmTarget = jdkVersion |
| 63 | } |
| 64 | } |
| 65 | |