Advertisement
Guest User

Untitled

a guest
Jul 9th, 2020
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. }
  5. dependencies {
  6. "org.jetbrains.kotlin:kotlin-runtime:1.2.71"
  7. }
  8. }
  9.  
  10. plugins {
  11. id 'org.jetbrains.kotlin.jvm' version '1.3.72'
  12. id 'application'
  13. }
  14.  
  15. apply plugin: 'idea'
  16. apply plugin: 'kotlin'
  17.  
  18. group 'ru.myitclub'
  19. version '1.0-SNAPSHOT'
  20.  
  21. mainClassName = 'ru.myitclub.Main'
  22.  
  23. repositories {
  24. mavenCentral()
  25. }
  26.  
  27. dependencies {
  28. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
  29.  
  30. }
  31.  
  32. compileKotlin {
  33. kotlinOptions.jvmTarget = "1.8"
  34. }
  35. compileTestKotlin {
  36. kotlinOptions.jvmTarget = "1.8"
  37. }
  38.  
  39. jar{
  40. manifest{
  41. attributes 'Main-Class': mainClassName
  42. }
  43. from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement