buildscript {
	ext.kotlin_version = '1.1.2-2'

	repositories {
		mavenLocal()
		mavenCentral()
	}
	dependencies {
		classpath "com.jtransc:jtransc-gradle-plugin:$jtranscVersion"
		classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
	}
}

apply plugin: "java"
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: 'jtransc'

repositories {
	mavenCentral()
}

dependencies {
	compile "org.jetbrains.kotlin:kotlin-stdlib"
}

mainClassName = "HelloWorld"

jtransc {
	treeshaking = true
	minimizeNames = false
}

sourceSets {
	main {
		kotlin {
			srcDirs = ['src']
		}
	}
	test {
		kotlin {
			srcDirs = ['test']
		}
	}
}