在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):kimichen13/mybatis-generator-plugin开源软件地址(OpenSource Url):https://github.com/kimichen13/mybatis-generator-plugin开源编程语言(OpenSource Language):Groovy 100.0%开源软件介绍(OpenSource Introduction):Mybatis Generator PluginDescriptionThis is only the wrapper for MyBatis Generator on Gradle. Every details about the generate defined in the file which you declare the path in the You can override the dependencies to the newest version in the configuration, or other database dependencies. UsageIn your plugins DSL:Using theplugins {
id "com.thinkimi.gradle.MybatisGenerator" version "2.4"
} legacy plugin application:Usingbuildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.thinkimi.gradle:mybatis-generator-plugin:2.4"
}
}
apply plugin: "com.thinkimi.gradle.MybatisGenerator" Add configuration:configurations {
mybatisGenerator
}
mybatisGenerator {
verbose = true
configFile = 'src/main/resources/autogen/generatorConfig.xml'
mybatisProperties = ['key1' : "value1",'key2' : "value2"]
// optional, here is the override dependencies for the plugin or you can add other database dependencies.
dependencies {
mybatisGenerator 'org.mybatis.generator:mybatis-generator-core:1.4.0'
mybatisGenerator 'mysql:mysql-connector-java:5.1.47'
mybatisGenerator 'org.postgresql:postgresql:42.2.6'
mybatisGenerator // Here add your mariadb dependencies or else
}
}
Properties support in |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论