Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.71 KB | None | 0 0
  1. plugins {
  2.     id 'java'
  3.     id 'idea'
  4.     id "org.jetbrains.kotlin.jvm" version '1.2.20'
  5.     id "com.google.protobuf" version '0.8.3'
  6.     id 'application'
  7.     id 'com.github.johnrengelman.shadow' version '2.0.2'
  8. }
  9.  
  10. group 'pl.poznan.put.cs.sk2'
  11. version '1.0-SNAPSHOT'
  12.  
  13. sourceCompatibility = 1.8
  14.  
  15. mainClassName = "pl.poznan.put.cs.sk2.MainKt"
  16.  
  17. repositories {
  18.     mavenCentral()
  19. }
  20.  
  21. sourceSets {
  22.     main.proto.srcDirs += '../message'
  23.     main.java.srcDirs += "${protobuf.generatedFilesBaseDir}/main/java"
  24. }
  25.  
  26. task copyPropertiesToJar(type: Copy) {
  27.     from 'player.properties'
  28.     into libsDir
  29. }
  30.  
  31. dependencies {
  32.     compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8'
  33.     compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jre8'
  34.     compile group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: '1.2.10'
  35.     compile group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: '0.21'
  36.     testCompile group: 'junit', name: 'junit', version: '4.12'
  37.     compile group: 'no.tornado', name: 'tornadofx', version:'1.7.14'
  38.     compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.5.1'
  39.     compile group: 'com.jfoenix', name: 'jfoenix', version: '1.10.0'
  40. }
  41.  
  42. protobuf {
  43.     protoc {
  44.         artifact = 'com.google.protobuf:protoc:3.5.1'
  45.     }
  46. }
  47.  
  48. jar {
  49.     manifest {
  50.         attributes 'Main-Class': 'pl.poznan.put.cs.sk2.MainKt'
  51.     }
  52. }
  53.  
  54. shadowJar {
  55.     baseName = 'player'
  56.     classifier = null
  57.     version = null
  58.     dependsOn copyPropertiesToJar
  59. }
  60.  
  61. kotlin {
  62.     experimental {
  63.         coroutines 'enable'
  64.     }
  65. }
  66.  
  67. compileKotlin {
  68.     kotlinOptions.jvmTarget = '1.8'
  69. }
  70. compileTestKotlin {
  71.     kotlinOptions.jvmTarget = '1.8'
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement