Skip to content

Commit 0c40b6e

Browse files
authored
Update README.md
1 parent 31c99b0 commit 0c40b6e

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,46 @@ SELECT * FROM names
7373
* MyBatis 3.4.3+
7474
* Thymeleaf 3.0+
7575

76+
77+
## Installation
78+
79+
The mybatis-thymeleaf is not available in Maven Central yet.
80+
So, if you want to use, you should be install to the local repository as follow:
81+
82+
```text
83+
$ git clone https://github.com/mybatis/thymeleaf-scripting.git
84+
$ cd thymeleaf-scripting
85+
$ ./mvnw clean install
86+
```
87+
88+
### Maven
89+
90+
If you are using the Maven as build tool, you can add as follow:
91+
92+
```xml
93+
<dependency>
94+
<groupId>org.mybatis</groupId>
95+
<artifactId>mybatis</artifactId>
96+
<version>3.4.6</version> <!-- Adjust to your application -->
97+
</dependency>
98+
<dependency>
99+
<groupId>org.mybatis.scripting</groupId>
100+
<artifactId>mybatis-thymeleaf</artifactId>
101+
<version>1.0.0-SNAPSHOT</version>
102+
</dependency>
103+
```
104+
105+
### Gradle
106+
107+
If you are using the Gradle as build tool, you can add as follow:
108+
109+
```groovy
110+
dependencies {
111+
compile("org.mybatis:mybatis:3.4.6") // Adjust version to your application
112+
compile("org.mybatis.scripting:mybatis-thymeleaf:1.0.0-SNAPSHOT")
113+
}
114+
```
115+
76116
## Documentation
77117

78118
* [User's Guide](src/main/asciidoc/user-guide.adoc)

0 commit comments

Comments
 (0)