Last active
May 12, 2021 07:52
-
-
Save masa-kunikata/daaf0f51a8ab9b808f61805407e1654c to your computer and use it in GitHub Desktop.
MyBatis Generator Plugin development project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
maven { url "https://plugins.gradle.org/m2/" } | |
} | |
dependencies { | |
classpath "gradle.plugin.com.arenagod.gradle:mybatis-generator-plugin:1.4" | |
} | |
} | |
apply plugin: 'java-library' | |
apply plugin: "com.arenagod.gradle.MybatisGenerator" | |
apply plugin: 'eclipse' | |
sourceCompatibility = 1.8 | |
targetCompatibility = 1.8 | |
def mybatisGeneratorCore = 'org.mybatis.generator:mybatis-generator-core:1.3.7' | |
def itfswMybatisGeneratorPlugin = 'com.itfsw:mybatis-generator-plugin:1.2.10' | |
mybatisGenerator { | |
verbose = false | |
configFile = "config/mybatisGenerator/generatorConfig.xml" | |
dependencies { | |
mybatisGenerator project(':') | |
mybatisGenerator itfswMybatisGeneratorPlugin | |
mybatisGenerator mybatisGeneratorCore | |
} | |
} | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile mybatisGeneratorCore | |
compile itfswMybatisGeneratorPlugin | |
testCompile 'junit:junit:4.12' | |
} | |
def defaultEncoding = 'UTF-8' | |
compileJava { | |
options.encoding = defaultEncoding | |
} | |
compileTestJava { | |
options.encoding = defaultEncoding | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gradle读取配置文件中的相对路径失败是如何处理的?