-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsettings.gradle
More file actions
35 lines (30 loc) · 1.01 KB
/
settings.gradle
File metadata and controls
35 lines (30 loc) · 1.01 KB
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
// for enabling Gradle scan at GitHub Actions
plugins {
id("com.gradle.develocity") version "4.3"
}
rootProject.name = 'javapos-controls'
def boolean isRunningOnBuildServer = System.getenv('CI')
def boolean isDevHost = !isRunningOnBuildServer && !hasProperty('disableIDEDependencySubstitution')
if (startParameter.searchUpwards && isDevHost)
{
// comment this out if you want to use binary dependencies
includeBuildProject('javapos-contracts')
includeBuildProject('javapos-config-loader')
}
def includeBuildProject(projectName) {
if (file("../$projectName").exists()) {
includeBuild ("../$projectName") {
dependencySubstitution {
substitute module("org.javapos:$projectName") using project(':')
}
}
}
}
// enabling Gradle scan by agreeing to term of service
develocity {
buildScan {
publishing.onlyIf { isRunningOnBuildServer }
termsOfUseUrl = "https://gradle.com/terms-of-service"
termsOfUseAgree = "yes"
}
}