2018-07-30 14:11:31 +08:00
|
|
|
|
buildscript {
|
|
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
2020-12-31 14:02:36 +08:00
|
|
|
|
maven { url 'https://plugins.gradle.org/m2/' }
|
|
|
|
|
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
|
2022-03-22 10:37:41 +08:00
|
|
|
|
}
|
2018-07-30 14:11:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
2022-03-22 10:37:41 +08:00
|
|
|
|
//2.1 插件配置
|
|
|
|
|
// 这两个插件是必备
|
2020-12-31 14:02:36 +08:00
|
|
|
|
plugins {
|
|
|
|
|
id 'java'
|
2021-11-03 13:55:14 +08:00
|
|
|
|
id 'org.jetbrains.intellij' version '0.7.3'
|
2020-12-31 14:02:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
2022-03-22 10:37:41 +08:00
|
|
|
|
|
2018-07-25 10:58:32 +08:00
|
|
|
|
group 'com.sjhy'
|
2023-04-04 15:59:22 +08:00
|
|
|
|
version '1.2.8-java.RELEASE'
|
2018-07-25 10:58:32 +08:00
|
|
|
|
|
2018-07-30 13:18:49 +08:00
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2021-11-03 13:55:14 +08:00
|
|
|
|
compileJava.options.encoding = "UTF-8"
|
|
|
|
|
compileTestJava.options.encoding = "UTF-8"
|
2018-07-25 10:58:32 +08:00
|
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-22 10:37:41 +08:00
|
|
|
|
// http://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system/prerequisites.html
|
|
|
|
|
// https://plugins.jetbrains.com/docs/intellij/gradle-guide.html 官网gradle构建教程
|
2018-07-25 10:58:32 +08:00
|
|
|
|
|
2021-11-03 13:55:14 +08:00
|
|
|
|
intellij {
|
2022-03-22 10:37:41 +08:00
|
|
|
|
// 插件名称
|
|
|
|
|
pluginName 'EasyCode'
|
|
|
|
|
// 沙箱目录位置,用于保存IDEA的设置,默认在build文件下面,防止clean,放在根目录下。
|
|
|
|
|
sandboxDirectory = "${rootProject.rootDir}/idea-sandbox"
|
|
|
|
|
// 开发环境运行时使用的版本
|
|
|
|
|
version '2021.2.2'
|
|
|
|
|
// 社区版
|
|
|
|
|
// type 'IC'
|
|
|
|
|
// 企业版
|
|
|
|
|
type 'IU'
|
|
|
|
|
// 各种IDEA版本去这里找
|
|
|
|
|
// https://www.jetbrains.com/intellij-repository/releases
|
|
|
|
|
// 依赖的插件
|
2022-10-13 14:37:21 +08:00
|
|
|
|
plugins = ['com.intellij.java', 'com.intellij.database']
|
2022-03-22 10:37:41 +08:00
|
|
|
|
//Disables updating since-build attribute in plugin.xml
|
|
|
|
|
updateSinceUntilBuild false
|
2021-11-03 13:55:14 +08:00
|
|
|
|
downloadSources = true
|
2022-03-22 10:37:41 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
// 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'
|
|
|
|
|
testAnnotationProcessor 'org.projectlombok:lombok:1.18.2'
|
|
|
|
|
// 测试用例
|
|
|
|
|
testCompile 'junit:junit:4.12'
|
2018-07-25 10:58:32 +08:00
|
|
|
|
}
|
2021-11-03 13:55:14 +08:00
|
|
|
|
|