-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
71 lines (55 loc) · 1.92 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
plugins {
id 'java'
id 'org.jetbrains.intellij' version '1.13.0'
id 'org.jetbrains.grammarkit' version '2021.2.2'
}
group 'com.github.vitalibo'
version (project.hasProperty('version') ? project.getProperty('version') : '1.1-SNAPSHOT')
sourceCompatibility = '1.11'
targetCompatibility = '1.11'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.testng:testng:7.6.0'
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testCompileOnly 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
}
sourceSets.main.java.srcDirs 'src/main/gen'
intellij {
version = '2022.1.3'
pluginName = 'BitBake'
updateSinceUntilBuild = false
}
tasks {
tasks.withType(JavaCompile) {
sourceCompatibility = "11"
targetCompatibility = "11"
dependsOn generateLexer
dependsOn generateParser
}
patchPluginXml {
sinceBuild = '213'
pluginDescription = """Highlight .bb/.bbappend/.bbclass/.inc files in JetBrains IDEs to make working with
BitBake-based projects (like anything based on Yocto Project) easier."""
changeNotes = """Fix compatibility with IDEA/PyCharm Ultimate."""
}
generateLexer {
source = "src/main/java/com/github/vitalibo/intellij/bitbake/BitBake.flex"
targetDir = 'src/main/gen/com/github/vitalibo/intellij/bitbake'
targetClass = "BitBakeLexer"
purgeOldFiles = true
}
generateParser {
source = "src/main/java/com/github/vitalibo/intellij/bitbake/BitBake.bnf"
targetRoot = 'src/main/gen'
pathToParser = '/com/github/vitalibo/intellij/bitbake/parser/BitBakeParser.java'
pathToPsiRoot = '/com/github/vitalibo/intellij/bitbake/psi'
purgeOldFiles = true
}
buildSearchableOptions {
enabled = false
}
}