Skip to content

Commit

Permalink
Moo 2.1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Geoffrey Wiseman <[email protected]>
  • Loading branch information
geoffreywiseman committed Aug 1, 2018
1 parent 2379b4c commit 9ec8128
Show file tree
Hide file tree
Showing 12 changed files with 95 additions and 54 deletions.
5 changes: 3 additions & 2 deletions moo-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@
<url>http://github.com/geoffreywiseman/Moo</url>
<connection>scm:git:[email protected]:geoffreywiseman/Moo.git</connection>
<developerConnection>scm:git:[email protected]:geoffreywiseman/Moo.git</developerConnection>
</scm>
<tag>v2.1</tag>
</scm>

<licenses>
<license>
Expand Down Expand Up @@ -233,7 +234,7 @@
<parent>
<groupId>com.codiform</groupId>
<artifactId>moo-parent</artifactId>
<version>2.1-SNAPSHOT</version>
<version>2.1.0</version>
<relativePath>..</relativePath>
</parent>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public interface SourcePropertyFactory {

/**
* Gets the source property corresponding to a prefixed expression, along the lines of
* "<prefix>:<expression>"
* "&lt;prefix&gt;:&lt;expression&gt;"
*
* @param expressionPrefix
* the prefix of the expression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public interface TranslationSource {
* Gets the translation target factory for a the specified factory type. This allows the translation
* source to act as a cache for these factory classes.
*
* @param factoryType
* @param factoryType the type that implements TranslationTargetFactory to be used
* @return the {@link TranslationTargetFactory} for the factory type
*/
TranslationTargetFactory getTranslationTargetFactory( Class<? extends TranslationTargetFactory> factoryType );
Expand Down
2 changes: 1 addition & 1 deletion moo-core/src/test/java/com/codiform/moo/MooTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
import org.mockito.junit.MockitoJUnitRunner;

import com.codiform.moo.configuration.Configuration;
import com.codiform.moo.session.TranslationSession;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
import org.mockito.junit.MockitoJUnitRunner;

import static org.junit.Assert.*;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;

/**
* This isn't a test of the TranslationTargetFactory, which is an interface, but rather of the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.codiform.moo.session;

import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
import org.mockito.junit.MockitoJUnitRunner;

import com.codiform.moo.domain.OrdinalDto;
import com.codiform.moo.domain.TestFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
import org.mockito.junit.MockitoJUnitRunner;

import com.codiform.moo.configuration.Configuration;
import com.codiform.moo.session.TranslationSource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
import org.mockito.junit.MockitoJUnitRunner;

import com.codiform.moo.configuration.Configuration;
import com.codiform.moo.property.CollectionProperty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
import org.mockito.junit.MockitoJUnitRunner;

import com.codiform.moo.annotation.AccessMode;
import com.codiform.moo.configuration.Configuration;
Expand Down
7 changes: 4 additions & 3 deletions moo-mvel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<dependency>
<groupId>com.codiform</groupId>
<artifactId>moo-core</artifactId>
<version>2.1-SNAPSHOT</version>
<version>2.1.0</version>
</dependency>
</dependencies>

Expand Down Expand Up @@ -198,7 +198,8 @@
<url>http://github.com/geoffreywiseman/Moo</url>
<connection>scm:git:[email protected]:geoffreywiseman/Moo.git</connection>
<developerConnection>scm:git:[email protected]:geoffreywiseman/Moo.git</developerConnection>
</scm>
<tag>v2.1</tag>
</scm>

<licenses>
<license>
Expand Down Expand Up @@ -245,7 +246,7 @@
<parent>
<groupId>com.codiform</groupId>
<artifactId>moo-parent</artifactId>
<version>2.1-SNAPSHOT</version>
<version>2.1.0</version>
<relativePath>..</relativePath>
</parent>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* There are tests in here to deal with source field required/optional in Moo
* configuration, but the impact of the {@link Ignore} annotation can be seen in
* {@link IgnoreAnnotationTest}
* IgnoreAnnotationTest.
*/
public class MissingSourcePropertyTest {

Expand Down
111 changes: 75 additions & 36 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>com.codiform</groupId>
<artifactId>moo-parent</artifactId>
<packaging>pom</packaging>
<version>2.1-SNAPSHOT</version>
<version>2.1.0</version>
<name>Moo Parent</name>
<description>Mapping Objects to Objects</description>
<url>http://geoffreywiseman.github.com/Moo</url>
Expand Down Expand Up @@ -38,6 +38,17 @@
</pluginManagement>
</build>

<distributionManagement>
<snapshotRepository>
<id>sonatype-ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>sonatype-ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<developers>
<developer>
<name>Geoffrey Wiseman</name>
Expand All @@ -60,6 +71,7 @@
<url>http://github.com/geoffreywiseman/Moo</url>
<connection>scm:git:[email protected]:geoffreywiseman/Moo.git</connection>
<developerConnection>scm:git:[email protected]:geoffreywiseman/Moo.git</developerConnection>
<tag>v2.1</tag>
</scm>

<licenses>
Expand All @@ -74,36 +86,6 @@
</license>
</licenses>

<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<dependencyManagement>
<dependencies>
<dependency>
Expand Down Expand Up @@ -134,9 +116,66 @@
</dependencies>
</dependencyManagement>

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>


</project>

0 comments on commit 9ec8128

Please sign in to comment.