-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
71 lines (62 loc) · 1.72 KB
/
build.gradle
File metadata and controls
71 lines (62 loc) · 1.72 KB
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.2.1'
id 'org.jetbrains.kotlin.jvm' version '1.4.32'
}
group plugin_group
version plugin_version
repositories {
mavenCentral()
}
dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
implementation "org.jetbrains.kotlin:kotlin-stdlib"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
pluginName.set('AndroidNativeDebug')
version.set('CL-2021.2.3')
// intellijRepo.set('https://www.jetbrains.com/intellij-repository')
downloadSources.set(false)
instrumentCode.set(true)
plugins.set(['cidr-debugger-plugin', 'cidr-base-plugin', 'clion', 'cidr-clangFormat'])
}
patchPluginXml {
sinceBuild.set('212.0')
changeNotes.set(provider {getChangeNote(projectDir)})
}
instrumentCode{
compilerVersion.set('212.5457.51')
}
publishPlugin {
channels.set([plugin_channels])
token.set(System.getenv("CLION_PUBLISH_TOKEN"))
}
test {
useJUnitPlatform()
}
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
static def getChangeNote(File projectDir){
def change = ""
def change_file = new File(projectDir, "CHANGE")
def input = change_file.newReader()
BufferedReader br = new BufferedReader(input)
try {
while(true) {
String line = br.readLine()
if (line == null || "----" == line) break
change += line + "<br>"
}
} finally {
br.close()
}
return change
}