Files
kotlin-fork/samples/socket/build.gradle
T
2017-03-31 18:46:25 +07:00

35 lines
603 B
Groovy

buildscript {
ext.kotlin_version = '1.1.1'
repositories {
mavenCentral()
}
dependencies {
classpath files('../gradle-plugin.jar')
classpath "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
}
apply plugin: 'konan'
konanInterop {
sockets {
defFile "sockets.def"
}
}
konanArtifacts {
echoServer {
inputFiles project.file("EchoServer.kt")
useInterop "sockets"
}
}
build {
doLast {
copy {
from compileKonanEchoServer.artifactPath
into projectDir.canonicalPath
}
}
}