2023-03-01 10:56:36 +00:00
|
|
|
plugins {
|
|
|
|
id("com.github.johnrengelman.shadow") version "7.1.2"
|
|
|
|
id("io.micronaut.application") version "3.7.3"
|
2023-03-01 18:43:35 +00:00
|
|
|
id("com.magnetichq.client-dependencies") version "2.0.0"
|
2023-03-01 10:56:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
version = "0.1"
|
|
|
|
group = "hello"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
annotationProcessor("io.micronaut:micronaut-http-validation")
|
|
|
|
implementation("io.micronaut:micronaut-http-client")
|
|
|
|
implementation("io.micronaut:micronaut-jackson-databind")
|
|
|
|
implementation("jakarta.annotation:jakarta.annotation-api")
|
|
|
|
runtimeOnly("ch.qos.logback:logback-classic")
|
|
|
|
implementation("io.micronaut:micronaut-validation")
|
2023-03-01 18:43:35 +00:00
|
|
|
implementation("io.micronaut.views:micronaut-views-thymeleaf")
|
2023-03-01 10:56:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
application {
|
|
|
|
mainClass.set("hello.Application")
|
|
|
|
}
|
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.toVersion("11")
|
|
|
|
targetCompatibility = JavaVersion.toVersion("11")
|
|
|
|
}
|
|
|
|
|
|
|
|
graalvmNative.toolchainDetection = false
|
|
|
|
micronaut {
|
|
|
|
runtime("netty")
|
|
|
|
testRuntime("junit5")
|
|
|
|
processing {
|
|
|
|
incremental(true)
|
|
|
|
annotations("hello.*")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-03-01 18:43:35 +00:00
|
|
|
clientDependencies {
|
|
|
|
installDir = 'src/main/resources/assets/vendor'
|
|
|
|
npm {
|
|
|
|
'bulma'('0.9.4', into: 'bulma') { include 'css/bulma.*' }
|
|
|
|
'htmx.org'('1.8.5', into: 'htmx') { include 'htmx.js', 'ext/preload.js' }
|
|
|
|
}
|
|
|
|
}
|