Skip to content

Commit 82f489e

Browse files
Remove custom Gradle garbage collection tasks (#7225)
Garbage collection between Gradle tasks should no longer be needed now that tasks are run on Github servers.
1 parent 5a678bb commit 82f489e

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

build.gradle

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ animalsniffer {
8888
}
8989

9090
jar {
91-
bnd (
91+
bnd(
9292
"Bundle-Name": "rxjava",
9393
"Bundle-Vendor": "RxJava Contributors",
9494
"Bundle-Description": "Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.",
@@ -126,7 +126,6 @@ plugins.withType(EclipsePlugin) {
126126
}
127127

128128
test {
129-
130129
testLogging {
131130
// showing skipped occasionally should prevent CI timeout due to lack of standard output
132131
events=["skipped", "failed"] // "started", "passed"
@@ -173,31 +172,13 @@ jacoco {
173172
toolVersion = jacocoVersion
174173
}
175174

176-
task GCandMem(dependsOn: "check") doLast {
177-
logger.lifecycle("Memory usage before: {}", java.lang.management.ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getUsed() / 1024.0 / 1024.0)
178-
System.gc()
179-
Thread.sleep(200)
180-
logger.lifecycle("Memory usage: {}", java.lang.management.ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getUsed() / 1024.0 / 1024.0)
181-
}
182-
183-
task GCandMem2(dependsOn: "test") doLast {
184-
logger.lifecycle("Memory usage before: {}", java.lang.management.ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getUsed() / 1024.0 / 1024.0)
185-
System.gc()
186-
Thread.sleep(200)
187-
logger.lifecycle("Memory usage: {}", java.lang.management.ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getUsed() / 1024.0 / 1024.0)
188-
}
189-
190-
testng.dependsOn GCandMem2
191-
192175
jacocoTestReport {
193176
reports {
194177
xml.enabled = true
195178
html.enabled = true
196179
}
197180
}
198181

199-
jacocoTestReport.dependsOn GCandMem
200-
201182
build.dependsOn jacocoTestReport
202183

203184
checkstyle {

0 commit comments

Comments
 (0)