Building an application¶
Contents
Before You Start¶
Maven Central Repository¶
You can pull the artifacts of the Doma framework from the Maven central repository.
We provide two artifacts, doma-core
and doma-processor
.
The doma-core
artifact is required at runtime and compile-time.
The doma-processor
artifact provides annotation processors and is required at compile-time only.
The group id and artifact id of those artifacts are as follows:
GroupId: | org.seasar.doma |
---|---|
ArtifactId: | doma-core |
GroupId: | org.seasar.doma |
ArtifactId: | doma-processor |
Build with Gradle¶
Write your build.gradle as follows:
dependencies {
implementation "org.seasar.doma:doma-core:2.32.0"
annotationProcessor "org.seasar.doma:doma-processor:2.32.0"
}
To simplify your build.script, we recommend that you use the Doma Compile Plugin.
See build.gradle in the simple-boilerplate repository as an example.
Build with IntelliJ IDEA¶
Use a newer version of IntelliJ IDEA, and then import your project as a Gradle project. To know how to import project, see Import template project.
Build with Eclipse¶
Generate eclipse setting files with Gradle, and then import your project into Eclipse.
To generate the setting files, run gradle eclipse
.
To simplify your build.script, we recommend that you use the Doma Compile Plugin and the AptEclipsePlugin.
See build.gradle in the simple-boilerplate repository as an example.