Skip to content

Instantly share code, notes, and snippets.

@epool
Last active January 8, 2018 21:02
Show Gist options
  • Save epool/2a1fc5813b82ea5162c6100bbb973120 to your computer and use it in GitHub Desktop.
Save epool/2a1fc5813b82ea5162c6100bbb973120 to your computer and use it in GitHub Desktop.
...
mainClassName = 'org.jetbrains.ktor.netty.DevelopmentHost'
kotlin {
experimental {
coroutines "enable"
}
}
...
dependencies {
...
compile "org.jetbrains.ktor:ktor-netty:$ktor_version"
compile "com.github.epool:pikmail:1.0.1"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:0.19.3"
...
}
...
jar {
manifest {
attributes(
'Main-Class': 'com.nearsoft.pikmail.api.Main'
)
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
task stage(type: Copy, dependsOn: [clean, build]) {
from jar.archivePath
into project.rootDir
rename {
'pikmail-api.jar'
}
}
stage.mustRunAfter(clean)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment