[JAVA] gradle's mybatis-generator-plugin says there is no MapperAnnotationPlugin

When using mybatis-generator-plugin of gradle, plugins definition in generatorConfig.xml of mybatis

<plugin type="org.mybatis.generator.plugins.MapperAnnotationPlugin" />

If you get an error saying that you cannot find it even if you write

Write on version of mybatis-generator-core in dependencies

build.gradle


dependencies {
 ...
 mybatisGenerator group: 'org.mybatis.generator', name: 'mybatis-generator-core', version: '1.3.6'
}

that's all

You can also overwrite other things

build.gradle


dependencies {
 ...
 mybatisGenerator group: 'mysql', name: 'mysql-connector-java', version: '5.1.45'
 mybatisGenerator group: 'tk.mybatis', name: 'mapper', version: '3.4.2'
}

Recommended Posts

gradle's mybatis-generator-plugin says there is no MapperAnnotationPlugin
Is there no type in Ruby?
What to do when rbenv says that there is no readline or lib history
What is Gradle's Artifact?
I got an error! * There is no interactive request template
When there is no output to stdout in docker log
Why is there no unsigned right shift operator in C / C ++?