Last active
January 8, 2018 21:02
-
-
Save epool/2a1fc5813b82ea5162c6100bbb973120 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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