Stonks/app/build.gradle.kts

85 lines
2.7 KiB
Plaintext
Raw Normal View History

2021-06-25 19:12:54 +00:00
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Kotlin application project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.1/userguide/building_java_projects.html
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2021-06-25 19:12:54 +00:00
plugins {
// Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
id("org.jetbrains.kotlin.jvm") version "1.4.31"
2021-06-29 21:49:36 +00:00
kotlin("plugin.serialization") version "1.5.0"
2021-06-25 19:12:54 +00:00
// Apply the application plugin to add support for building a CLI application in Java.
application
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
// Use the Kotlin JDK 8 standard library.
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// This dependency is used by the application.
implementation("com.google.guava:guava:30.1-jre")
// Use the Kotlin test library.
testImplementation("org.jetbrains.kotlin:kotlin-test")
// Use the Kotlin JUnit integration.
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
2021-06-29 21:49:36 +00:00
implementation("org.jetbrains.kotlin:kotlin-reflect:1.5.20")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.1")
2021-06-29 21:49:36 +00:00
implementation("org.slf4j:slf4j-simple:1.7.30")
2021-06-29 21:49:36 +00:00
implementation("io.javalin:javalin:3.13.8")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0")
implementation("com.h2database:h2:1.4.200")
2021-07-06 20:41:47 +00:00
2021-06-29 21:49:36 +00:00
implementation("org.jetbrains.exposed:exposed-core:0.31.1")
implementation("org.jetbrains.exposed:exposed-dao:0.31.1")
implementation("org.jetbrains.exposed:exposed-jdbc:0.31.1")
implementation("org.jetbrains.exposed:exposed-java-time:0.31.1")
implementation("joda-time:joda-time:2.10.10")
implementation("com.beust:klaxon:5.5")
2021-06-30 19:59:27 +00:00
implementation("com.natpryce:konfig:1.6.10.0")
implementation("io.ktor:ktor-client-core:1.6.1")
implementation("io.ktor:ktor-client-java:1.6.1")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
2021-07-06 20:41:47 +00:00
dependsOn("copySinglePageApp")
}
tasks.register<Copy>("copySinglePageApp") {
from("../spa/build")
into(layout.buildDirectory.dir("resources/main/spa"))
2021-06-25 19:12:54 +00:00
}
2021-07-06 21:23:47 +00:00
tasks.withType<Jar> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest { attributes["Main-Class"] = "xyz.etztech.stonks.AppKt" }
configurations["compileClasspath"].forEach { file: File -> from(zipTree(file.absoluteFile)) }
}
2021-06-25 19:12:54 +00:00
application {
// Define the main class for the application.
mainClass.set("xyz.etztech.stonks.AppKt")
}