Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.zhanhb:thymeleaf-layout-dialect:3.2.0'
}
dependencies {
implementation("com.github.zhanhb:thymeleaf-layout-dialect:3.2.0")
}
<dependency>
<groupId>com.github.zhanhb</groupId>
<artifactId>thymeleaf-layout-dialect</artifactId>
<version>3.2.0</version>
</dependency>
libraryDependencies += "com.github.zhanhb" % "thymeleaf-layout-dialect" % "3.2.0"
:dependencies [[com.github.zhanhb/thymeleaf-layout-dialect "3.2.0"]]
Thymeleaf Layout Dialect rewritten in java.
Minimum of Java 8 and Thymeleaf 3.0 required.
Copy the JAR from one of the release bundles, placing it in the classpath of your application, or build the project from the source code here on GitHub.
For installation instructions, examples, and configuration options for version 2 of the layout dialect, check out the docs pages over on https://zhanhb.github.io/thymeleaf-layout-dialect/
For docs on version 1 of the layout dialect, the classic readme still exists over on https://github.com/zhanhb/thymeleaf-layout-dialect/tree/1.4.x
com.github.zhanhb
thymeleaf-layout-dialect
The package names keep the same as original. Please visit https://github.com/ultraq/thymeleaf-layout-dialect for details.