This repository has been archived by the owner on Oct 22, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
59 lines (48 loc) · 1.49 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
plugins {
id "org.jetbrains.intellij" version "0.4.8"
id 'com.palantir.git-version' version "0.11.0"
}
def htmlFixer = { htmlFile -> file(htmlFile).text.replace('<html>', '').replace('</html>', '') }
apply plugin: 'idea'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
intellij {
version ideaVersion
pluginName 'PHP Generics'
updateSinceUntilBuild false
plugins = [
"com.jetbrains.php:${phpPluginVersion}",
"org.jetbrains.plugins.phpstorm-remote-interpreter:${phpRemoteInterpreter}",
"de.espend.idea.php.annotation:${annotationPluginVersion}",
// "org.jetbrains.plugins.phpstorm-docker:201.6668.60", // for remote interpreter testing
'CSS',
'java-i18n',
'properties',
'yaml',
'JavaScriptLanguage',
"java"
]
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
patchPluginXml {
sinceBuild '201.6668'
changeNotes = htmlFixer('src/main/resources/META-INF/change-notes.html')
}
publishPlugin {
token System.getenv('IJ_TOKEN')
}
group 'de.espend.idea.php.generics'
def details = versionDetails()
if (details.isCleanTag) {
version = "${details.lastTag}"
} else {
version = "${details.lastTag}.${details.gitHash}-SNAPSHOT"
}
wrapper {
gradleVersion '6.3'
}
test.testLogging.exceptionFormat = TestExceptionFormat.FULL