forked from confluentinc/data-mesh-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
96 lines (85 loc) · 2.27 KB
/
build.gradle
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
plugins {
id 'org.springframework.boot' version '2.5.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'com.github.node-gradle.node' version '3.1.0'
id 'org.barfuin.gradle.taskinfo' version '1.0.1'
id 'com.google.cloud.tools.jib' version '3.1.4'
id 'java'
}
group = 'io.confluent.demo'
version = '0.0.51'
repositories {
mavenCentral()
maven {
url "https://ksqldb-maven.s3.amazonaws.com/maven/"
}
maven {
url "https://jenkins-confluent-packages-beta-maven.s3.amazonaws.com/7.0.0-beta210811194853/1/maven/"
}
}
dependencies {
implementation 'io.swagger.core.v3:swagger-annotations:2.0.0'
implementation 'com.google.code.gson:gson:2.8.1'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-websocket'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.webjars:webjars-locator-core'
implementation 'org.webjars:stomp-websocket:2.3.4'
implementation 'org.webjars:bootstrap:3.3.7'
implementation 'org.webjars:jquery:3.1.1-1'
implementation 'org.threeten:threetenbp:1.5.0'
implementation 'org.javatuples:javatuples:1.2'
implementation 'com.typesafe:config:1.4.1'
def noLog = {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
implementation 'io.confluent.ksql:ksqldb-api-client:0.21.0', noLog
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
ext['log4j2.version'] = '2.17.0'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
node {
nodeProjectDir = file("${project.projectDir}/client")
}
yarn_build {
dependsOn('yarn_install')
inputs.files fileTree("${project.projectDir}/client")
}
processResources {
dependsOn('yarn_build')
from("${project.buildDir}/generated/static") {into('static') }
}
jib {
container.mainClass = "io.confluent.demo.datamesh.DataMeshDemo"
to {
image = 'cnfldemos/data-mesh-demo'
tags = ["${version}"]
}
extraDirectories {
paths {
path {
from = file('scripts')
into = '/scripts'
}
permissions = [
'/scripts/*.sh': '755'
]
}
}
}
test {
useJUnitPlatform()
testLogging {
events "PASSED", "SKIPPED", "FAILED"
exceptionFormat "full"
}
}
bootRun {
if (project.hasProperty('args')) {
args project.args.split(',')
}
}