提交 3a01b6d9 编写于 作者: C caikang.ck

code compatibility with new idea version

上级 9f77a0aa
......@@ -7,7 +7,7 @@ apply plugin: 'maven'
apply plugin: 'signing'
javadoc {
options.tags = [ "date" ]
options.tags = ["date"]
}
task javadocJar(type: Jar, dependsOn: javadoc) {
......@@ -27,12 +27,12 @@ artifacts {
}
def myPlugins = []
if (idea_version.startsWith('193.') || idea_version.startsWith('2019.3')) {
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 = ['java']
}
intellij {
version idea_version
plugins = myPlugins
......
......@@ -5,8 +5,9 @@ apply plugin: 'kotlin'
apply plugin: 'idea'
def myPlugins = ['git4idea']
if (idea_version.startsWith('193.') || idea_version.startsWith('2019.3')) {
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']
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册