Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.88 KB | None | 0 0
  1. buildscript {
  2.     ext {
  3.         kotlinVersion = '1.2.70'
  4.         springBootVersion = '2.1.0.M4'
  5.     }
  6.     repositories {
  7.         mavenCentral()
  8.         maven { url "https://repo.spring.io/snapshot" }
  9.         maven { url "https://repo.spring.io/milestone" }
  10.     }
  11.     dependencies {
  12.         classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  13.         classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
  14.         classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
  15.     }
  16. }
  17.  
  18. apply plugin: 'kotlin'
  19. apply plugin: 'kotlin-spring'
  20. apply plugin: 'eclipse'
  21. apply plugin: 'org.springframework.boot'
  22. apply plugin: 'io.spring.dependency-management'
  23.  
  24. group = 'com.testy'
  25. version = '0.0.1-SNAPSHOT'
  26. sourceCompatibility = 1.8
  27. compileKotlin {
  28.     kotlinOptions {
  29.         freeCompilerArgs = ["-Xjsr305=strict"]
  30.         jvmTarget = "1.8"
  31.     }
  32. }
  33. compileTestKotlin {
  34.     kotlinOptions {
  35.         freeCompilerArgs = ["-Xjsr305=strict"]
  36.         jvmTarget = "1.8"
  37.     }
  38. }
  39.  
  40. repositories {
  41.     mavenCentral()
  42.     maven { url "https://repo.spring.io/snapshot" }
  43.     maven { url "https://repo.spring.io/milestone" }
  44. }
  45.  
  46.  
  47. dependencies {
  48.     implementation('org.springframework.boot:spring-boot-starter-data-rest')
  49.     implementation('com.fasterxml.jackson.module:jackson-module-kotlin')
  50.     implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
  51.     implementation("org.jetbrains.kotlin:kotlin-reflect")
  52.  
  53.     final RETROFIT_VERSION = '2.3.0'
  54.     compile group: 'io.reactivex.rxjava2', name: 'rxjava', version: '2.1.1'
  55.     implementation "com.squareup.retrofit2:retrofit:$RETROFIT_VERSION"
  56.     implementation "com.squareup.retrofit2:converter-gson:$RETROFIT_VERSION"
  57.     implementation "com.squareup.retrofit2:adapter-rxjava2:$RETROFIT_VERSION"
  58.     implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
  59.  
  60.     compile group: 'org.simpleframework', name: 'simple-xml', version: '2.7'
  61.  
  62.     testImplementation('org.springframework.boot:spring-boot-starter-test')
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement