hallvard
10/09/2020, 2:16 PMChristian Dräger
10/15/2020, 9:00 PMplugins {
kotlin("jvm")
id("com.github.node-gradle.node") version "2.0.0"
}
node {
version = "12.7.0"
yarnVersion = "1.17.3"
}
val yarn_bundle by tasks.getting {
dependsOn("yarn_install")
}
val build by tasks.getting {
dependsOn("yarn_bundle")
}
val jar by tasks.getting(Jar::class) {
archiveFileName.set("${project.name}.jar")
dependsOn("yarn_bundle")
from(fileTree("dist"))
into("META-INF/resources")
}
:
By referencing the module that has the webjar as artifact it can be loaded into another submodule for examle
implementation(project(path = ":frontend", configuration = "default"))
hallvard
10/16/2020, 9:30 AM