Last active
December 6, 2018 01:03
-
-
Save bjonnh/a858259caae88c7f363a2ae7a0a3da1d to your computer and use it in GitHub Desktop.
Kts with postgresql as runtime
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar | |
plugins { | |
application | |
java | |
id("com.github.johnrengelman.shadow") version "2.0.4" | |
kotlin("jvm") version "1.3.10" | |
} | |
buildscript { | |
} | |
application { | |
mainClassName = "net.nprod.db.ontop_adapter.MainKt" | |
} | |
group = "net.nprod.db" | |
version = "0.1-SNAPSHOT" | |
repositories { | |
mavenCentral() | |
jcenter() | |
} | |
dependencies { | |
compile(kotlin("stdlib-jdk8")) | |
compile("com.google.code.gson:gson:2.8.5") | |
compile("io.ktor:ktor-server-core:1.0.1") | |
compile("io.ktor:ktor-server-netty:1.0.1") | |
compile("io.ktor:ktor-features:1.0.1") | |
compile("it.unibz.inf.ontop:ontop-system-sql-owlapi:3.0.0-beta-2") | |
compile("it.unibz.inf.ontop:ontop-rdf4j:3.0.0-beta-2") | |
compile("it.unibz.inf.ontop:ontop-owlapi:3.0.0-beta-2") | |
runtime(group = "net.sourceforge.owlapi", name = "owlapi-distribution", version = "5.1.8") | |
runtime("org.postgresql:postgresql:42.2.5") | |
testCompile("junit", "junit", "4.12") | |
} | |
configure<JavaPluginConvention> { | |
sourceCompatibility = JavaVersion.VERSION_1_8 | |
} | |
tasks.withType<KotlinCompile> { | |
kotlinOptions.jvmTarget = "1.8" | |
} | |
val compileKotlin: KotlinCompile by tasks | |
compileKotlin.kotlinOptions { | |
jvmTarget = "1.8" | |
} | |
val compileTestKotlin: KotlinCompile by tasks | |
compileTestKotlin.kotlinOptions { | |
jvmTarget = "1.8" | |
} | |
tasks.withType<ShadowJar> { | |
baseName = "app" | |
classifier = "" | |
version = "" | |
mergeServiceFiles() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment