mirror of https://gitee.com/makejava/EasyCode.git
50 lines
1.1 KiB
Groovy
50 lines
1.1 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.1.2-SNAPSHOT'
|
|
|
|
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'
|
|
// compile group: 'org.apache.velocity', name: 'velocity', version: '1.7'
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
compileOnly "org.projectlombok:lombok:1.18.0"
|
|
// compileClasspath fileTree(dir: 'lib', includes: ['*.jar'])
|
|
}
|
|
|
|
intellij {
|
|
// 插件名称
|
|
pluginName 'EasyCode'
|
|
version '2018.1.5'
|
|
type 'IU'
|
|
plugins = ['DatabaseTools']
|
|
updateSinceUntilBuild false //Disables updating since-build attribute in plugin.xml
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = "UTF-8"
|
|
}
|