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 | def details = versionDetails() |
| 14 | |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 15 | sourceCompatibility = jdkVersion |
| 16 | def startClass = 'com.supwisdom.oauth.OAuthApplication' |
| 17 | |
| 18 | println("Build version: $version") |
| 19 | |
| 20 | bootJar { |
| 21 | mainClassName = startClass |
| 22 | manifest { |
| 23 | attributes('oauth-Version': version) |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | jar { |
| 28 | baseName = 'oauth' |
| 29 | } |
| 30 | |
binquan.qiuu | 6cf8c4f | 2020-07-08 11:17:48 +0800 | [diff] [blame] | 31 | tasks.withType(JavaCompile) { |
| 32 | options.encoding = "UTF-8" |
| 33 | } |
| 34 | |
| 35 | |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 36 | |
| 37 | dependencies { |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 38 | implementation project(":payapi-common") |
qiaowei | 8df76ba | 2019-08-05 10:01:23 +0800 | [diff] [blame] | 39 | |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 40 | 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" |
qiaowei | 8df76ba | 2019-08-05 10:01:23 +0800 | [diff] [blame] | 53 | |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 54 | 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}" |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 60 | |
| 61 | } |
| 62 | |
| 63 | compileKotlin { |
| 64 | kotlinOptions { |
| 65 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 66 | jvmTarget = jdkVersion |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | compileTestKotlin { |
| 71 | kotlinOptions { |
| 72 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 73 | jvmTarget = jdkVersion |
| 74 | } |
| 75 | } |
| 76 | |