|  | plugins { | 
|  | id 'java' | 
|  | id 'org.springframework.boot' | 
|  | id 'org.jetbrains.kotlin.jvm' | 
|  | id 'org.jetbrains.kotlin.plugin.jpa' | 
|  | id 'org.jetbrains.kotlin.plugin.spring' | 
|  | id "com.palantir.git-version" | 
|  | } | 
|  |  | 
|  | apply plugin: 'java' | 
|  | apply plugin: 'io.spring.dependency-management' | 
|  |  | 
|  | def details = versionDetails() | 
|  |  | 
|  | sourceCompatibility = jdkVersion | 
|  | def startClass = 'com.supwisdom.oauth.OAuthApplication' | 
|  |  | 
|  | println("Build version: $version") | 
|  |  | 
|  | bootJar { | 
|  | mainClassName = startClass | 
|  | manifest { | 
|  | attributes('oauth-Version': version) | 
|  | } | 
|  | } | 
|  |  | 
|  | jar { | 
|  | baseName = 'oauth' | 
|  | } | 
|  |  | 
|  | tasks.withType(JavaCompile) { | 
|  | options.encoding = "UTF-8" | 
|  | } | 
|  |  | 
|  |  | 
|  |  | 
|  | dependencies { | 
|  | implementation project(":payapi-common") | 
|  |  | 
|  | implementation "org.springframework.boot:spring-boot-starter-data-jpa" | 
|  | implementation "org.springframework.boot:spring-boot-starter-data-redis" | 
|  | implementation "org.springframework.boot:spring-boot-starter-web" | 
|  | implementation "org.springframework.boot:spring-boot-starter-security" | 
|  | implementation "org.springframework.boot:spring-boot-starter-cache" | 
|  | implementation "org.springframework.boot:spring-boot-autoconfigure" | 
|  | implementation "org.springframework.security:spring-security-oauth2-jose" | 
|  | implementation "org.springframework.security:spring-security-oauth2-client" | 
|  | implementation "org.springframework.security:spring-security-oauth2-jose" | 
|  | implementation "org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure" | 
|  | implementation "org.springframework.boot:spring-boot-starter-thymeleaf" | 
|  | implementation "org.springframework.session:spring-session-data-redis" | 
|  | implementation "org.springframework.boot:spring-boot-starter-cache" | 
|  |  | 
|  | implementation "org.thymeleaf.extras:thymeleaf-extras-springsecurity5" | 
|  | implementation "org.springframework.social:spring-social-web:${springSocialVersion}" | 
|  | implementation "net.javacrumbs.shedlock:shedlock-spring:${shedlockVersion}" | 
|  | implementation "net.javacrumbs.shedlock:shedlock-provider-redis-spring:${shedlockVersion}" | 
|  | implementation "org.bitbucket.b_c:jose4j:${jose4jVersion}" | 
|  | implementation "org.apache.commons:commons-lang3:${lang3Version}" | 
|  |  | 
|  | } | 
|  |  | 
|  | compileKotlin { | 
|  | kotlinOptions { | 
|  | freeCompilerArgs = ['-Xjsr305=strict'] | 
|  | jvmTarget = jdkVersion | 
|  | } | 
|  | } | 
|  |  | 
|  | compileTestKotlin { | 
|  | kotlinOptions { | 
|  | freeCompilerArgs = ['-Xjsr305=strict'] | 
|  | jvmTarget = jdkVersion | 
|  | } | 
|  | } | 
|  |  |