调整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 { buildscript {
repositories { repositories {
mavenCentral() mavenCentral()
maven { maven { url 'https://plugins.gradle.org/m2/' }
url "https://oss.sonatype.org/content/repositories/snapshots/" maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
} maven { url 'https://dl.bintray.com/jetbrains/intellij-plugin-service' }
maven { maven { url 'https://dl.bintray.com/jetbrains/intellij-third-party-dependencies/' }
url 'https://dl.bintray.com/jetbrains/intellij-plugin-service'
}
} }
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 //2.1
// //
apply plugin: 'idea' plugins {
apply plugin: 'java' id 'java'
apply plugin: 'org.jetbrains.intellij' id 'org.jetbrains.intellij' version '0.6.0'
}
group 'com.sjhy' group 'com.sjhy'
version '1.2.4-RC4' version '1.2.4-RC4'
@ -35,22 +30,13 @@ repositories {
mavenCentral() 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 { intellij {
// //
pluginName 'EasyCode' pluginName 'EasyCode'
// IDEA的设置build文件下面clean // IDEA的设置build文件下面clean
sandboxDirectory = "${rootProject.rootDir}/idea-sandbox" sandboxDirectory = "${rootProject.rootDir}/idea-sandbox"
// 使 // 使
version '2020.1' version '2020.1.2'
type 'IU' type 'IU'
// //
// https://www.jetbrains.com/intellij-repository/releases // https://www.jetbrains.com/intellij-repository/releases
@ -58,6 +44,14 @@ intellij {
plugins = ['java', 'DatabaseTools', 'Velocity'] plugins = ['java', 'DatabaseTools', 'Velocity']
//Disables updating since-build attribute in plugin.xml //Disables updating since-build attribute in plugin.xml
updateSinceUntilBuild false 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) { tasks.withType(JavaCompile) {

View File

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