Thank you so much <@U0B8ZP13Q>! I'm sorry for wast...
# getting-started
c
Thank you so much @cedric! I'm sorry for wasting your time, I'm coming from Python and have never used any Java build tools.
b
conner: If you make it like this
Copy code
buildscript {
    ext.kotlin_version = '1.1.3-eap-34'
}
Copy code
dependencies {
        classpath "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
Then you only have to update have to update the ext version in one place. Because if you have something like this
Copy code
dependencies {
        compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
somewhere down there line where there are other kotlin dependencies then you only have to update one
c
that is super helpful thank you
I have it building, but how can I run my main function?
do I need to have a main class?
b
You don't even need a class if you don't want one
You can do
Copy code
fun main(args : Array<String>) {...}
c
Alright I have that currently, but I cannot seem to build a valid jar from that
Copy code
jar {  
    manifest {
        attributes 'Main-Class': 'com.converc.ktor.MainKt'
    }

    // This line of code recursively collects and copies all of a project's files
    // and adds them to the JAR itself. One can extend this task, to skip certain 
    // files or particular types at will
    from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
Is what I am using currently
b
Let me open up a non android project real quick and see what I have
I have no idea about this honestly. I'm using this:https://github.com/Kotlin/anko/blob/master/build.gradle as a reference there is a zip task in there
c
oh thanks
thank you so much for your help
b
Your welcome. I bet the guys in general chat could help. They've helped me in the past