1
0
mirror of https://github.com/pcvolkmer/etl-processor.git synced 2025-04-19 17:26:51 +00:00

build: use webjars for JS dependencies for now

This commit is contained in:
Paul-Christian Volkmer 2024-01-15 07:18:14 +01:00
parent 568942bfe5
commit a1a252d5a9
3 changed files with 6 additions and 47 deletions

View File

@ -17,7 +17,9 @@ var versions = mapOf(
"bwhc-dto-java" to "0.2.0",
"hapi-fhir" to "6.10.2",
"httpclient5" to "5.2.1",
"mockito-kotlin" to "5.2.1"
"mockito-kotlin" to "5.2.1",
// Webjars
"echarts" to "5.4.3",
)
java {
@ -66,6 +68,8 @@ dependencies {
implementation("ca.uhn.hapi.fhir:hapi-fhir-structures-r4:${versions["hapi-fhir"]}")
implementation("org.apache.httpcomponents.client5:httpclient5:${versions["httpclient5"]}")
implementation("com.jayway.jsonpath:json-path")
implementation("org.webjars:webjars-locator:0.50")
implementation("org.webjars.npm:echarts:${versions["echarts"]}")
runtimeOnly("org.mariadb.jdbc:mariadb-java-client")
runtimeOnly("org.postgresql:postgresql")
developmentOnly("org.springframework.boot:spring-boot-devtools")

File diff suppressed because one or more lines are too long

View File

@ -38,7 +38,7 @@
</section>
</main>
<script th:src="@{/echarts.min.js}"></script>
<script th:src="@{/webjars/echarts/dist/echarts.min.js}"></script>
<script th:src="@{/scripts.js}"></script>
<script>
window.onload = () => {