forked from kalessil/phpinspectionsea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (60 loc) · 1.9 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
buildscript {
repositories {
mavenCentral()
maven { url "https://jetbrains.bintray.com/intellij-third-party-dependencies" }
maven { url 'https://jitpack.io' }
maven { url 'https://dl.bintray.com/jetbrains/intellij-plugin-service' }
}
}
plugins {
id "org.jetbrains.intellij" version "0.4.15"
id 'com.palantir.git-version' version "0.11.0"
}
group 'com.kalessil.phpStorm.phpInspectionsEA'
def htmlFixer = { htmlFile -> file(htmlFile).text.replace('<html>', '').replace('</html>', '') }
intellij {
version ideaVersion
pluginName 'Php Inspections (EA Extended)'
def versionParts = ideaVersion.replace('IU-', '').split('\\.')
if ((Integer.parseInt(versionParts[0]) == 2019 && Integer.parseInt(versionParts[1]) >= 2) || Integer.parseInt(versionParts[0]) > 2019) {
/* since 2019.2 Java is a separate plugin, hence we have to specify it implicitly */
plugins = [
'java',
"com.jetbrains.php:${phpPluginVersion}",
'CSS',
'java-i18n',
'properties',
'yaml',
]
} else {
plugins = [
"com.jetbrains.php:${phpPluginVersion}",
'CSS',
'java-i18n',
'properties',
'yaml',
]
}
}
patchPluginXml {
sinceBuild = "162.1889"
untilBuild = ""
changeNotes = htmlFixer('src/main/resources/META-INF/change-notes.html')
pluginDescription = htmlFixer('src/main/resources/META-INF/description.html')
}
sourceSets {
test {
resources {
srcDir 'testData'
}
}
}
wrapper {
gradleVersion '4.8'
}
jar {
baseName = "PhpInspectionsEA"
}
test.testLogging.exceptionFormat = TestExceptionFormat.FULL
compileJava.options.encoding = 'UTF-8'