Gradle Kotlin脚本:“包含”-使用提供的参数无法调用以下功能

时间:2019-03-13 14:47:53

标签: gradle kotlin

IntelIJ IDEA 2018.3 Gradle 5.1。

在我的Kotlin脚本中

build.gradle.kts

build.gradle.kts


plugins {
    kotlin("jvm") version "1.3.20"
    id("com.github.johnrengelman.shadow") version "4.0.3"
    id("com.devsoap.vaadin-flow") version "1.0"
    id("org.gretty") version "2.3.1"
}

val kotlinVersion = "1.3.20" //by extra("1.3.20")
val jettyVersion = "9.4.14.v20181114"
val vaadinVersion = "12.0.4"

dependencies {
    //  Plugins
    implementation(kotlin("stdlib-jdk8"))
    implementation("com.github.jengelman.gradle.plugins:shadow:4.0.3")
    //
    implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
    //  Vaadin
    implementation("com.vaadin:vaadin-bom:$vaadinVersion")
    implementation("com.vaadin:vaadin-core:$vaadinVersion")
}

val shadowJar by tasks.getting(ShadowJar::class) {
    manifest.attributes["Main-Class"] = "com.myproject.Main" 

    mergeServiceFiles()

    include("frontend/*/*.*") // error here
}

但是我在IntelIJ IDEA中出错:

https://www.nltk.org/_modules/nltk/classify/scikitlearn.html

0 个答案:

没有答案