Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 1 | plugins { |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 2 | id 'java' |
| 3 | id 'io.quarkus' |
Matthias Andreas Benkard | f611d9e | 2020-01-13 05:04:52 +0100 | [diff] [blame] | 4 | 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 Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 7 | } |
| 8 | |
Matthias Andreas Benkard | 513deee | 2020-01-12 20:58:56 +0100 | [diff] [blame] | 9 | sourceCompatibility = 11 |
| 10 | targetCompatibility = 11 |
| 11 | |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 12 | repositories { |
| 13 | mavenLocal() |
| 14 | mavenCentral() |
| 15 | } |
| 16 | |
Matthias Andreas Benkard | f611d9e | 2020-01-13 05:04:52 +0100 | [diff] [blame] | 17 | tasks { |
| 18 | dependencyUpdates { |
| 19 | checkConstraints = true |
| 20 | gradleReleaseChannel = "current" |
| 21 | revision = "release" |
| 22 | } |
| 23 | } |
| 24 | |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 25 | dependencies { |
| 26 | implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}") |
| 27 | |
| 28 | implementation 'io.quarkus:quarkus-agroal' |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 29 | 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' |
| 33 | implementation 'io.quarkus:quarkus-jsonb' |
| 34 | implementation 'io.quarkus:quarkus-jsonp' |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 35 | implementation 'io.quarkus:quarkus-kubernetes' |
| 36 | implementation 'io.quarkus:quarkus-mailer' |
Matthias Andreas Benkard | 24a2514 | 2020-01-24 13:25:54 +0100 | [diff] [blame] | 37 | implementation 'io.quarkus:quarkus-oidc' |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 38 | implementation 'io.quarkus:quarkus-qute' |
| 39 | implementation 'io.quarkus:quarkus-resteasy' |
| 40 | implementation 'io.quarkus:quarkus-resteasy-jsonb' |
| 41 | implementation 'io.quarkus:quarkus-resteasy-qute' |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 42 | implementation 'io.quarkus:quarkus-scheduler' |
Matthias Andreas Benkard | e5f81e5 | 2020-01-18 12:48:40 +0100 | [diff] [blame] | 43 | |
| 44 | //implementation 'io.quarkus:quarkus-elytron-security' |
| 45 | //implementation 'io.quarkus:quarkus-elytron-security-jdbc' |
| 46 | //implementation 'io.quarkus:quarkus-elytron-security-oauth2' |
| 47 | //implementation 'io.quarkus:quarkus-keycloak-authorization' |
Matthias Andreas Benkard | e5f81e5 | 2020-01-18 12:48:40 +0100 | [diff] [blame] | 48 | //implementation 'io.quarkus:quarkus-quartz' |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 49 | //implementation 'io.quarkus:quarkus-smallrye-fault-tolerance' |
| 50 | //implementation 'io.quarkus:quarkus-smallrye-health' |
| 51 | //implementation 'io.quarkus:quarkus-smallrye-metrics' |
| 52 | //implementation 'io.quarkus:quarkus-smallrye-openapi' |
| 53 | |
| 54 | //implementation 'jakarta.transaction:jakarta.transaction-api' |
| 55 | //implementation 'org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec' |
| 56 | //implementation 'jakarta.persistence:jakarta.persistence-api' |
| 57 | |
Matthias Andreas Benkard | 5d71a9e | 2020-01-18 12:31:26 +0100 | [diff] [blame] | 58 | implementation 'org.mapstruct:mapstruct' |
| 59 | compileOnly 'org.mapstruct:mapstruct-processor' |
| 60 | |
| 61 | compileOnly 'com.google.code.findbugs:jsr305' |
| 62 | |
Matthias Andreas Benkard | f611d9e | 2020-01-13 05:04:52 +0100 | [diff] [blame] | 63 | implementation 'com.vladmihalcea:hibernate-types-52' |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 64 | |
Matthias Andreas Benkard | 5d71a9e | 2020-01-18 12:31:26 +0100 | [diff] [blame] | 65 | implementation "jakarta.security.jacc:jakarta.security.jacc-api" |
| 66 | implementation "net.java.dev.jna:jna" |
| 67 | |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 68 | testImplementation 'io.quarkus:quarkus-junit5' |
| 69 | testImplementation 'io.rest-assured:rest-assured' |
Matthias Andreas Benkard | f611d9e | 2020-01-13 05:04:52 +0100 | [diff] [blame] | 70 | |
| 71 | constraints { |
Matthias Andreas Benkard | f611d9e | 2020-01-13 05:04:52 +0100 | [diff] [blame] | 72 | implementation "com.vladmihalcea:hibernate-types-52:${hibernateTypesVersion}" |
Matthias Andreas Benkard | 5d71a9e | 2020-01-18 12:31:26 +0100 | [diff] [blame] | 73 | 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 Benkard | f611d9e | 2020-01-13 05:04:52 +0100 | [diff] [blame] | 78 | } |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | spotless { |
Matthias Andreas Benkard | 4be112f | 2020-01-12 20:29:38 +0100 | [diff] [blame] | 82 | java { |
| 83 | googleJavaFormat() |
| 84 | removeUnusedImports() |
| 85 | } |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 86 | } |
| 87 | |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 88 | group 'eu.mulk' |
| 89 | version '0.1.0-SNAPSHOT' |
Matthias Andreas Benkard | 2a10755 | 2020-01-23 10:47:52 +0100 | [diff] [blame] | 90 | |
| 91 | task yarnInstall(type:Exec) { |
| 92 | workingDir "src/main/resources/META-INF/resources" |
| 93 | commandLine "yarn", "install" |
| 94 | } |
| 95 | |
| 96 | task snowpack(type:Exec) { |
| 97 | dependsOn yarnInstall |
| 98 | |
| 99 | workingDir "src/main/resources/META-INF/resources" |
| 100 | commandLine "yarn", "run", "snowpack" |
| 101 | } |
| 102 | |
| 103 | task compileWeb { |
| 104 | dependsOn snowpack |
| 105 | |
| 106 | doLast {} |
| 107 | } |
| 108 | |
| 109 | build.dependsOn compileWeb |