Advertisement
Guest User

Untitled

a guest
Sep 12th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.79 KB | None | 0 0
  1.  
  2. buildscript {
  3.     ext.kotlin_version = '1.2.31'
  4.     repositories {
  5.         mavenCentral()
  6.     }
  7.     dependencies {
  8.         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  9.     }
  10. }
  11.  
  12. apply plugin: 'kotlin'
  13. apply plugin: 'distribution'
  14. apply plugin: 'application'
  15.  
  16. mainClassName = 'AppKt'
  17.  
  18. defaultTasks 'run'
  19.  
  20. repositories {
  21.     mavenCentral()
  22.     jcenter()
  23. }
  24.  
  25. dependencies {
  26.     compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  27.     testCompile 'junit:junit:4.11'
  28.     testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
  29.     compile 'net.dv8tion:JDA:3.7.1_421'
  30. }
  31.  
  32. jar {
  33.     manifest {
  34.         attributes 'Main-Class': 'AppKt'
  35.     }
  36.     from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement