Advertisement
zinch

build.gradle for Kotlin

Nov 17th, 2016
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.82 KB | None | 0 0
  1. group 'tdd'
  2. version '1.0-SNAPSHOT'
  3.  
  4. buildscript {
  5.     ext.kotlin_version = '1.0.4'
  6.  
  7.     repositories {
  8.         mavenCentral()
  9.     }
  10.  
  11.     dependencies {
  12.         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  13.         classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-M2'
  14.     }
  15. }
  16.  
  17. repositories {
  18.     mavenCentral()
  19. }
  20.  
  21. apply plugin: 'kotlin'
  22.  
  23. dependencies {
  24.     compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  25.  
  26.     testCompile group: 'org.jetbrains.kotlin', name: 'kotlin-test', version: '1.0.5'
  27.     testCompile 'org.jetbrains.spek:spek-api:1.0.89'
  28.     testRuntime 'org.jetbrains.spek:spek-junit-platform-engine:1.0.89'
  29. }
  30.  
  31. apply plugin: 'idea'
  32. apply plugin: 'org.junit.platform.gradle.plugin'
  33.  
  34. junitPlatform {
  35.     engines {
  36.         include 'spek'
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement