From a3b792adf932417aea171a8ea11e49db8fa86fed Mon Sep 17 00:00:00 2001 From: Bruce Eckel Date: Fri, 12 May 2017 08:39:02 -0600 Subject: [PATCH] CI Exclusion --- arrays/ParallelPrefix3.java | 2 +- .../groovy/com/mindviewinc/plugins/TaggingPlugin.groovy | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arrays/ParallelPrefix3.java b/arrays/ParallelPrefix3.java index 9b976e92..cf7c1551 100644 --- a/arrays/ParallelPrefix3.java +++ b/arrays/ParallelPrefix3.java @@ -2,7 +2,7 @@ // (c)2017 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. -// !!!! CI Systems have trouble +// {ExcludeFromTravisCI} import java.util.*; public class ParallelPrefix3 { diff --git a/buildSrc/src/main/groovy/com/mindviewinc/plugins/TaggingPlugin.groovy b/buildSrc/src/main/groovy/com/mindviewinc/plugins/TaggingPlugin.groovy index e975ca06..2c1e5d4b 100644 --- a/buildSrc/src/main/groovy/com/mindviewinc/plugins/TaggingPlugin.groovy +++ b/buildSrc/src/main/groovy/com/mindviewinc/plugins/TaggingPlugin.groovy @@ -25,7 +25,12 @@ class TaggingPlugin implements Plugin { if(debug && tags.hasTags()) println tags // Exclude java sources that will not compile - if (tags.willNotCompile || (tags.lowLevelAppendix && runningInAppveyor)) { + if (tags.willNotCompile + || (tags.lowLevelAppendix && runningInAppveyor) // Exclude entire lowlevel appendix + || (tags.excludeFromAppveyorCI && runningInAppveyor) + || (tags.excludeFromTravisCI && runningInTravis) + || (tags.excludeFromCI && runningInCI) + ) { project.sourceSets.main.java.excludes.add(file.name) } else { JavaExec javaTask = null