Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-14727] Make dependency to bundled maven-plugin optional
  • Loading branch information
uhafner committed Aug 22, 2012
1 parent 3c56e1f commit 6163e8e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
1 change: 1 addition & 0 deletions .classpath
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -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>

Expand Down
32 changes: 17 additions & 15 deletions src/main/java/hudson/plugins/analysis/graph/ColorPalette.java
@@ -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.