调整gradle构建文件

This commit is contained in:
makejava 2020-12-31 14:02:36 +08:00
parent cf016d0d41
commit cb05af50cb
2 changed files with 20 additions and 26 deletions

View File

@ -1,28 +1,23 @@
buildscript {
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven {
url 'https://dl.bintray.com/jetbrains/intellij-plugin-service'
}
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
maven { url 'https://dl.bintray.com/jetbrains/intellij-plugin-service' }
maven { url 'https://dl.bintray.com/jetbrains/intellij-third-party-dependencies/' }
}
dependencies {
classpath "org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.5.0-SNAPSHOT"
classpath "org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.6.0"
}
}
//plugins {
// id 'java'
// id 'org.jetbrains.intellij' version '0.3.5'
//}
//2.1
//
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'org.jetbrains.intellij'
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.6.0'
}
group 'com.sjhy'
version '1.2.4-RC4'
@ -35,22 +30,13 @@ repositories {
mavenCentral()
}
dependencies {
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.6'
testCompile group: 'junit', name: 'junit', version: '4.12'
annotationProcessor 'org.projectlombok:lombok:1.18.2'
compileOnly 'org.projectlombok:lombok:1.18.2'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.2'
testCompileOnly 'org.projectlombok:lombok:1.18.2'
}
intellij {
//
pluginName 'EasyCode'
// IDEA的设置build文件下面clean
sandboxDirectory = "${rootProject.rootDir}/idea-sandbox"
// 使
version '2020.1'
version '2020.1.2'
type 'IU'
//
// https://www.jetbrains.com/intellij-repository/releases
@ -58,6 +44,14 @@ intellij {
plugins = ['java', 'DatabaseTools', 'Velocity']
//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'
compileOnly 'org.projectlombok:lombok:1.18.2'
testCompile group: 'junit', name: 'junit', version: '4.12'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.2'
}
tasks.withType(JavaCompile) {

View File

@ -1 +1 @@
rootProject.name = 'EasyCode'
rootProject.name = 'EasyCode'