Advertisement
Guest User

Spring boot

a guest
Mar 19th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 2.37 KB | None | 0 0
  1. apply plugin: 'com.android.application'
  2.  
  3. apply plugin: 'kotlin-android'
  4.  
  5. apply plugin: 'kotlin-android-extensions'
  6.  
  7.  
  8.  
  9. android {
  10.     compileSdkVersion 26
  11.     defaultConfig {
  12.         applicationId "sk.royalko.rentacar"
  13.         minSdkVersion 15
  14.         targetSdkVersion 26
  15.         versionCode 1
  16.         versionName "1.0"
  17.         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  18.     }
  19.     buildTypes {
  20.         release {
  21.             minifyEnabled false
  22.             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  23.         }
  24.     }
  25. }
  26.  
  27. dependencies {
  28.     implementation fileTree(include: ['*.jar'], dir: 'libs')
  29.     implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
  30.     implementation 'com.android.support:appcompat-v7:26.1.0'
  31.     implementation 'com.android.support.constraint:constraint-layout:1.0.2'
  32.     testImplementation 'junit:junit:4.12'
  33.     androidTestImplementation 'com.android.support.test:runner:1.0.1'
  34.     androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
  35.     implementation project(':postgresql-42.2.1')
  36. }
  37.  
  38. buildscript {
  39.     ext.kotlin_version = '1.2.30' // Required for Kotlin integration
  40.     ext.spring_boot_version = '1.5.4.RELEASE'
  41.     repositories {
  42.         jcenter()
  43.     }
  44.     dependencies {
  45.         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // Required for Kotlin integration
  46.         classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version" // See https://kotlinlang.org/docs/reference/compiler-plugins.html#kotlin-spring-compiler-plugin
  47.         classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
  48.     }
  49. }
  50.  
  51. //apply plugin: 'kotlin' // Error:(51, 0) Cannot add extension with name 'kotlin', as there is an extension already registered with that name.
  52. apply plugin: "kotlin-spring" // See https://kotlinlang.org/docs/reference/compiler-plugins.html#kotlin-spring-compiler-plugin
  53. apply plugin: 'org.springframework.boot'
  54.  
  55. jar {
  56.     baseName = 'gs-rest-service'
  57.     version = '0.1.0'
  58. }
  59.  
  60. repositories {
  61.     jcenter()
  62. }
  63.  
  64. dependencies {
  65.     compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" // Required for Kotlin integration
  66.     compile 'org.springframework.boot:spring-boot-starter-web'
  67.     testCompile('org.springframework.boot:spring-boot-starter-test')
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement