blob: 7f9b9055a839dda21e5ee10ca192ab5b5d1c70ae [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
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +010068 implementation 'org.jsoup:jsoup:1.12.1'
69
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010070 constraints {
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010071 implementation "com.vladmihalcea:hibernate-types-52:${hibernateTypesVersion}"
Matthias Andreas Benkard5d71a9e2020-01-18 12:31:26 +010072 implementation "org.mapstruct:mapstruct:${mapstructVersion}"
73 compileOnly "org.mapstruct:mapstruct-processor:${mapstructVersion}"
74 compileOnly "com.google.code.findbugs:jsr305:${findbugsJsr305Version}"
75 implementation "jakarta.security.jacc:jakarta.security.jacc-api:${jakartaJaccVersion}"
76 implementation "net.java.dev.jna:jna:${jnaVersion}"
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010077 }
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010078}
79
80spotless {
Matthias Andreas Benkard4be112f2020-01-12 20:29:38 +010081 java {
82 googleJavaFormat()
83 removeUnusedImports()
84 }
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010085}
86
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010087group 'eu.mulk'
88version '0.1.0-SNAPSHOT'
Matthias Andreas Benkard2a107552020-01-23 10:47:52 +010089
90task yarnInstall(type:Exec) {
91 workingDir "src/main/resources/META-INF/resources"
92 commandLine "yarn", "install"
93}
94
95task snowpack(type:Exec) {
96 dependsOn yarnInstall
97
98 workingDir "src/main/resources/META-INF/resources"
99 commandLine "yarn", "run", "snowpack"
100}
101
102task compileWeb {
103 dependsOn snowpack
104
105 doLast {}
106}
107
108build.dependsOn compileWeb