blob: ae576613190dea8fe07b2bf6da525254d13b4c27 [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 Benkardc27d1cb2020-01-26 11:11:24 +010029 implementation 'io.quarkus:quarkus-elytron-security-properties-file'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010030 implementation 'io.quarkus:quarkus-flyway'
31 implementation 'io.quarkus:quarkus-hibernate-orm-panache'
32 implementation 'io.quarkus:quarkus-hibernate-validator'
33 implementation 'io.quarkus:quarkus-jdbc-postgresql'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010034 implementation 'io.quarkus:quarkus-kubernetes'
35 implementation 'io.quarkus:quarkus-mailer'
Matthias Andreas Benkard24a25142020-01-24 13:25:54 +010036 implementation 'io.quarkus:quarkus-oidc'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010037 implementation 'io.quarkus:quarkus-resteasy'
38 implementation 'io.quarkus:quarkus-resteasy-jsonb'
39 implementation 'io.quarkus:quarkus-resteasy-qute'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010040 implementation 'io.quarkus:quarkus-scheduler'
Matthias Andreas Benkarde5f81e52020-01-18 12:48:40 +010041
42 //implementation 'io.quarkus:quarkus-elytron-security'
43 //implementation 'io.quarkus:quarkus-elytron-security-jdbc'
44 //implementation 'io.quarkus:quarkus-elytron-security-oauth2'
45 //implementation 'io.quarkus:quarkus-keycloak-authorization'
Matthias Andreas Benkarde5f81e52020-01-18 12:48:40 +010046 //implementation 'io.quarkus:quarkus-quartz'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010047 //implementation 'io.quarkus:quarkus-smallrye-fault-tolerance'
48 //implementation 'io.quarkus:quarkus-smallrye-health'
49 //implementation 'io.quarkus:quarkus-smallrye-metrics'
50 //implementation 'io.quarkus:quarkus-smallrye-openapi'
51
52 //implementation 'jakarta.transaction:jakarta.transaction-api'
53 //implementation 'org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec'
54 //implementation 'jakarta.persistence:jakarta.persistence-api'
55
Matthias Andreas Benkard5d71a9e2020-01-18 12:31:26 +010056 implementation 'org.mapstruct:mapstruct'
57 compileOnly 'org.mapstruct:mapstruct-processor'
58
59 compileOnly 'com.google.code.findbugs:jsr305'
60
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010061 implementation 'com.vladmihalcea:hibernate-types-52'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010062
Matthias Andreas Benkard5d71a9e2020-01-18 12:31:26 +010063 implementation "jakarta.security.jacc:jakarta.security.jacc-api"
64 implementation "net.java.dev.jna:jna"
65
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010066 testImplementation 'io.quarkus:quarkus-junit5'
67 testImplementation 'io.rest-assured:rest-assured'
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010068
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +010069 implementation 'org.jsoup:jsoup:1.12.1'
70
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010071 constraints {
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010072 implementation "com.vladmihalcea:hibernate-types-52:${hibernateTypesVersion}"
Matthias Andreas Benkard5d71a9e2020-01-18 12:31:26 +010073 implementation "org.mapstruct:mapstruct:${mapstructVersion}"
74 compileOnly "org.mapstruct:mapstruct-processor:${mapstructVersion}"
75 compileOnly "com.google.code.findbugs:jsr305:${findbugsJsr305Version}"
76 implementation "jakarta.security.jacc:jakarta.security.jacc-api:${jakartaJaccVersion}"
77 implementation "net.java.dev.jna:jna:${jnaVersion}"
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010078 }
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010079}
80
81spotless {
Matthias Andreas Benkard4be112f2020-01-12 20:29:38 +010082 java {
83 googleJavaFormat()
84 removeUnusedImports()
85 }
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010086}
87
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010088group 'eu.mulk'
89version '0.1.0-SNAPSHOT'
Matthias Andreas Benkard2a107552020-01-23 10:47:52 +010090
91task yarnInstall(type:Exec) {
92 workingDir "src/main/resources/META-INF/resources"
93 commandLine "yarn", "install"
94}
95
96task snowpack(type:Exec) {
97 dependsOn yarnInstall
98
99 workingDir "src/main/resources/META-INF/resources"
100 commandLine "yarn", "run", "snowpack"
101}
102
103task compileWeb {
104 dependsOn snowpack
105
106 doLast {}
107}
108
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100109processResources {
110 exclude("META-INF/resources/node_modules/**/*")
Matthias Andreas Benkard97130f92020-01-27 21:03:39 +0100111 exclude("META-INF/resources/package.json")
112 exclude("META-INF/resources/yarn.lock")
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100113}
114
Matthias Andreas Benkardb428e522020-01-26 08:13:04 +0100115quarkusBuild.dependsOn compileWeb