Add run task for easier running

This commit is contained in:
Mark Vainomaa 2018-04-27 17:39:39 +03:00
parent 13006d5280
commit 6108028d05
Signed by: mikroskeem
GPG Key ID: 1B3F9523B542D315

View File

@ -47,6 +47,11 @@ val jar by tasks.getting(Jar::class) {
} }
} }
val run by tasks.creating(JavaExec::class) {
classpath = java.sourceSets["main"].runtimeClasspath
main = "eu.mikroskeem.uurimustoo.algoritmidetest.Main"
}
val wrapper by tasks.creating(Wrapper::class) { val wrapper by tasks.creating(Wrapper::class) {
gradleVersion = "4.7" gradleVersion = "4.7"
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip" distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"