-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
35 lines (29 loc) · 1 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
import com.saveourtool.save.buildutils.*
@Suppress("DSL_SCOPE_VIOLATION", "RUN_IN_SCRIPT") // https://github.com/gradle/gradle/issues/22797
plugins {
id("com.saveourtool.save.buildutils.versioning-configuration")
id("com.saveourtool.save.buildutils.code-quality-convention")
id("com.saveourtool.save.buildutils.publishing-configuration")
alias(libs.plugins.talaiot.base)
java
}
val profile = properties.getOrDefault("save.profile", "dev") as String
registerLiquibaseTask(profile)
talaiot {
metrics {
// disabling due to problems with OSHI on some platforms
performanceMetrics = false
environmentMetrics = false
}
publishers {
timelinePublisher = true
}
}
allprojects {
configurations.all {
// if SNAPSHOT dependencies are used, refresh them periodically
resolutionStrategy.cacheDynamicVersionsFor(10, TimeUnit.MINUTES)
resolutionStrategy.cacheChangingModulesFor(10, TimeUnit.MINUTES)
}
}
createStackDeployTask(profile)