Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 1 | plugins { |
| 2 | id 'scala' |
| 3 | id 'java' |
| 4 | id 'io.quarkus' |
Matthias Andreas Benkard | f611d9e | 2020-01-13 05:04:52 +0100 | [diff] [blame^] | 5 | id "com.diffplug.gradle.spotless" version "${spotlessPluginVersion}" |
| 6 | id "com.github.ben-manes.versions" version "${versionsPluginVersion}" |
| 7 | id "se.patrikerdes.use-latest-versions" version "${useLatestVersionsPluginVersion}" |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 8 | } |
| 9 | |
Matthias Andreas Benkard | 513deee | 2020-01-12 20:58:56 +0100 | [diff] [blame] | 10 | sourceCompatibility = 11 |
| 11 | targetCompatibility = 11 |
| 12 | |
Matthias Andreas Benkard | 9e93731 | 2020-01-12 20:53:11 +0100 | [diff] [blame] | 13 | sourceSets { |
| 14 | main { |
| 15 | scala { |
| 16 | srcDirs = ['src/main/scala', 'src/main/java'] |
| 17 | } |
| 18 | java { |
| 19 | srcDirs = [] |
| 20 | } |
| 21 | } |
| 22 | test { |
| 23 | scala { |
| 24 | srcDirs = ['src/test/scala', 'src/test/java'] |
| 25 | } |
| 26 | java { |
| 27 | srcDirs = [] |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 32 | repositories { |
| 33 | mavenLocal() |
| 34 | mavenCentral() |
| 35 | } |
| 36 | |
Matthias Andreas Benkard | f611d9e | 2020-01-13 05:04:52 +0100 | [diff] [blame^] | 37 | tasks { |
| 38 | dependencyUpdates { |
| 39 | checkConstraints = true |
| 40 | gradleReleaseChannel = "current" |
| 41 | revision = "release" |
| 42 | } |
| 43 | } |
| 44 | |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 45 | dependencies { |
| 46 | implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}") |
| 47 | |
| 48 | implementation 'io.quarkus:quarkus-agroal' |
| 49 | //implementation 'io.quarkus:quarkus-elytron-security' |
| 50 | //implementation 'io.quarkus:quarkus-elytron-security-jdbc' |
| 51 | //implementation 'io.quarkus:quarkus-elytron-security-oauth2' |
| 52 | implementation 'io.quarkus:quarkus-flyway' |
| 53 | implementation 'io.quarkus:quarkus-hibernate-orm-panache' |
| 54 | implementation 'io.quarkus:quarkus-hibernate-validator' |
| 55 | implementation 'io.quarkus:quarkus-jdbc-postgresql' |
| 56 | implementation 'io.quarkus:quarkus-jsonb' |
| 57 | implementation 'io.quarkus:quarkus-jsonp' |
| 58 | //implementation 'io.quarkus:quarkus-keycloak-authorization' |
| 59 | implementation 'io.quarkus:quarkus-kubernetes' |
| 60 | implementation 'io.quarkus:quarkus-mailer' |
| 61 | //implementation 'io.quarkus:quarkus-oidc' |
| 62 | //implementation 'io.quarkus:quarkus-quartz' |
| 63 | implementation 'io.quarkus:quarkus-qute' |
| 64 | implementation 'io.quarkus:quarkus-resteasy' |
| 65 | implementation 'io.quarkus:quarkus-resteasy-jsonb' |
| 66 | implementation 'io.quarkus:quarkus-resteasy-qute' |
| 67 | implementation 'io.quarkus:quarkus-scala' |
| 68 | implementation 'io.quarkus:quarkus-scheduler' |
| 69 | //implementation 'io.quarkus:quarkus-smallrye-fault-tolerance' |
| 70 | //implementation 'io.quarkus:quarkus-smallrye-health' |
| 71 | //implementation 'io.quarkus:quarkus-smallrye-metrics' |
| 72 | //implementation 'io.quarkus:quarkus-smallrye-openapi' |
| 73 | |
| 74 | //implementation 'jakarta.transaction:jakarta.transaction-api' |
| 75 | //implementation 'org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec' |
| 76 | //implementation 'jakarta.persistence:jakarta.persistence-api' |
| 77 | |
Matthias Andreas Benkard | f611d9e | 2020-01-13 05:04:52 +0100 | [diff] [blame^] | 78 | implementation 'org.scala-lang:scala-library' |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 79 | |
Matthias Andreas Benkard | f611d9e | 2020-01-13 05:04:52 +0100 | [diff] [blame^] | 80 | implementation 'com.vladmihalcea:hibernate-types-52' |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 81 | |
| 82 | testImplementation 'io.quarkus:quarkus-junit5' |
| 83 | testImplementation 'io.rest-assured:rest-assured' |
Matthias Andreas Benkard | f611d9e | 2020-01-13 05:04:52 +0100 | [diff] [blame^] | 84 | |
| 85 | constraints { |
| 86 | implementation "org.scala-lang:scala-library:${scalaVersion}" |
| 87 | implementation "com.vladmihalcea:hibernate-types-52:${hibernateTypesVersion}" |
| 88 | } |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 89 | } |
| 90 | |
| 91 | spotless { |
| 92 | scala { |
| 93 | scalafmt() |
| 94 | } |
Matthias Andreas Benkard | 4be112f | 2020-01-12 20:29:38 +0100 | [diff] [blame] | 95 | |
| 96 | java { |
| 97 | googleJavaFormat() |
| 98 | removeUnusedImports() |
| 99 | } |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 100 | } |
| 101 | |
Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 102 | group 'eu.mulk' |
| 103 | version '0.1.0-SNAPSHOT' |