buildscript {
	ext.kotlin_version = '1.1.2-4'
	repositories {
		mavenLocal()
		mavenCentral()
	}
	dependencies {
		classpath "com.jtransc:jtransc-gradle-plugin:$jtranscVersion"
		classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
	}
}

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

mainClassName = "BeepExample"

jtransc {
	treeshaking = true
	minimizeNames = false
}

sourceSets.main {
	java {
		srcDirs = [
            'src',
        ]
	}
}

repositories {
	mavenLocal()
	mavenCentral()
}

dependencies {
	implementation "net.java.dev.jna:jna:4.2.2"
	implementation "com.jtransc:jtransc-rt-core:$jtranscVersion"
	implementation "com.jtransc:jtransc-annotations:$jtranscVersion"
	testImplementation group: 'junit', name: 'junit', version: '4.+'
}

jtransc {
	minimizeNames = false
	treeshaking = true
}
