Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
plugins {
id 'java'
id 'io.quarkus'
id("de.undercouch.download") version "5.4.0"
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation 'io.quarkus:quarkus-container-image-docker'
implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
implementation 'io.quarkiverse.mybatis:quarkus-mybatis:1.0.7'
implementation 'io.quarkus:quarkus-grpc'
implementation 'io.quarkus:quarkus-hibernate-orm'
implementation 'io.quarkus:quarkus-flyway'
implementation 'io.quarkiverse.mybatis:quarkus-mybatis-plus:1.0.7'
implementation 'io.quarkus:quarkus-jdbc-postgresql'
implementation 'io.quarkus:quarkus-arc'
implementation 'io.quarkus:quarkus-resteasy-reactive'
testImplementation 'io.quarkus:quarkus-junit5'
}
group 'cz.mendelu'
version '1.0.0-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-parameters'
}
compileTestJava {
options.encoding = 'UTF-8'
}
// read-only token
def protoRepositoryToken = 'XXXXXX'
def protoRepositoryTag = '1.0.5'
def protoRepositoryUrl = "https://gitlab.com/api/v4/projects/45963671/packages/generic/proto/" + protoRepositoryTag + "/proto.zip"
def protoZipFileDest = new File(buildDir, "myprotos/proto.zip")
def protoDir = "src/main/proto"
def allowedProtoFiles = ['hello.proto']
task deleteProtoDir(type: Delete) {
delete protoDir
}
task pullProtoFiles(type: Download) {
dependsOn deleteProtoDir
src protoRepositoryUrl
dest protoZipFileDest
header 'PRIVATE-TOKEN', protoRepositoryToken
doLast {
copy {
from zipTree(protoZipFileDest)
into protoDir
include allowedProtoFiles
}
}
}