VRaptor4 - Java 8 plugin

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

Categories

Categories

Java 8 Languages
GroupId

GroupId

br.com.caelum.vraptor
ArtifactId

ArtifactId

vraptor-java8
Last Version

Last Version

4.0.0.Final
Release Date

Release Date

Type

Type

jar
Description

Description

VRaptor4 - Java 8 plugin
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Source Code Management

Source Code Management

http://github.com/caelum/vraptor-java8

Download vraptor-java8

How to add to project

<!-- https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-java8/ -->
<dependency>
    <groupId>br.com.caelum.vraptor</groupId>
    <artifactId>vraptor-java8</artifactId>
    <version>4.0.0.Final</version>
</dependency>
// https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-java8/
implementation 'br.com.caelum.vraptor:vraptor-java8:4.0.0.Final'
// https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-java8/
implementation ("br.com.caelum.vraptor:vraptor-java8:4.0.0.Final")
'br.com.caelum.vraptor:vraptor-java8:jar:4.0.0.Final'
<dependency org="br.com.caelum.vraptor" name="vraptor-java8" rev="4.0.0.Final">
  <artifact name="vraptor-java8" type="jar" />
</dependency>
@Grapes(
@Grab(group='br.com.caelum.vraptor', module='vraptor-java8', version='4.0.0.Final')
)
libraryDependencies += "br.com.caelum.vraptor" % "vraptor-java8" % "4.0.0.Final"
[br.com.caelum.vraptor/vraptor-java8 "4.0.0.Final"]

Dependencies

compile (1)

Group / Artifact Type Version
br.com.caelum : vraptor jar 4.1.0-RC3

provided (1)

Group / Artifact Type Version
javax.enterprise : cdi-api jar 1.1

test (4)

Group / Artifact Type Version
org.hamcrest : hamcrest-core jar 1.3
org.hamcrest : hamcrest-library jar 1.3
org.mockito : mockito-core jar 1.9.5
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

#VRaptor - Java 8 plugin

Build status

Java 8 features for VRaptor 4 like:

  • Java Parameter names with no external libraries;
  • Support for java.time classes;

For a quick start, you can use this snippet in your maven POM:

<dependency>
    <groupId>br.com.caelum.vraptor</groupId>
    <artifactId>vraptor-java8</artifactId>
    <version>4.0.0.Final</version> <!--or the latest version-->
</dependency>

##How to alow parameter discovery

To allow parameter discovery you need to add the parameter -parameters in your compiler.

Using maven

If you are using Maven you must add this option to your compiler plugin:

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-compiler-plugin</artifactId>
	<configuration>
		<source>1.8</source>
		<target>1.8</target>
		<compilerArguments>
			<parameters />
		</compilerArguments>
	</configuration>
</plugin>

Using eclipse

If you are using eclipse, check the box 'Store information about method parameters' at Preferences > Compiler options

br.com.caelum.vraptor

Caelum

Versions

Version
4.0.0.Final
4.0.0-RC2
4.0.0-RC1