Exit Full View

Tilda / build.gradle

// tilda (top-level)

buildscript {
    ext.kotlin_version = '1.4.10'
    ext.ktor_version = '1.5.1'
    ext.exposed_version = '0.17.13'
}


plugins {
    id 'org.jetbrains.kotlin.jvm' version "$kotlin_version"
}

repositories {
    mavenCentral()
}

defaultTasks 'installDist'
version = 0.2
group = 'uk.co.nickthecoder'

apply plugin: 'kotlin'
apply plugin: 'application'

mainClassName = "uk.co.nickthecoder.tilda.Tilda"

// The following sections were copy/pasted from Ktor : https://ktor.io/quickstart/quickstart/gradle.html
/*
compileKotlin {
    kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
    kotlinOptions.jvmTarget = "1.8"
}
*/

dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
    
    // Plugins for java.sound.sampled
    compile "com.googlecode.soundlibs:tritonus-share:0.3.7-2"
    compile "com.googlecode.soundlibs:mp3spi:1.9.5-1" // mp3
    compile "com.googlecode.soundlibs:vorbisspi:1.0.3-1" // ogg vorbis
    compile "org.jflac:jflac-codec:1.5.2" // flac

    compile "org.xerial:sqlite-jdbc:3.27.2.1" // SQLite database connection
    compile "org.slf4j:slf4j-simple:1.7.26" // Required by exposed
    compile "org.jetbrains.exposed:exposed:$exposed_version" // DAO framework

    compile "io.ktor:ktor-server-core:$ktor_version" // Web framework
    compile "io.ktor:ktor-server-netty:$ktor_version" // Using the lightweight netty http server
    compile "io.ktor:ktor-jackson:$ktor_version" // Json for the web server's REST API
    implementation "io.ktor:ktor-freemarker:$ktor_version"

    compile "org:jaudiotagger:2.0.3" // Read music meta-data.

    compile "org.apache.lucene:lucene-core:8.1.1"
    compile "org.apache.lucene:lucene-queryparser:8.1.1"
    compile "org.apache.lucene:lucene-analyzers-common:8.1.1"

}