forked from igniterealtime/Openfire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.gradle
41 lines (35 loc) · 1.08 KB
/
test.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
apply plugin: 'application'
mainClassName = 'org.igniterealtime.smack.inttest.SmackIntegrationTestFramework'
applicationDefaultJvmArgs = ["-enableassertions"]
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven {
url 'https://www.igniterealtime.org/archiva/repository/maven/'
}
}
dependencies {
compile group: 'org.igniterealtime.smack', name: 'smack-integration-test', version: smackVersion
// Workaround for https://discuss.gradle.org/t/unique-snapshot-dependencies-for-projects-own-subproject-in-pom-not-declared/35692?u=flow
// see https://discuss.gradle.org/t/how-to-force-a-dependency-version-while-also-substituting-a-transitive-dependency/26759/4?u=flow
components.all {
allVariants {
withDependencies { deps ->
deps.each { dep ->
if (dep.group == 'org.igniterealtime.smack') {
dep.version {
strictly smackVersion
}
}
}
}
}
}
}
println "Sinttest with ${smackVersion}"
run {
// Pass all system properties down to the "application" run
systemProperties System.getProperties()
}