Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-android-extensions'
- android {
- compileSdkVersion 26
- defaultConfig {
- applicationId "xx.abcd.test"
- minSdkVersion 15
- targetSdkVersion 26
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
- implementation 'com.android.support:appcompat-v7:26.1.0'
- implementation 'com.android.support.constraint:constraint-layout:1.0.2'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:1.0.1'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
- implementation project(':postgresql-42.2.1')
- }
- buildscript {
- ext.kotlin_version = '1.2.30' // Required for Kotlin integration
- ext.spring_boot_version = '1.5.4.RELEASE'
- repositories {
- jcenter()
- }
- dependencies {
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // Required for Kotlin integration
- classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version" // See https://kotlinlang.org/docs/reference/compiler-plugins.html#kotlin-spring-compiler-plugin
- classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
- }
- }
- //apply plugin: 'kotlin' // Error:(51, 0) Cannot add extension with name 'kotlin', as there is an extension already registered with that name.
- apply plugin: "kotlin-spring" // See https://kotlinlang.org/docs/reference/compiler-plugins.html#kotlin-spring-compiler-plugin
- apply plugin: 'org.springframework.boot'
- jar {
- baseName = 'gs-rest-service'
- version = '0.1.0'
- }
- repositories {
- jcenter()
- }
- dependencies {
- compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" // Required for Kotlin integration
- compile 'org.springframework.boot:spring-boot-starter-web'
- testCompile('org.springframework.boot:spring-boot-starter-test')
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement