-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
74 lines (63 loc) · 1.95 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
73
74
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 'http://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.phpInspectionsUltimate'
intellij {
version ideaVersion
pluginName 'Yii2 Inspections'
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}",
"com.jetbrains.twig:${twigPluginVersion}",
'CSS',
'java-i18n',
'properties',
'yaml',
]
} else {
plugins = [
"com.jetbrains.php:${phpPluginVersion}",
"com.jetbrains.twig:${twigPluginVersion}",
'CSS',
'java-i18n',
'properties',
'yaml',
]
}
}
patchPluginXml {
sinceBuild = "162.1889"
untilBuild = ""
}
sourceSets {
test {
resources {
srcDir 'testData'
}
}
}
wrapper {
gradleVersion '4.8'
}
jar {
baseName = "yii2inspections"
/* I didn't manage to make id "com.github.johnrengelman.shadow" version "2.0.4" working, hence we are doing this */
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test.testLogging.exceptionFormat = TestExceptionFormat.FULL
compileJava.options.encoding = 'UTF-8'