-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
69 lines (59 loc) · 2.39 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
buildscript {
repositories {
mavenCentral()
maven { url 'https://www.jetbrains.com/intellij-repository/releases' }
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '2.0.0'
id 'org.jetbrains.intellij.platform' version '2.2.1'
}
group 'com.nilsenlabs.flavormatrix'
version '1.4.2'
Properties properties = new Properties()
properties.load(project.rootProject.file("local.properties").newDataInputStream())
// Any developer must change this to his/her installation folder
// of Android Studio of the targetIdeVersion for which to build for
// When updating, delete all source jar references manually from Project Structure > Libraries that reference
// the old version of Android Studio. E.g::
// plugins\properties\lib\platform-images.jar
// plugins\properties\lib\properties.jar
// plugins\smali\lib\smali.jar
def defaultLocalStudioPath = 'd:/coding/android-studio-meerkat'
// Specify the path in your local.properties file as
// localStudioPath=your/path/to/androidstudio
// Also see https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension-localpath
def localStudioPath = properties.get("localStudioPath") ?: defaultLocalStudioPath
// Below: Meerkat 2024.3.1 Canary 9. Remember to update plugin.xml
def targetIdeVersion = "243.22562.218"
patchPluginXml {
changeNotes = """
<ul>
<li>1.4.2 Publishing technicalities - no functionality change</li>
<li>1.4.0 Support for Android Studio Meerkat (from Canary 9)</li>
<li>1.3.0 Support for Android Studio Ladybug</li>
<li>1.2.0 Support for Android Studio Giraffe and Hedgehog</li>
<li>1.1.0 Support for Android Studio Electric Eel</li>
<li>1.0.0 Support for Android Studio Chipmunk (RC2+)</li>
<li>0.7.0 Support for Android studio Arctic Fox 2020.3.1</li>
</ul>
"""
}
repositories {
mavenLocal()
mavenCentral()
intellijPlatform {
defaultRepositories()
}
maven { url 'https://www.jetbrains.com/intellij-repository/releases' }
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation "org.mockito:mockito-core:2.+"
intellijPlatform {
local(localStudioPath)
//androidStudio("$targetIdeVersion") // If you want IntelliJ to download AS. instead of "local"
bundledPlugin('com.intellij.gradle')
plugin("org.jetbrains.android:$targetIdeVersion")
}
}