forked from Haehnchen/idea-php-annotation-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
64 lines (51 loc) · 1.52 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
plugins {
id "org.jetbrains.intellij" version "0.4.11"
id "com.palantir.git-version" version "0.12.3"
}
def htmlFixer = { htmlFile -> file(htmlFile).text.replace('<html>', '').replace('</html>', '') }
apply plugin: 'idea'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
def requiredPlugins = [
"com.jetbrains.php:${phpPluginVersion}",
"de.espend.idea.php.toolbox:${toolboxPluginVersion}",
"com.jetbrains.twig:${twigPluginVersion}",
'CSS',
'java',
'java-i18n',
'properties'
]
intellij {
version ideaVersion
updateSinceUntilBuild false
plugins = requiredPlugins
pluginName 'PHP Annotations'
// Can't instantiate configurable for PHP Toolbox
// at de.espend.idea.php.toolbox.ui.application.ToolboxApplicationForm.<init>(ToolboxApplicationForm.java:26)
tasks {
"buildSearchableOptions" {
enabled = false
}
}
}
patchPluginXml {
changeNotes = htmlFixer('src/main/resources/META-INF/change-notes.html')
sinceBuild '203'
}
publishPlugin {
token System.getenv('IJ_TOKEN')
}
group 'de.espend.idea.php.annotation'
def details = versionDetails()
if (details.isCleanTag) {
version = "${details.lastTag}"
} else {
version = "${details.lastTag}.${details.gitHash}-SNAPSHOT"
}
wrapper {
gradleVersion '5.5.1'
}
test.testLogging.exceptionFormat = TestExceptionFormat.FULL