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' |
| 5 | id 'org.jetbrains.kotlin.plugin.jpa' version '1.3.31' |
| 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 | |
| 13 | def version = gitVersion() |
| 14 | def details = versionDetails() |
| 15 | |
| 16 | group = rootProject.group |
| 17 | version = '1' |
| 18 | sourceCompatibility = jdkVersion |
| 19 | def startClass = 'com.supwisdom.oauth.OAuthApplication' |
| 20 | |
| 21 | println("Build version: $version") |
| 22 | |
| 23 | bootJar { |
| 24 | mainClassName = startClass |
| 25 | manifest { |
| 26 | attributes('oauth-Version': version) |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | jar { |
| 31 | baseName = 'oauth' |
| 32 | } |
| 33 | |
| 34 | |
| 35 | dependencies { |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 36 | implementation 'org.springframework.boot:spring-boot-starter-data-jpa' |
| 37 | implementation 'org.springframework.boot:spring-boot-starter-data-redis' |
| 38 | implementation 'org.springframework.boot:spring-boot-starter-web' |
| 39 | implementation 'org.springframework.boot:spring-boot-starter-security' |
| 40 | implementation 'org.springframework.boot:spring-boot-starter-cache' |
| 41 | implementation 'org.springframework.boot:spring-boot-autoconfigure' |
| 42 | implementation 'org.springframework.security:spring-security-oauth2-jose' |
| 43 | implementation 'org.springframework.security:spring-security-oauth2-client' |
| 44 | implementation 'org.springframework.security:spring-security-oauth2-jose' |
| 45 | implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.1.5.RELEASE' |
| 46 | implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' |
| 47 | implementation 'org.springframework.session:spring-session-data-redis' |
qiaowei | 8df76ba | 2019-08-05 10:01:23 +0800 | [diff] [blame] | 48 | implementation 'org.springframework.boot:spring-boot-starter-cache' |
| 49 | implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE' |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 50 | implementation 'org.jetbrains.kotlin:kotlin-reflect' |
| 51 | implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' |
qiaowei | 8df76ba | 2019-08-05 10:01:23 +0800 | [diff] [blame] | 52 | implementation 'commons-codec:commons-codec:1.12' |
| 53 | implementation 'org.apache.commons:commons-lang3:3.9' |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 54 | implementation 'net.javacrumbs.shedlock:shedlock-spring:2.5.0' |
| 55 | implementation 'net.javacrumbs.shedlock:shedlock-provider-redis-spring:2.5.0' |
qiaowei | 8df76ba | 2019-08-05 10:01:23 +0800 | [diff] [blame] | 56 | |
| 57 | implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5' |
| 58 | |
| 59 | implementation 'org.postgresql:postgresql:42.2.5' |
| 60 | implementation 'com.fasterxml.jackson.module:jackson-module-kotlin' |
| 61 | implementation 'com.jcabi:jcabi-manifests:1.1' |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 62 | implementation 'org.bitbucket.b_c:jose4j:0.6.5' |
qiaowei | 8df76ba | 2019-08-05 10:01:23 +0800 | [diff] [blame] | 63 | implementation 'io.github.microutils:kotlin-logging:1.6.26' |
| 64 | implementation 'org.slf4j:slf4j-parent:1.7.26' |
| 65 | |
| 66 | implementation 'commons-dbcp:commons-dbcp:1.4' |
qiaowei | e1e11c6 | 2019-08-02 11:02:44 +0800 | [diff] [blame] | 67 | |
| 68 | implementation project(':payapi-common') |
| 69 | |
| 70 | testImplementation 'org.springframework.boot:spring-boot-starter-test' |
| 71 | testImplementation 'io.rest-assured:rest-assured:3.3.0' |
| 72 | testImplementation 'io.rest-assured:spring-mock-mvc:3.3.0' |
| 73 | testImplementation 'org.hamcrest:hamcrest:2.1' |
| 74 | |
| 75 | } |
| 76 | |
| 77 | compileKotlin { |
| 78 | kotlinOptions { |
| 79 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 80 | jvmTarget = jdkVersion |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | compileTestKotlin { |
| 85 | kotlinOptions { |
| 86 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 87 | jvmTarget = jdkVersion |
| 88 | } |
| 89 | } |
| 90 | |