SciProgCentre / plotly.kt

An interactive Kotlin wrapper for plotly visualization tools
https://sciprogcentre.github.io/plotly.kt/
Apache License 2.0
149 stars 21 forks source link

The server dependency does not work with java 8 #10

Closed altavir closed 4 years ago

altavir commented 5 years ago

The problem is that current build generates an unnecessary gradle metadata file for plotlykt-server and it enforces use of java 11 in gradle 5.4+.

It will be fixed once we move to a common build plugin for all scientifik projects.

A workaround is to use nightly build from artifactory:

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
    kotlin("jvm") version "1.3.40"
}

repositories {
    jcenter()
    maven("https://dl.bintray.com/mipt-npm/dataforge")
    maven("https://dl.bintray.com/mipt-npm/scientifik")
    maven("https://dl.bintray.com/kotlin/ktor/")
    maven("http://npm.mipt.ru:8081/artifactory/gradle-dev")
}

dependencies {
    implementation("scientifik:plotlykt-server:0.1.2-dev-1")
}

tasks.withType<KotlinCompile> {
    kotlinOptions {
        jvmTarget = "1.8"
    }
}