Skip to content

Instantly share code, notes, and snippets.

@StefMa
Created December 22, 2017 06:53
Show Gist options
  • Save StefMa/0f020dd6adbeddc27fd2510e45d12949 to your computer and use it in GitHub Desktop.
Save StefMa/0f020dd6adbeddc27fd2510e45d12949 to your computer and use it in GitHub Desktop.
Kotlin DSL example
import com.novoda.gradle.release.PublishExtension
buildscript {
repositories {
jcenter()
}
dependencies {
classpath("com.novoda:bintray-release:0.8.0")
}
}
apply {
plugin("java")
plugin("com.novoda.bintray-release")
}
configure<PublishExtension> {
userOrg = "stefma"
groupId = "guru.stefma"
artifactId = "kotlin-dsl-example"
publishVersion = "0.0.1"
desc = "Great example abou Kotlin-DSL :tada:"
website = "https://medium.com/@StefMa"
}
task("Hi") {
doLast {
println("Hello World")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment