Skip to content

Maven configuration

xcesco edited this page Sep 25, 2018 · 10 revisions

To use Kripton within a maven project, you need to configure the plugin compilator to use Kripton annotation processor. Simply modify project's pom adding following lines of code:

pom.xml

<dependencies>
  ...
  <dependency>
    <groupId>com.abubusoft</groupId>
    <artifactId>kripton</artifactId>
    <version>5.0.0</version>
  </dependency>
  ...
</dependecies>
...
<build>
  <pluginManagement>
  ...
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>3.6.0</version>
      <configuration>
        <source>1.7</source>
        <target>1.7</target>
        <annotationProcessorPaths>
          <path>
            <groupId>com.abubusoft</groupId>
            <artifactId>kripton-processor</artifactId>
            <version>5.0.0</version>
          </path>
        </annotationProcessorPaths>
      </configuration>
    </plugin>
    ...
    </plugins>
  </pluginManagement>
</build>

Just run maven goal

mvn package

To generate in target\generated-sources\annotations needed classes.

In Example you will find a simple maven project which use Kripton Annotation Processor.

Table of Contents

Query definition

Features

Relations

Multithread supports

Modularization

Annotations for data convertion

Annotations for SQLite ORM

Annotations for shared preferences

Clone this wiki locally