Skip to content

Commit

Permalink
prepare to public on maven central. version 1.2.0-FINAL
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-merelis committed Mar 12, 2015
1 parent b3ccf4b commit ae31d21
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 17 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ Features:

Real examples of use you will find them in [coffeepot-br-sped-fiscal](https://github.com/jean-merelis/coffeepot-br-sped-fiscal) and [coffeepot-br-sintegra](https://github.com/jean-merelis/coffeepot-br-sintegra) projects. The coffeepot-br-sped-fiscal project uses delimited format, and the sintegra project uses FixedLength format.


Download from Maven central

```xml
<dependency>
<groupId>com.github.jean-merelis</groupId>
<artifactId>coffeepot-bean-wr</artifactId>
<version>1.2.0-FINAL</version>
</dependency>
```

Examples
--------

Expand Down
86 changes: 83 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>9</version>
</parent>

<groupId>coffeepot</groupId>
<groupId>com.github.jean-merelis</groupId>
<description>Coffeepot-bean-wr is a simple Java framework for marshalling Java beans to flat file and unmarshal flat file to Java Beans</description>
<artifactId>coffeepot-bean-wr</artifactId>
<version>1.2.0-RC1</version>
<version>1.2.0-FINAL</version>
<packaging>jar</packaging>

<name>coffeepot-bean-wr</name>

<url>https://github.com/jom76</url>
<url>https://github.com/jean-merelis</url>
<organization>
<name>Jeandeson O. Merelis</name>
<url>https://github.com/jean-merelis</url>
</organization>
<inceptionYear>2013</inceptionYear>

<developers>
<developer>
<name>Jeandeson O Merelis</name>
<email>jean-merelis@github.com</email>
<organization>Jeandeson O Merelis</organization>
<organizationUrl>https://github.com/jean-merelis</organizationUrl>
</developer>
</developers>

<licenses>
<license>
Expand Down Expand Up @@ -46,6 +62,34 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.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-compiler-plugin</artifactId>
Expand All @@ -55,8 +99,38 @@
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.4.201502262128</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>


</plugins>
</build>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
Expand All @@ -81,4 +155,10 @@
<scope>test</scope>
</dependency>
</dependencies>

<scm>
<connection>scm:git:git@github.com:jean-merelis/coffeepot-bean-wr.git</connection>
<url>scm:git:git@github.com:jean-merelis/coffeepot-bean-wr.git</url>
<developerConnection>scm:git:git@github.com:jean-merelis/coffeepot-bean-wr.git</developerConnection>
</scm>
</project>
7 changes: 0 additions & 7 deletions src/main/java/coffeepot/bean/wr/annotation/Field.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,9 @@

/**
* Used only when there isn't a field set.
*
* @return
*/
Class<?> classType() default Class.class;

/**
* Params to config.
*
* @return
*/
String[] params() default {};

AccessorType accessorType() default AccessorType.DEFAULT;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/coffeepot/bean/wr/reader/AbstractReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,12 @@ public String toString(Boolean obj) {
/**
* When keys value are not specified, the sequence of values ​​must be first
* true text and second false text.
* <p/>
* Valid params format:<br/>
* true=1;false=0 or false=0;true=1<br/>
* 1;0<br/>
* <p></p>
* Valid params format:<br>
* true=1;false=0 or false=0;true=1<br>
* 1;0<br>
* newTrueText;newFalseText
*
* @param params
*/
@Override
public void setConfig(String[] params) {
Expand Down

0 comments on commit ae31d21

Please sign in to comment.