File tree Expand file tree Collapse file tree 3 files changed +8
-19
lines changed Expand file tree Collapse file tree 3 files changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -74,12 +74,6 @@ dependencies {
74
74
gradleTest ' org.bouncycastle:bcprov-jdk15on:1.50'
75
75
}
76
76
77
- test {
78
- if (gradle. startParameter. isOffline()) {
79
- systemProperties ' TESTS_ARE_OFFLINE' : ' 1'
80
- }
81
- }
82
-
83
77
generateTestConfig {
84
78
testProperties mavenrepo : file(' src/integTest/mavenrepo' ). absolutePath,
85
79
flatrepo : flatRepoDir. absolutePath,
Original file line number Diff line number Diff line change @@ -6,14 +6,13 @@ plugins {
6
6
}
7
7
8
8
buildScan {
9
- termsOfServiceUrl = ' https://gradle.com/terms-of-service'
9
+ termsOfServiceUrl = ' https://gradle.com/terms-of-service'
10
10
termsOfServiceAgree = ' yes'
11
11
}
12
12
13
13
allprojects {
14
14
apply plugin : ' idea'
15
15
16
-
17
16
18
17
if (! releaseBuild) {
19
18
version = " ${ version} -SNAPSHOT"
@@ -37,7 +36,7 @@ subprojects {
37
36
maven { url torqueboxProxy }
38
37
}
39
38
40
- if (project. name != ' docs' ) {
39
+ if (project. name != ' docs' ) {
41
40
apply plugin : TestConfigPlugin
42
41
apply plugin : ' java-gradle-plugin'
43
42
apply plugin : ' groovy'
@@ -77,6 +76,12 @@ subprojects {
77
76
}
78
77
79
78
install. dependsOn check
79
+
80
+ tasks. withType(Test ) {
81
+ if (gradle. startParameter. isOffline()) {
82
+ systemProperties ' TESTS_ARE_OFFLINE' : ' 1'
83
+ }
84
+ }
80
85
}
81
86
82
87
Original file line number Diff line number Diff line change @@ -60,15 +60,6 @@ task prepareTestRepo( type : Copy ) {
60
60
}
61
61
62
62
test {
63
-
64
- if (gradle. startParameter. isOffline()) {
65
- systemProperties ' TESTS_ARE_OFFLINE' : ' 1'
66
- }
67
-
68
- systemProperties TESTROOT : new File (buildDir,' tmp/test/unittests' ). absolutePath
69
- systemProperties TESTREPO_LOCATION : testRepoDir. absolutePath
70
- systemProperties ' logback.configurationFile' : new File (projectDir,' src/test/resources/logback-test.xml' ). absolutePath
71
-
72
63
dependsOn prepareTestRepo
73
64
}
74
65
@@ -123,6 +114,5 @@ gradleTest {
123
114
124
115
integrationTest {
125
116
dependsOn prepareTestRepo
126
- systemProperties TESTREPO_LOCATION : testRepoDir. absolutePath
127
117
}
128
118
// vim: ft=groovy
You can’t perform that action at this time.
0 commit comments