mirror of https://github.com/alibaba/p3c.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
824 B
Groovy
30 lines
824 B
Groovy
plugins {
|
|
id "org.jetbrains.intellij" version '0.4.5'
|
|
}
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'idea'
|
|
|
|
def myPlugins = ['git4idea']
|
|
def versionDotIndex = idea_version.indexOf('.')
|
|
def intVersion = versionDotIndex == -1 ? Integer.parseInt(idea_version) : Integer.parseInt(idea_version.substring(0, versionDotIndex))
|
|
if (intVersion >= 2019 || (intVersion < 1000 && intVersion >= 193)) {
|
|
myPlugins = ['git4idea', 'java']
|
|
}
|
|
|
|
intellij {
|
|
version idea_version
|
|
plugins = myPlugins
|
|
pluginName plugin_name
|
|
updateSinceUntilBuild false
|
|
sandboxDirectory "idea-sandbox"
|
|
}
|
|
|
|
version plugin_version
|
|
|
|
dependencies {
|
|
compile group: 'org.freemarker', name: 'freemarker', version: '2.3.25-incubating'
|
|
compile project(':p3c-common')
|
|
compile group: 'org.javassist', name: 'javassist', version: '3.21.0-GA'
|
|
}
|
|
|