Skip to content

Commit

Permalink
Adding plugs packager samples and testing modules
Browse files Browse the repository at this point in the history
 * Added a sampler library and use it to create samples
 * Introduce API nad DEVEL modules for plugs packager
  • Loading branch information
Krzysztof Suszynski authored and cardil committed Jun 6, 2019
1 parent af99f43 commit c8dc944
Show file tree
Hide file tree
Showing 126 changed files with 1,484 additions and 1,536 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: java
sudo: false
dist: trusty
install: mvn install dependency:go-offline -DskipTests=true -Dmaven.javadoc.skip=true -B -V
install: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
script: mvn clean verify --fail-at-end -U -V
notifications:
email:
Expand Down
11 changes: 6 additions & 5 deletions plug-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@

<!-- Tests -->
<dependency>
<groupId>pl.wavesoftware.plugs</groupId>
<artifactId>testing</artifactId>
<version>${project.version}</version>
<groupId>pl.wavesoftware.testing</groupId>
<artifactId>junit5-starter</artifactId>
<version>1.0.0</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.zafarkhaja</groupId>
<artifactId>java-semver</artifactId>
<groupId>com.vdurmont</groupId>
<artifactId>semver4j</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@

package pl.wavesoftware.plugs.api;

import com.github.zafarkhaja.semver.Version;
import com.vdurmont.semver4j.Semver;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

class PlugsVersionIT {

private static final Version BASE = Version.forIntegers(0, 0, 0);
private static final Semver BASE = new Semver("0.0.0");

@Test
void getVersion() {
Version version = Version.valueOf(PlugsVersion.getVersion());
Semver version = new Semver(PlugsVersion.getVersion());

assertThat(version.greaterThanOrEqualTo(BASE)).isTrue();
assertThat(version.isGreaterThanOrEqualTo(BASE)).isTrue();
}

@Test
void manually() {
Version version = Version.valueOf(PlugsVersion.manuallyRead());
Semver version = new Semver(PlugsVersion.manuallyRead());

assertThat(version.greaterThanOrEqualTo(BASE)).isTrue();
assertThat(version.isGreaterThanOrEqualTo(BASE)).isTrue();
}
}
7 changes: 4 additions & 3 deletions plugs-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@

<!-- Tests -->
<dependency>
<groupId>pl.wavesoftware.plugs</groupId>
<artifactId>testing</artifactId>
<version>${project.version}</version>
<groupId>pl.wavesoftware.testing</groupId>
<artifactId>junit5-starter</artifactId>
<version>1.0.0</version>
<type>pom</type>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
7 changes: 4 additions & 3 deletions plugs-felix/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@

<!-- Test -->
<dependency>
<groupId>pl.wavesoftware.plugs</groupId>
<artifactId>testing</artifactId>
<version>${project.version}</version>
<groupId>pl.wavesoftware.testing</groupId>
<artifactId>junit5-starter</artifactId>
<version>1.0.0</version>
<type>pom</type>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
7 changes: 4 additions & 3 deletions plugs-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@

<!-- Test -->
<dependency>
<groupId>pl.wavesoftware.plugs</groupId>
<artifactId>testing</artifactId>
<version>${project.version}</version>
<groupId>pl.wavesoftware.testing</groupId>
<artifactId>junit5-starter</artifactId>
<version>1.0.0</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
30 changes: 13 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.1.5.RELEASE</version>
<relativePath />
</parent>
<groupId>pl.wavesoftware.plugs</groupId>
<artifactId>plugs-parent</artifactId>
<version>0.1.0-SNAPSHOT</version>
Expand Down Expand Up @@ -60,14 +66,12 @@
<module>plugs-spring</module>
<module>boms-parent</module>
<module>examples</module>
<module>testing</module>
<module>tools</module>
</modules>

<scm>
<connection>scm:git:https://github.com/wavesoftware/plugs.git</connection>
<developerConnection>scm:git:[email protected]:wavesoftware/plugs.git
</developerConnection>
<developerConnection>scm:git:[email protected]:wavesoftware/plugs.git</developerConnection>
<url>https://github.com/wavesoftware/plugs</url>
</scm>

Expand Down Expand Up @@ -113,20 +117,12 @@
<sonar.skip>${skipTests}</sonar.skip>

<!-- Versions -->
<spring.boot.version>2.1.2.RELEASE</spring.boot.version>
<felix.version>6.0.2</felix.version>
<felix.version>6.0.3</felix.version>
<maven.version>3.6.0</maven.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apiguardian</groupId>
<artifactId>apiguardian-api</artifactId>
Expand Down Expand Up @@ -163,9 +159,9 @@
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>com.github.zafarkhaja</groupId>
<artifactId>java-semver</artifactId>
<version>0.9.0</version>
<groupId>com.vdurmont</groupId>
<artifactId>semver4j</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down Expand Up @@ -294,15 +290,15 @@

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<version>2.22.2</version>
<configuration>
<trimStackTrace>false</trimStackTrace>
</configuration>
</plugin>

<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.1</version>
<version>2.22.2</version>
<configuration>
<trimStackTrace>false</trimStackTrace>
</configuration>
Expand Down
94 changes: 0 additions & 94 deletions testing/pom.xml

This file was deleted.

This file was deleted.

Loading

0 comments on commit c8dc944

Please sign in to comment.