forked from bndtools/bnd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
40 lines (38 loc) · 914 Bytes
/
settings.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
/*
* Master Gradle initialization script
*/
/* Add bnd gradle plugin as a script dependency */
buildscript {
repositories {
maven {
url uri(bnd_repourl)
}
}
dependencies {
classpath bnd_plugin
}
/* Since the files in the repository change with each build, we need to recheck for changes */
configurations.classpath {
resolutionStrategy {
cacheChangingModulesFor 30, 'minutes'
cacheDynamicVersionsFor 30, 'minutes'
}
}
dependencies {
components {
all { ComponentMetadataDetails details ->
details.changing = true
}
}
}
/* Add bnd gradle plugin to buildscript classpath of rootProject */
def bndPlugin = files(configurations.classpath.files)
gradle.projectsLoaded { gradle ->
gradle.rootProject.buildscript {
dependencies {
classpath bndPlugin
}
}
}
}
apply plugin: 'biz.aQute.bnd.workspace'