Related: Trouble Shooting

Add dependencies

Main dependency

Add the ebean dependency.

<dependency>
  <groupId>io.ebean</groupId>
  <artifactId>ebean</artifactId>
  <version>${version}</version>
</dependency>
<dependency org="io.ebean" name="ebean" rev="${version}"/>
@Grapes(
  @Grab(group='io.ebean', module='ebean', version='${version}')
)
'io.ebean:ebean:${version}'
'io.ebean:ebean:${version}'
libraryDependencies += "io.ebean" % "ebean" % "${version}"
[io.ebean/ebean "${version}"]

JDBC Driver(s)

Add the dependency for the JDBC Driver(s) you want to use.

com.h2database : h2 : 1.4.191
org.postgresql : postgresql : 42.2.2
mysql : mysql-connector-java : 8.0.11
com.microsoft.sqlserver : mssql-jdbc : 6.4.0.jre8
com.oracle.jdbc : ojdbc8 : 12.2.0.1

Test Dependency

Add the following test dependency.

<dependency>
  <groupId>io.ebean.test</groupId>
  <artifactId>ebean-test-config</artifactId>
  <version>${version}</version>
</dependency>
<dependency org="io.ebean.test" name="ebean-test-config" rev="${version}"/>
@Grapes(
  @Grab(group='io.ebean.test', module='ebean-test-config', version='${version}')
)
'io.ebean.test:ebean-test-config:${version}'
'io.ebean.test:ebean-test-config:${version}'
libraryDependencies += "io.ebean.test" % "ebean-test-config" % "${version}"
[io.ebean.test/ebean-test-config "${version}"]

Next: Add build plugins for Maven Gradle