Skip to content
Permalink
Browse files

[JENKINS-14727] Make dependency to bundled maven-plugin optional

  • Loading branch information
uhafner committed Aug 22, 2012
1 parent 3c56e1f commit 6163e8e64d3e99ab835c0116d4166236a3206b60
Showing with 19 additions and 16 deletions.
  1. +1 −0 .classpath
  2. +1 −1 pom.xml
  3. +17 −15 src/main/java/hudson/plugins/analysis/graph/ColorPalette.java
@@ -16,6 +16,7 @@
<classpathentry including="**/*.java" kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="src" output="target/classes" path="target/generated-sources/localizer">
<attributes>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
@@ -4,7 +4,7 @@
<parent>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-pom</artifactId>
<version>1.39</version>
<version>1.40</version>
<relativePath>../analysis-pom/pom.xml</relativePath>
</parent>

@@ -1,30 +1,32 @@
package hudson.plugins.analysis.graph;

import java.awt.Color;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import com.google.common.collect.ImmutableList;

/**
* Replacement for Jenkins {@link hudson.util.ColorPalette} in order to get good
* looking graphs even if the green balls plug-in is installed.
*
* @author Ulli Hafner
*/
public class ColorPalette {
public static final Color RED = new Color(0xEF,0x29,0x29);
public static final Color YELLOW = new Color(0xFC,0xE9,0x4F);
public static final Color BLUE = new Color(0x72,0x9F,0xCF);
public static final Color GREY = new Color(0xAB,0xAB,0xAB);
@SuppressWarnings("javadoc")
public final class ColorPalette {
public static final Color RED = new Color(0xEF, 0x29, 0x29); // NOCHECKSTYLE
public static final Color YELLOW = new Color(0xFC, 0xE9, 0x4F); // NOCHECKSTYLE
public static final Color BLUE = new Color(0x72, 0x9F, 0xCF); // NOCHECKSTYLE
public static final Color GREY = new Color(0xAB, 0xAB, 0xAB); // NOCHECKSTYLE

/**
* Color list usable for generating line charts.
*/
public static List<Color> LINE_GRAPH = Collections.unmodifiableList(Arrays.asList(
new Color(0xCC0000),
new Color(0x3465a4),
new Color(0x73d216),
new Color(0xedd400)
));
}
public static final ImmutableList<Color> LINE_GRAPH = ImmutableList.of(
new Color(0xCC0000), new Color(0x3465a4), new Color(0x73d216), new Color(0xedd400));

/**
* Creates a new instance of {@link ColorPalette}.
*/
private ColorPalette() {
// prevents instantiation
}
}

0 comments on commit 6163e8e

Please sign in to comment.
You can’t perform that action at this time.