-
Notifications
You must be signed in to change notification settings - Fork 256
/
build.gradle
119 lines (97 loc) · 3.29 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
import org.jetbrains.changelog.Changelog
plugins {
// Must match the Kotlin version bundled with the IDE
// https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library
// https://plugins.jetbrains.com/docs/intellij/android-studio-releases-list.html
id "org.jetbrains.kotlin.jvm" version "1.8.0"
// https://github.com/JetBrains/gradle-intellij-plugin
id "org.jetbrains.intellij" version "1.16.1"
// https://github.com/ajoberstar/reckon
id "org.ajoberstar.reckon" version "0.14.0"
// https://github.com/b3er/gradle-local-properties-plugin
id "com.github.b3er.local.properties" version "1.1"
// https://github.com/JetBrains/gradle-changelog-plugin
id "org.jetbrains.changelog" version "2.0.0"
}
repositories {
mavenCentral()
}
group 'com.developerphil.intellij.plugin.adbidea'
sourceCompatibility = 17
targetCompatibility = 17
intellij {
pluginName = 'adb_idea'
updateSinceUntilBuild = false
type = "AI"
plugins = ['android']
// Set this path to point to a locally installed version of android studio.
// see gradle.properties for more info
if (project.hasProperty("localIdeOverride")) {
localPath = localIdeOverride
} else {
version = project.property("ideVersion")
}
instrumentCode {
compilerVersion = "231.9225.16"
}
patchPluginXml {
sinceBuild = project.property("sinceBuild")
// Extract the 5 most recent entries in CHANGELOG.md
changeNotes = provider {
def s = ""
changelog.getAll()
.drop(1) // drop the [Unreleased] section
.take(5) // last 5 changes
.forEach { key, val ->
s += changelog.renderItem(
changelog
.get(key)
.withHeader(true)
.withEmptySections(false),
Changelog.OutputType.HTML
)
}
s
}
}
runIde {
jvmArgs = ['-Xmx4096m', '-XX:+UnlockDiagnosticVMOptions']
}
}
changelog {
repositoryUrl = "https://github.com/pbreault/adb-idea"
itemPrefix = "-"
keepUnreleasedSection = true
unreleasedTerm = "[Unreleased]"
groups.empty()
combinePreReleases = true
}
task printLastChanges() {
doLast {
def s = ""
changelog.getAll()
.drop(1) // drop the [Unreleased] section
.take(5) // last 5 changes
.forEach { key, val ->
s += changelog.renderItem(
changelog
.get(key)
.withHeader(false)
.withEmptySections(false),
Changelog.OutputType.MARKDOWN
)
}
println(s)
}
}
dependencies {
implementation 'org.jooq:joor-java-8:0.9.14'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:4.7.0'
testImplementation 'com.google.truth:truth:1.1.3'
}
reckon {
scopeFromProp()
snapshotFromProp()
}
buildSearchableOptions.enabled = false