blob: 232445fb4f3242b6c5b24de7307fe8240fef11c9 [file] [log] [blame]
qiaoweif408cf22019-08-02 11:02:44 +08001plugins {
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"
qiaoweif408cf22019-08-02 11:02:44 +08008}
9
10apply plugin: 'java'
11apply plugin: 'io.spring.dependency-management'
12
13def version = gitVersion()
14def details = versionDetails()
15
16group = rootProject.group
17version = '1'
18sourceCompatibility = jdkVersion
19def startClass = 'com.supwisdom.oauth.OAuthApplication'
20
21println("Build version: $version")
22
23bootJar {
24 mainClassName = startClass
25 manifest {
26 attributes('oauth-Version': version)
27 }
28}
29
30jar {
31 baseName = 'oauth'
32}
33
binquan.qiuu6cf8c4f2020-07-08 11:17:48 +080034tasks.withType(JavaCompile) {
35 options.encoding = "UTF-8"
36}
37
38
qiaoweif408cf22019-08-02 11:02:44 +080039
40dependencies {
qiaoweif408cf22019-08-02 11:02:44 +080041 implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
42 implementation 'org.springframework.boot:spring-boot-starter-data-redis'
43 implementation 'org.springframework.boot:spring-boot-starter-web'
44 implementation 'org.springframework.boot:spring-boot-starter-security'
45 implementation 'org.springframework.boot:spring-boot-starter-cache'
46 implementation 'org.springframework.boot:spring-boot-autoconfigure'
47 implementation 'org.springframework.security:spring-security-oauth2-jose'
48 implementation 'org.springframework.security:spring-security-oauth2-client'
49 implementation 'org.springframework.security:spring-security-oauth2-jose'
50 implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.1.5.RELEASE'
51 implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
52 implementation 'org.springframework.session:spring-session-data-redis'
qiaoweiefbd9fe2019-08-05 10:01:23 +080053 implementation 'org.springframework.boot:spring-boot-starter-cache'
54 implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE'
qiaoweif408cf22019-08-02 11:02:44 +080055 implementation 'org.jetbrains.kotlin:kotlin-reflect'
56 implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
qiaoweiefbd9fe2019-08-05 10:01:23 +080057 implementation 'commons-codec:commons-codec:1.12'
58 implementation 'org.apache.commons:commons-lang3:3.9'
qiaoweif408cf22019-08-02 11:02:44 +080059 implementation 'net.javacrumbs.shedlock:shedlock-spring:2.5.0'
60 implementation 'net.javacrumbs.shedlock:shedlock-provider-redis-spring:2.5.0'
qiaoweiefbd9fe2019-08-05 10:01:23 +080061
62 implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
63
64 implementation 'org.postgresql:postgresql:42.2.5'
65 implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
66 implementation 'com.jcabi:jcabi-manifests:1.1'
qiaoweif408cf22019-08-02 11:02:44 +080067 implementation 'org.bitbucket.b_c:jose4j:0.6.5'
qiaoweiefbd9fe2019-08-05 10:01:23 +080068 implementation 'io.github.microutils:kotlin-logging:1.6.26'
69 implementation 'org.slf4j:slf4j-parent:1.7.26'
70
71 implementation 'commons-dbcp:commons-dbcp:1.4'
qiaoweif408cf22019-08-02 11:02:44 +080072
73 implementation project(':payapi-common')
74
75 testImplementation 'org.springframework.boot:spring-boot-starter-test'
76 testImplementation 'io.rest-assured:rest-assured:3.3.0'
77 testImplementation 'io.rest-assured:spring-mock-mvc:3.3.0'
78 testImplementation 'org.hamcrest:hamcrest:2.1'
79
80}
81
82compileKotlin {
83 kotlinOptions {
84 freeCompilerArgs = ['-Xjsr305=strict']
85 jvmTarget = jdkVersion
86 }
87}
88
89compileTestKotlin {
90 kotlinOptions {
91 freeCompilerArgs = ['-Xjsr305=strict']
92 jvmTarget = jdkVersion
93 }
94}
95