-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
91 lines (82 loc) · 2.23 KB
/
build.gradle.kts
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
/*
* Copyright (c) 2023. Smart Operating Block
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
plugins {
application
eclipse
java
alias(libs.plugins.java.qa)
}
group = "io.github.smartoperatingblock"
repositories {
mavenCentral()
maven {
url = uri("https://raw.githubusercontent.com/jacamo-lang/mvn-repo/master")
}
maven {
url = uri("https://repo.gradle.org/gradle/libs-releases")
}
maven {
url = uri("https://packages.confluent.io/maven")
}
maven {
url = uri("https://git.informatik.uni-hamburg.de/api/v4/groups/sane-public/-/packages/maven")
}
}
dependencies {
implementation(libs.azure.digital.twins)
implementation(libs.azure.identity)
implementation(libs.okhttp)
implementation(libs.gson)
implementation(libs.jacamo)
implementation(libs.kafka.clients)
implementation(libs.kafka.json)
implementation(libs.snakeyaml)
implementation(libs.wot.servient)
implementation(libs.wot.servient.binding.http)
testImplementation(libs.bundles.java.testing)
testRuntimeOnly(libs.junit.engine)
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
showStandardStreams = true
showCauses = true
showStackTraces = true
events(*org.gradle.api.tasks.testing.logging.TestLogEvent.values())
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
}
sourceSets.getByName("main") {
java.srcDir("src/env")
java.srcDir("src/agt")
java.srcDir("src/org")
java.srcDir("src/int")
java.srcDir("src/java")
resources.srcDir("src/resources")
}
tasks.named<JavaExec>("run") {
dependsOn("classes")
group = "JaCaMo"
description = "runs the JaCaMo application"
doFirst {
mkdir("log")
}
mainClass.set("jacamo.infra.JaCaMoLauncher")
args("automation_management_microservice.jcm")
classpath = project.sourceSets.main.get().runtimeClasspath
}
tasks.named("clean") {
delete("bin")
buildDir.deleteRecursively()
delete("log")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}