blob: 3ab28f4cdb96aa7d1b357a30f90d105902eaeafe [file] [log] [blame]
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +01001plugins {
2 id 'scala'
3 id 'java'
4 id 'io.quarkus'
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +01005 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 Benkard4c5847b2020-01-12 15:42:02 +01008}
9
Matthias Andreas Benkard513deee2020-01-12 20:58:56 +010010sourceCompatibility = 11
11targetCompatibility = 11
12
Matthias Andreas Benkard9e937312020-01-12 20:53:11 +010013sourceSets {
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 Benkard4c5847b2020-01-12 15:42:02 +010032repositories {
33 mavenLocal()
34 mavenCentral()
35}
36
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010037tasks {
38 dependencyUpdates {
39 checkConstraints = true
40 gradleReleaseChannel = "current"
41 revision = "release"
42 }
43}
44
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010045dependencies {
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 Benkardf611d9e2020-01-13 05:04:52 +010078 implementation 'org.scala-lang:scala-library'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010079
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010080 implementation 'com.vladmihalcea:hibernate-types-52'
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010081
82 testImplementation 'io.quarkus:quarkus-junit5'
83 testImplementation 'io.rest-assured:rest-assured'
Matthias Andreas Benkardf611d9e2020-01-13 05:04:52 +010084
85 constraints {
86 implementation "org.scala-lang:scala-library:${scalaVersion}"
87 implementation "com.vladmihalcea:hibernate-types-52:${hibernateTypesVersion}"
88 }
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +010089}
90
91spotless {
92 scala {
93 scalafmt()
94 }
Matthias Andreas Benkard4be112f2020-01-12 20:29:38 +010095
96 java {
97 googleJavaFormat()
98 removeUnusedImports()
99 }
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +0100100}
101
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +0100102group 'eu.mulk'
103version '0.1.0-SNAPSHOT'