-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
128 lines (113 loc) · 4.46 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
import org.jetbrains.intellij.tasks.RunPluginVerifierTask
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.6.5'
id 'com.palantir.git-version' version "0.12.3"
}
Properties properties = new Properties()
def propertiesFile = project.rootProject.file('local.properties')
if (propertiesFile.exists()) {
properties.load(propertiesFile.newDataInputStream())
}
def alternativeIdePathTesting = properties.getProperty('alternativeIdePathTesting')
def alternativeIdePathTestingIU = properties.getProperty('alternativeIdePathTestingIU')
def htmlFixer = { htmlFile -> file(htmlFile).text.replace('<html>', '').replace('</html>', '') }
group 'net.offbeatpioneer.intellij.plugins.grav'
version '0.6.1'
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'org.jetbrains.intellij'
project.sourceCompatibility = JavaVersion.VERSION_11
project.targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
maven { url "https://www.jetbrains.com/intellij-repository/releases" }
maven { url "https://jetbrains.bintray.com/intellij-third-party-dependencies" }
maven { url 'https://dl.bintray.com/jetbrains/intellij-plugin-service' }
}
dependencies {
implementation 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5'
testImplementation 'junit:junit:4.13.1'
implementation 'com.google.code.gson:gson:2.8.5'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
pluginName 'Grav Support'
type 'IU'
version 'IU-2020.2' //ideaVersion
// localPath = "${localIdePathIU}"
updateSinceUntilBuild false
// Absolute path to the locally installed JetBrains, e.g., PhpStorm (for testing)
// alternativeIdePath "${alternativeIdePathTesting}"
plugins = [
"com.jetbrains.php:${phpPluginVersion}",
"com.jetbrains.twig:${twigPluginVersion}",
"de.espend.idea.php.annotation:${phpAnnotationPluginVersion}",
"de.espend.idea.php.toolbox:${toolboxPluginVersion}",
// 'coverage',
'webDeployment',
'yaml',
'CSS',
// 'java-i18n',
'properties',
'xpath',
// 'java'
]
// Can't instantiate configurable for PHP Toolbox
// at de.espend.idea.php.toolbox.ui.application.ToolboxApplicationForm.<init>(ToolboxApplicationForm.java:26)
tasks {
buildSearchableOptions {
enabled = false
}
jarSearchableOptions {
enabled = true
}
}
}
runIde {
jbrVersion '11_0_9b944.49'
if (project.hasProperty("idePhpStorm")) {
if (alternativeIdePathTesting != null && alternativeIdePathTesting.trim() != "") {
println "Using PhpStorm IDE for testing"
// Absolute path to the locally installed JetBrains, e.g., PhpStorm (for testing)
ideDirectory "${alternativeIdePathTesting}"
}
}
autoReloadPlugins true
maxHeapSize "2g"
}
runPluginVerifier {
// ideVersions("PS-202.6948.87,IU-202.8194.7")
// IDEs to check
// ideVersions("IU-202.8194.7")
setJbrVersion("11_0_9b944.49")
// A list of the paths to locally installed IDE distributions that should be used for verification in addition to those specified in ideVersions
if (alternativeIdePathTesting != null && alternativeIdePathTesting.trim() != "" &&
alternativeIdePathTestingIU != null && alternativeIdePathTestingIU.trim() != "") {
setLocalPaths(Arrays.asList("${alternativeIdePathTesting}", "${alternativeIdePathTestingIU}"))
} else if (alternativeIdePathTesting != null && alternativeIdePathTesting.trim() != "") {
setLocalPaths(Arrays.asList("${alternativeIdePathTesting}"))
}
failureLevel(RunPluginVerifierTask.FailureLevel.ALL)
downloadDirectory(project.buildDir)
verificationReportsDirectory("${project.buildDir}/reports/pluginVerifier")
setSubsystemsToCheck("without-android")
}
patchPluginXml {
sinceBuild '202'
untilBuild '203.*'
changeNotes = htmlFixer('src/main/resources/META-INF/change-notes.html')
}
wrapper {
gradleVersion '6.7.1'
}
//task cleanUpGradleLogs() {
// def gradle = project.getGradle()
// new File("${gradle.getGradleUserHomeDir().getAbsolutePath()}/daemon/${gradle.getGradleVersion()}").listFiles().each {
// if (it.getName().endsWith('.out.log')) {
// logger.debug("Cleaning up daemon log file $it")
// it.delete()
// }
// }
//}