Skip to content

Commit ade6d53

Browse files
committed
Clean up build.gradle after restructured unit- and integration tests
1 parent 4abeb5b commit ade6d53

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed

base-plugin/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,6 @@ dependencies {
7474
gradleTest 'org.bouncycastle:bcprov-jdk15on:1.50'
7575
}
7676

77-
test {
78-
if (gradle.startParameter.isOffline()) {
79-
systemProperties 'TESTS_ARE_OFFLINE': '1'
80-
}
81-
}
82-
8377
generateTestConfig {
8478
testProperties mavenrepo: file('src/integTest/mavenrepo').absolutePath,
8579
flatrepo: flatRepoDir.absolutePath,

build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ plugins {
66
}
77

88
buildScan {
9-
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
9+
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
1010
termsOfServiceAgree = 'yes'
1111
}
1212

1313
allprojects {
1414
apply plugin: 'idea'
1515

16-
1716

1817
if (!releaseBuild) {
1918
version = "${version}-SNAPSHOT"
@@ -37,7 +36,7 @@ subprojects {
3736
maven { url torqueboxProxy }
3837
}
3938

40-
if(project.name != 'docs') {
39+
if (project.name != 'docs') {
4140
apply plugin: TestConfigPlugin
4241
apply plugin: 'java-gradle-plugin'
4342
apply plugin: 'groovy'
@@ -77,6 +76,12 @@ subprojects {
7776
}
7877

7978
install.dependsOn check
79+
80+
tasks.withType(Test) {
81+
if (gradle.startParameter.isOffline()) {
82+
systemProperties 'TESTS_ARE_OFFLINE': '1'
83+
}
84+
}
8085
}
8186

8287

jar-plugin/build.gradle

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,6 @@ task prepareTestRepo( type : Copy ) {
6060
}
6161

6262
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-
7263
dependsOn prepareTestRepo
7364
}
7465

@@ -123,6 +114,5 @@ gradleTest {
123114

124115
integrationTest {
125116
dependsOn prepareTestRepo
126-
systemProperties TESTREPO_LOCATION : testRepoDir.absolutePath
127117
}
128118
// vim: ft=groovy

0 commit comments

Comments
 (0)