Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins {
- id 'java'
- id 'idea'
- id "org.jetbrains.kotlin.jvm" version '1.2.20'
- id "com.google.protobuf" version '0.8.3'
- id 'application'
- id 'com.github.johnrengelman.shadow' version '2.0.2'
- }
- group 'pl.poznan.put.cs.sk2'
- version '1.0-SNAPSHOT'
- sourceCompatibility = 1.8
- mainClassName = "pl.poznan.put.cs.sk2.MainKt"
- repositories {
- mavenCentral()
- }
- sourceSets {
- main.proto.srcDirs += '../message'
- main.java.srcDirs += "${protobuf.generatedFilesBaseDir}/main/java"
- }
- task copyPropertiesToJar(type: Copy) {
- from 'player.properties'
- into libsDir
- }
- dependencies {
- compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8'
- compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jre8'
- compile group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: '1.2.10'
- compile group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: '0.21'
- testCompile group: 'junit', name: 'junit', version: '4.12'
- compile group: 'no.tornado', name: 'tornadofx', version:'1.7.14'
- compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.5.1'
- compile group: 'com.jfoenix', name: 'jfoenix', version: '1.10.0'
- }
- protobuf {
- protoc {
- artifact = 'com.google.protobuf:protoc:3.5.1'
- }
- }
- jar {
- manifest {
- attributes 'Main-Class': 'pl.poznan.put.cs.sk2.MainKt'
- }
- }
- shadowJar {
- baseName = 'player'
- classifier = null
- version = null
- dependsOn copyPropertiesToJar
- }
- kotlin {
- experimental {
- coroutines 'enable'
- }
- }
- compileKotlin {
- kotlinOptions.jvmTarget = '1.8'
- }
- compileTestKotlin {
- kotlinOptions.jvmTarget = '1.8'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement