Skip to content

Include in your project

There are several options to include pretronic database query into your project. In this example below, we show it with maven and gradle.

Note

You have to include your jdbc drivers, for example mysql or h2 portable.

Repository

<repository>
    <id>pretronic</id>
    <url>https://repository.pretronic.net/repository/pretronic/</url>
</repository>
repositories {
    maven {
        url "https://repository.pretronic.net/repository/pretronic/"
    }
}

Dependencies

Note

Replace VERSION with your desired version

Only api

<dependency>
    <groupId>net.pretronic.databasequery</groupId>
    <artifactId>pretronicdatabasequery-api</artifactId>
    <version>VERSION</version>
    <scope>compile</scope>
</dependency>
dependencies {
    compile 'net.pretronic.databasequery:pretronicdatabasequery-api:VERSION'
}

For sql

<dependency>
    <groupId>net.pretronic.databasequery</groupId>
    <artifactId>pretronicdatabasequery-sql</artifactId>
    <version>VERSION</version>
    <scope>compile</scope>
</dependency>
dependencies {
    compile 'net.pretronic.databasequery:pretronicdatabasequery-sql:VERSION'
}

Last update: 2020-12-11