blob: 8136ed52544a79ea6fb55b9af70780cf61088e96 [file] [log] [blame]
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +01001plugins {
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +01002 id 'java'
3 id 'io.quarkus'
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +01004 id "com.diffplug.gradle.spotless" version "${spotlessPluginVersion}"
5 id "com.github.ben-manes.versions" version "${versionsPluginVersion}"
6 id "se.patrikerdes.use-latest-versions" version "${useLatestVersionsPluginVersion}"
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +01007}
8
Matthias Andreas Benkard513deee2020-01-12 20:58:56 +01009sourceCompatibility = 11
10targetCompatibility = 11
11
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010012repositories {
13 mavenLocal()
14 mavenCentral()
15}
16
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010017tasks {
18 dependencyUpdates {
19 checkConstraints = true
20 gradleReleaseChannel = "current"
21 revision = "release"
22 }
23}
24
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010025dependencies {
26 implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
27
28 implementation 'io.quarkus:quarkus-agroal'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010029 implementation 'io.quarkus:quarkus-flyway'
30 implementation 'io.quarkus:quarkus-hibernate-orm-panache'
31 implementation 'io.quarkus:quarkus-hibernate-validator'
32 implementation 'io.quarkus:quarkus-jdbc-postgresql'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010033 implementation 'io.quarkus:quarkus-kubernetes'
34 implementation 'io.quarkus:quarkus-mailer'
Matthias Andreas Benkard24a25142020-01-24 13:25:54 +010035 implementation 'io.quarkus:quarkus-oidc'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010036 implementation 'io.quarkus:quarkus-resteasy'
37 implementation 'io.quarkus:quarkus-resteasy-jsonb'
38 implementation 'io.quarkus:quarkus-resteasy-qute'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010039 implementation 'io.quarkus:quarkus-scheduler'
Matthias Andreas Benkarde5f81e52020-01-18 12:48:40 +010040
41 //implementation 'io.quarkus:quarkus-elytron-security'
42 //implementation 'io.quarkus:quarkus-elytron-security-jdbc'
43 //implementation 'io.quarkus:quarkus-elytron-security-oauth2'
44 //implementation 'io.quarkus:quarkus-keycloak-authorization'
Matthias Andreas Benkarde5f81e52020-01-18 12:48:40 +010045 //implementation 'io.quarkus:quarkus-quartz'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010046 //implementation 'io.quarkus:quarkus-smallrye-fault-tolerance'
47 //implementation 'io.quarkus:quarkus-smallrye-health'
48 //implementation 'io.quarkus:quarkus-smallrye-metrics'
49 //implementation 'io.quarkus:quarkus-smallrye-openapi'
50
51 //implementation 'jakarta.transaction:jakarta.transaction-api'
52 //implementation 'org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec'
53 //implementation 'jakarta.persistence:jakarta.persistence-api'
54
Matthias Andreas Benkard5d71a9e2020-01-18 12:31:26 +010055 implementation 'org.mapstruct:mapstruct'
56 compileOnly 'org.mapstruct:mapstruct-processor'
57
58 compileOnly 'com.google.code.findbugs:jsr305'
59
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010060 implementation 'com.vladmihalcea:hibernate-types-52'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010061
Matthias Andreas Benkard5d71a9e2020-01-18 12:31:26 +010062 implementation "jakarta.security.jacc:jakarta.security.jacc-api"
63 implementation "net.java.dev.jna:jna"
64
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010065 testImplementation 'io.quarkus:quarkus-junit5'
66 testImplementation 'io.rest-assured:rest-assured'
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010067
68 constraints {
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010069 implementation "com.vladmihalcea:hibernate-types-52:${hibernateTypesVersion}"
Matthias Andreas Benkard5d71a9e2020-01-18 12:31:26 +010070 implementation "org.mapstruct:mapstruct:${mapstructVersion}"
71 compileOnly "org.mapstruct:mapstruct-processor:${mapstructVersion}"
72 compileOnly "com.google.code.findbugs:jsr305:${findbugsJsr305Version}"
73 implementation "jakarta.security.jacc:jakarta.security.jacc-api:${jakartaJaccVersion}"
74 implementation "net.java.dev.jna:jna:${jnaVersion}"
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010075 }
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010076}
77
78spotless {
Matthias Andreas Benkard4be112f2020-01-12 20:29:38 +010079 java {
80 googleJavaFormat()
81 removeUnusedImports()
82 }
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010083}
84
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010085group 'eu.mulk'
86version '0.1.0-SNAPSHOT'
Matthias Andreas Benkard2a107552020-01-23 10:47:52 +010087
88task yarnInstall(type:Exec) {
89 workingDir "src/main/resources/META-INF/resources"
90 commandLine "yarn", "install"
91}
92
93task snowpack(type:Exec) {
94 dependsOn yarnInstall
95
96 workingDir "src/main/resources/META-INF/resources"
97 commandLine "yarn", "run", "snowpack"
98}
99
100task compileWeb {
101 dependsOn snowpack
102
103 doLast {}
104}
105
106build.dependsOn compileWeb