-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
59 lines (47 loc) · 1.22 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
plugins {
id 'org.jetbrains.intellij' version "0.6.5"
}
sourceSets {
main {
java {
srcDirs += ["src/main/gen"]
}
}
}
Properties properties = new Properties()
properties.load(project.rootProject.file("local.properties").newDataInputStream())
sourceCompatibility = 1.8
targetCompatibility = 1.8
version '0.4.5'
jar {
archiveName 'intellij-nette-' + version + '.jar'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
runIde {
ideDirectory "${properties.getProperty('runIdeDirectory')}"
}
def htmlFixer = { htmlFile -> file(htmlFile).text.replace('<html>', '').replace('</html>', '') }
patchPluginXml {
changeNotes = htmlFixer('src/main/resources/META-INF/change-notes.html')
}
apply plugin: 'org.jetbrains.intellij'
intellij {
version ideaVersion
updateSinceUntilBuild false
plugins = [
"com.jetbrains.php:${phpPluginVersion}",
'java',
'properties'
]
pluginName 'Nette framework helpers'
}
repositories {
mavenCentral()
// flatDir {
// dirs 'libs'
// }
}
//dependencies {
// compileOnly 'com.mesour.intellij:intellij-utils:1.0.0-SNAPSHOT'
// testCompile 'junit:junit:4.13'
//}