Skip to content

Instantly share code, notes, and snippets.

@masa-kunikata
Last active May 12, 2021 07:52
Show Gist options
  • Save masa-kunikata/daaf0f51a8ab9b808f61805407e1654c to your computer and use it in GitHub Desktop.
Save masa-kunikata/daaf0f51a8ab9b808f61805407e1654c to your computer and use it in GitHub Desktop.
MyBatis Generator Plugin development project
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
}
@Armon2023
Copy link

gradle读取配置文件中的相对路径失败是如何处理的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment