Kotlinmailer Modules
Dependencies
Kotlinmailer modules are available from Maven Central repository. To use them you have to add appropriate dependency into your repositories mapping.
repositories {
mavenCentral()
}
repositories {
mavenCentral()
}
The Maven Central repository is enabled by default for Maven users.
Base Modules
Kotlinmailer is split into multiple modules so that you can select only those dependencies you need and thereby eliminate unnecessary peer dependencies. The `core` module is required for all other modules to work.
core
(required)html
if you want to use kotlinx.html inside your email builders. You can find more information here.
val kotlinmailer_version = "1.1.21"
dependencies {
implementation("at.quickme.kotlinmailer:core:$kotlinmailer_version")
// optional html
implementation("at.quickme.kotlinmailer:html:$kotlinmailer_version")
}
Alternatively, if you use gradle version catalogues you can use the following:
[versions]
//...
kotlinmailer = "1.1.21"
[libraries]
//...
kotlinmailer-core = { module = "at.quickme.kotlinmailer", name = "core", version.ref = "kotlinmailer" }
// optional html
kotlinmailer-html = { module = "at.quickme.kotlinmailer", name = "html, version.ref = "kotlinmailer"
}
And then in your dependencies block:
dependencies {
implementation(libs.kotlinmailer.core)
// optional html
implementation(libs.kotlinmailer.html)
}
def kotlinmailer_version = "1.1.21"
dependencies {
implementation "at.quickme.kotlinmailer:core:$kotlinmailer_version"
// optional html
implementation "at.quickme.kotlinmailer:html:$kotlinmailer_version"
}
<dependencies>
<dependency>
<groupId>at.quickme.kotlinmailer</groupId>
<artifactId>core</artifactId>
<version>1.1.21</version>
</dependency>
<!-- optional html -->
<dependency>
<groupId>at.quickme.kotlinmailer</groupId>
<artifactId>html</artifactId>
<version>1.1.21</version>
</dependency>
</dependencies>
Last modified: 08 September 2024