Skip to content

Commit

Permalink
change package name
Browse files Browse the repository at this point in the history
update pom
  • Loading branch information
micycle1 committed Nov 7, 2021
1 parent 030059a commit 269dba0
Show file tree
Hide file tree
Showing 34 changed files with 153 additions and 97 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
run: mvn -B -Puber-jar verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
- uses: actions/upload-artifact@v2
with:
name: PeasyGradients Uber-jar
path: target/*.jar
98 changes: 77 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>micycle.peasyGradients</groupId>
<groupId>micycle</groupId>
<artifactId>PeasyGradients</artifactId>
<version>0.9-SNAPSHOT</version>
<version>0.9.1-SNAPSHOT</version>
<name>PeasyGradients</name>

<properties>
<sonar.projectKey>micycle1_PeasyGradients</sonar.projectKey>
<sonar.organization>micycle</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
</properties>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
Expand All @@ -20,33 +26,82 @@
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>deploy</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>all-dependencies</id>
<phase>package</phase>
<id>attach-javadocs</id>
<phase>deploy</phase>
<goals>
<goal>single</goal>
<goal>jar</goal>
</goals>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<excludes>
<exclude>Test.java</exclude>
</excludes>
<doclint>none</doclint> <!--Prevent Javadoc incomplete errors -->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<properties>
<sonar.projectKey>micycle1_PeasyGradients</sonar.projectKey>
<sonar.organization>micycle</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
</properties>
<profiles>
<profile>
<id>uber-jar</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/**</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<repositories>
<repository>
<id>clojars</id>
<url>https://clojars.org/repo/</url>
</repository>
</repositories>

<dependencies>
<dependency>
Expand All @@ -55,10 +110,11 @@
<version>2.3.2</version>
</dependency>
<dependency>
<groupId>org.processing</groupId>
<artifactId>core</artifactId>
<version>3.3.7</version>
<scope>provided</scope> <!-- don't include processing in maven build -->
<groupId>quil</groupId>
<artifactId>processing-core</artifactId>
<version>3.5.4</version>
<scope>provided</scope> <!-- don't package into uber jar -->
<optional>true</optional> <!-- user artifact should override when provided -->
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients;
package micycle.peasygradients;

import processing.core.PApplet;
import processing.core.PConstants;
Expand All @@ -12,18 +12,18 @@
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import micycle.peasygradients.gradient.Gradient;
import micycle.peasygradients.utilities.FastNoiseLite;
import micycle.peasygradients.utilities.FastPow;
import micycle.peasygradients.utilities.Functions;
import micycle.peasygradients.utilities.FastNoiseLite.CellularDistanceFunction;
import micycle.peasygradients.utilities.FastNoiseLite.CellularReturnType;
import micycle.peasygradients.utilities.FastNoiseLite.FractalType;
import micycle.peasygradients.utilities.FastNoiseLite.NoiseType;

import java.lang.reflect.Constructor;
import net.jafama.FastMath;

import peasyGradients.gradient.Gradient;
import peasyGradients.utilities.FastNoiseLite;
import peasyGradients.utilities.FastPow;
import peasyGradients.utilities.Functions;
import peasyGradients.utilities.FastNoiseLite.CellularDistanceFunction;
import peasyGradients.utilities.FastNoiseLite.CellularReturnType;
import peasyGradients.utilities.FastNoiseLite.FractalType;
import peasyGradients.utilities.FastNoiseLite.NoiseType;

/**
* Renders 1D {@link Gradient gradients} as 2D spectrums in your Processing
* sketch.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
package peasyGradients;

package micycle.peasygradients;

import micycle.peasygradients.gradient.Gradient;
import micycle.peasygradients.gradient.Palette;
import micycle.peasygradients.utilities.FastPow;
import micycle.peasygradients.utilities.Functions;
import micycle.peasygradients.utilities.FastNoiseLite.FractalType;
import micycle.peasygradients.utilities.FastNoiseLite.NoiseType;
import processing.core.PApplet;
import processing.core.PConstants;
import processing.core.PGraphics;
Expand All @@ -8,14 +14,6 @@
import processing.event.KeyEvent;
import processing.event.MouseEvent;

import peasyGradients.gradient.Gradient;
import peasyGradients.gradient.Palette;

import peasyGradients.utilities.FastPow;
import peasyGradients.utilities.Functions;
import peasyGradients.utilities.FastNoiseLite.FractalType;
import peasyGradients.utilities.FastNoiseLite.NoiseType;

//import com.jogamp.newt.opengl.GLWindow;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

/**
* Colorspaces should implement this class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

/**
* Colorspaces are used to specify the color space in which a gradient's
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

import net.jafama.FastMath;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

/**
* The HSB color system describes a color based on the three qualities of hue,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

import net.jafama.FastMath;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

import micycle.peasygradients.utilities.FastPow;
import net.jafama.FastMath;
import peasyGradients.utilities.FastPow;

/**
* IPT space, published by Ebner and Fairchild (1998)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

import net.jafama.FastMath;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

import micycle.peasygradients.utilities.FastPow;
import net.jafama.FastMath;
import peasyGradients.utilities.FastPow;

/**
* JAB (JzAzBz) is a a color space designed for perceptul uniformity in high
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

/**
* A uniform (Opponent color scale) color space in which colors are located
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

import net.jafama.FastMath;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

/**
* https://bottosson.github.io/posts/oklab/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

/***
* Standard RGB (1996), not to be confused with CIERGB (1931). The RGB color
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

import peasyGradients.utilities.Functions;
import micycle.peasygradients.utilities.Functions;

/**
* Red, yellow, blue RYB color Compositing:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

import net.jafama.FastMath;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

import net.jafama.FastMath;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

import micycle.peasygradients.utilities.FastPow;
import micycle.peasygradients.utilities.Functions;
import net.jafama.FastMath;

import peasyGradients.utilities.FastPow;
import peasyGradients.utilities.Functions;

/**
* CIE XYZ (aka CIE 1931) (aka tristimulus values) is a device-invariant
* representation of color. It serves as a standard reference against which many
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.colorSpaces;
package micycle.peasygradients.colorSpaces;

/**
* Fast XYZ, suitable to be used standalone for gradient color interpolation.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package peasyGradients.gradient;
package micycle.peasygradients.gradient;

import java.util.Arrays;
import java.util.HashMap;

import peasyGradients.colorSpaces.*;
import peasyGradients.utilities.ColorUtils;
import peasyGradients.utilities.Functions;
import micycle.peasygradients.colorSpaces.*;
import micycle.peasygradients.utilities.ColorUtils;
import micycle.peasygradients.utilities.Functions;
import processing.core.PApplet;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
package peasyGradients.gradient;
package micycle.peasygradients.gradient;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import micycle.peasygradients.colorSpaces.*;
import micycle.peasygradients.utilities.ColorUtils;
import micycle.peasygradients.utilities.FastPow;
import micycle.peasygradients.utilities.Functions;
import micycle.peasygradients.utilities.Interpolation;
import net.jafama.FastMath;

import peasyGradients.colorSpaces.*;
import peasyGradients.utilities.ColorUtils;
import peasyGradients.utilities.FastPow;
import peasyGradients.utilities.Functions;
import peasyGradients.utilities.Interpolation;

/**
* A Gradient comprises of {@link peasyGradients.gradient.ColorStop color stops}
* A Gradient comprises of {@link micycle.peasygradients.gradient.ColorStop color stops}
* (each specifying a color and a position) arranged on a 1D axis.
*
* <p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package peasyGradients.gradient;

import peasyGradients.colorSpaces.ColorSpaces;
import peasyGradients.utilities.ColorUtils;
import peasyGradients.utilities.Functions;
package micycle.peasygradients.gradient;

import micycle.peasygradients.colorSpaces.ColorSpaces;
import micycle.peasygradients.utilities.ColorUtils;
import micycle.peasygradients.utilities.Functions;
import processing.core.PApplet;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
* @author micycle1
*
*/
package peasyGradients;
package micycle.peasygradients;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package peasyGradients.utilities;
package micycle.peasygradients.utilities;

/**
* Contains static functions mostly related to color processing (mostly
Expand Down
Loading

0 comments on commit 269dba0

Please sign in to comment.