mirror of
https://github.com/alibaba/p3c.git
synced 2025-10-16 08:02:12 +00:00
code compatibility with new idea version
This commit is contained in:
@@ -7,7 +7,7 @@ apply plugin: 'maven'
|
|||||||
apply plugin: 'signing'
|
apply plugin: 'signing'
|
||||||
|
|
||||||
javadoc {
|
javadoc {
|
||||||
options.tags = [ "date" ]
|
options.tags = ["date"]
|
||||||
}
|
}
|
||||||
|
|
||||||
task javadocJar(type: Jar, dependsOn: javadoc) {
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
||||||
@@ -27,12 +27,12 @@ artifacts {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def myPlugins = []
|
def myPlugins = []
|
||||||
|
def versionDotIndex = idea_version.indexOf('.')
|
||||||
if (idea_version.startsWith('193.') || idea_version.startsWith('2019.3')) {
|
def intVersion = versionDotIndex == -1 ? Integer.parseInt(idea_version) : Integer.parseInt(idea_version.substring(0, versionDotIndex))
|
||||||
|
if (intVersion >= 2019 || (intVersion < 1000 && intVersion >= 193)) {
|
||||||
myPlugins = ['java']
|
myPlugins = ['java']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
intellij {
|
intellij {
|
||||||
version idea_version
|
version idea_version
|
||||||
plugins = myPlugins
|
plugins = myPlugins
|
||||||
|
@@ -5,8 +5,9 @@ apply plugin: 'kotlin'
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
|
|
||||||
def myPlugins = ['git4idea']
|
def myPlugins = ['git4idea']
|
||||||
|
def versionDotIndex = idea_version.indexOf('.')
|
||||||
if (idea_version.startsWith('193.') || idea_version.startsWith('2019.3')) {
|
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']
|
myPlugins = ['git4idea', 'java']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user