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' |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 7 | } |
| 8 | |
| 9 | apply plugin: 'java' |
| 10 | apply plugin: 'io.spring.dependency-management' |
| 11 | |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 12 | def startClass = 'com.supwisdom.oauth.OAuthApplication' |
| 13 | |
Tang Cheng | 1d56584 | 2019-12-18 20:33:41 +0800 | [diff] [blame^] | 14 | println("Build version: $buildVersion") |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 15 | |
| 16 | bootJar { |
Tang Cheng | f36d725 | 2019-12-17 14:14:50 +0800 | [diff] [blame] | 17 | enabled = true |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 18 | mainClassName = startClass |
| 19 | manifest { |
Tang Cheng | 1d56584 | 2019-12-18 20:33:41 +0800 | [diff] [blame^] | 20 | attributes('oauth-Version': buildVersion) |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 21 | } |
| 22 | } |
| 23 | |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 24 | dependencies { |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 25 | implementation project(":payapi-common") |
qiaowei | 8df76ba | 2019-08-05 10:01:23 +0800 | [diff] [blame] | 26 | |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 27 | 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" |
qiaowei | 8df76ba | 2019-08-05 10:01:23 +0800 | [diff] [blame] | 40 | |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 41 | 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}" |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 47 | |
| 48 | } |
| 49 | |
| 50 | compileKotlin { |
| 51 | kotlinOptions { |
| 52 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 53 | jvmTarget = jdkVersion |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | compileTestKotlin { |
| 58 | kotlinOptions { |
| 59 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 60 | jvmTarget = jdkVersion |
| 61 | } |
| 62 | } |
| 63 | |