优化构建脚本

This commit is contained in:
makejava 2021-07-15 14:46:53 +08:00
parent 06d110fd60
commit 6bff81a84b
1 changed files with 26 additions and 6 deletions

View File

@ -6,8 +6,9 @@ buildscript {
maven { url 'https://dl.bintray.com/jetbrains/intellij-plugin-service' }
maven { url 'https://dl.bintray.com/jetbrains/intellij-third-party-dependencies/' }
}
// https://github.com/JetBrains/gradle-intellij-plugin/
dependencies {
classpath "org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.6.0"
classpath "org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.6.5"
}
}
@ -15,7 +16,7 @@ buildscript {
//
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.6.0'
id 'org.jetbrains.intellij' version '0.6.5'
}
@ -30,6 +31,9 @@ repositories {
mavenCentral()
}
// http://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system/prerequisites.html
// https://plugins.jetbrains.com/docs/intellij/gradle-guide.html gradle构建教程
intellij {
//
pluginName 'EasyCode'
@ -37,22 +41,38 @@ intellij {
sandboxDirectory = "${rootProject.rootDir}/idea-sandbox"
// 使
version '2020.1.2'
//
// type 'IC'
//
type 'IU'
//
// IDEA版本去这里
// https://www.jetbrains.com/intellij-repository/releases
//
plugins = ['java', 'DatabaseTools', 'Velocity']
plugins = ['java', 'DatabaseTools']
//Disables updating since-build attribute in plugin.xml
updateSinceUntilBuild false
downloadSources = true
}
dependencies {
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.6'
// jackson工具
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.6'
// guava工具
// compile 'com.google.guava:guava:29.0-jre'
// velocity支持
// compile 'org.apache.velocity:velocity:1.7'
// groovy支持
// compile 'org.codehaus.groovy:groovy:3.0.2'
// beetl支持
// compile 'com.ibeetl:beetl:3.3.0.RELEASE'
// freemarker支持
// compile 'org.freemarker:freemarker:2.3.30'
// lombok
compileOnly 'org.projectlombok:lombok:1.18.2'
annotationProcessor 'org.projectlombok:lombok:1.18.2'
testCompile group: 'junit', name: 'junit', version: '4.12'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.2'
//
testCompile 'junit:junit:4.12'
}
tasks.withType(JavaCompile) {