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" |
| 8 | id 'com.palantir.docker' |
| 9 | } |
| 10 | |
| 11 | apply plugin: 'java' |
| 12 | apply plugin: 'io.spring.dependency-management' |
| 13 | |
| 14 | def version = gitVersion() |
| 15 | def details = versionDetails() |
| 16 | |
| 17 | group = rootProject.group |
| 18 | version = '1' |
| 19 | sourceCompatibility = jdkVersion |
| 20 | def startClass = 'com.supwisdom.oauth.OAuthApplication' |
| 21 | |
| 22 | println("Build version: $version") |
| 23 | |
| 24 | bootJar { |
| 25 | mainClassName = startClass |
| 26 | manifest { |
| 27 | attributes('oauth-Version': version) |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | jar { |
| 32 | baseName = 'oauth' |
| 33 | } |
| 34 | |
| 35 | |
| 36 | dependencies { |
| 37 | |
| 38 | implementation 'org.springframework.boot:spring-boot-starter-data-jpa' |
| 39 | implementation 'org.springframework.boot:spring-boot-starter-data-redis' |
| 40 | implementation 'org.springframework.boot:spring-boot-starter-web' |
| 41 | implementation 'org.springframework.boot:spring-boot-starter-security' |
| 42 | implementation 'org.springframework.boot:spring-boot-starter-cache' |
| 43 | implementation 'org.springframework.boot:spring-boot-autoconfigure' |
| 44 | implementation 'org.springframework.security:spring-security-oauth2-jose' |
| 45 | implementation 'org.springframework.security:spring-security-oauth2-client' |
| 46 | implementation 'org.springframework.security:spring-security-oauth2-jose' |
| 47 | implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.1.5.RELEASE' |
| 48 | implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' |
| 49 | implementation 'org.springframework.session:spring-session-data-redis' |
| 50 | implementation 'commons-codec:commons-codec:1.12' |
| 51 | implementation 'com.jcabi:jcabi-manifests:1.1' |
| 52 | implementation 'org.slf4j:slf4j-parent:1.7.26' |
| 53 | implementation 'org.jetbrains.kotlin:kotlin-reflect' |
| 54 | implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' |
| 55 | implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5' |
| 56 | implementation group: 'com.sun.jersey', name: 'jersey-client', version: '1.19' |
| 57 | implementation group: 'javax.servlet', name: 'jstl', version: '1.2' |
| 58 | implementation group: 'taglibs', name: 'standard', version: '1.1.2' |
| 59 | implementation group: 'commons-codec', name: 'commons-codec', version: '1.6' |
| 60 | implementation 'org.dom4j:dom4j:2.1.1' |
| 61 | implementation 'commons-beanutils:commons-beanutils:1.9.3' |
| 62 | implementation 'commons-net:commons-net:3.6' |
| 63 | implementation 'org.postgresql:postgresql:42.2.5' |
| 64 | implementation 'net.javacrumbs.shedlock:shedlock-spring:2.5.0' |
| 65 | implementation 'net.javacrumbs.shedlock:shedlock-provider-redis-spring:2.5.0' |
| 66 | implementation 'org.bitbucket.b_c:jose4j:0.6.5' |
| 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 | |