build: upgrade gradle & gradle-intellij-plugin

This commit is contained in:
lkqm 2021-11-03 13:55:14 +08:00
parent 7db000655c
commit 47132da355
3 changed files with 17 additions and 52 deletions

View File

@ -6,75 +6,41 @@ 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.5"
}
}
//2.1
//
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.6.5'
id 'org.jetbrains.intellij' version '0.7.3'
}
group 'com.sjhy'
version '1.2.5-java.RELEASE'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
repositories {
jcenter()
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'
// IDEA的设置build文件下面clean
sandboxDirectory = "${rootProject.rootDir}/idea-sandbox"
// 使
version '2020.1.2'
//
// type 'IC'
//
type 'IU'
// IDEA版本去这里找
// https://www.jetbrains.com/intellij-repository/releases
//
plugins = ['java', 'DatabaseTools']
//Disables updating since-build attribute in plugin.xml
updateSinceUntilBuild false
downloadSources = true
}
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'
// lombok
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
testCompileOnly 'org.projectlombok:lombok:1.18.12'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.12'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version = 'IU-2020.1.2'
plugins = ['java', 'DatabaseTools']
updateSinceUntilBuild = false
downloadSources = true
sandboxDirectory = "${rootProject.rootDir}/idea-sandbox"
}

Binary file not shown.

View File

@ -1,6 +1,5 @@
#Tue Jul 17 15:13:01 CST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://downloads.gradle-dn.com/distributions/gradle-6.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip