mirror of https://gitee.com/makejava/EasyCode.git
53 lines
1.3 KiB
Groovy
53 lines
1.3 KiB
Groovy
buildscript {
|
||
repositories {
|
||
jcenter()
|
||
maven { url 'http://dl.bintray.com/jetbrains/intellij-plugin-service' }
|
||
mavenCentral()
|
||
}
|
||
}
|
||
|
||
plugins {
|
||
id 'java'
|
||
id 'org.jetbrains.intellij' version '0.3.5'
|
||
}
|
||
|
||
//2.1 插件配置
|
||
// 这两个插件是必备
|
||
apply plugin: 'idea'
|
||
apply plugin: 'org.jetbrains.intellij'
|
||
|
||
group 'com.sjhy'
|
||
version '1.2.2-RELEASE'
|
||
|
||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||
targetCompatibility = JavaVersion.VERSION_1_8
|
||
|
||
repositories {
|
||
jcenter()
|
||
mavenCentral()
|
||
}
|
||
|
||
dependencies {
|
||
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.6'
|
||
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||
compileOnly "org.projectlombok:lombok:1.18.0"
|
||
}
|
||
|
||
intellij {
|
||
// 插件名称
|
||
pluginName 'EasyCode'
|
||
// 沙箱目录位置,用于保存IDEA的设置,默认在build文件下面,防止clean,放在根目录下。
|
||
sandboxDirectory = "${rootProject.rootDir}/idea-sandbox"
|
||
// 开发环境运行时使用的版本
|
||
version '2018.1.5'
|
||
type 'IU'
|
||
// 依赖的插件
|
||
plugins = ['DatabaseTools', 'Velocity']
|
||
//Disables updating since-build attribute in plugin.xml
|
||
updateSinceUntilBuild false
|
||
}
|
||
|
||
tasks.withType(JavaCompile) {
|
||
options.encoding = "UTF-8"
|
||
}
|