-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
87 lines (75 loc) · 2.64 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
//plugins {
// id 'org.jetbrains.intellij' version '0.3.4'
//}
buildscript {
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven {
url 'http://dl.bintray.com/jetbrains/intellij-plugin-service'
}
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url 'https://dl.google.com/dl/android/maven2'
}
jcenter()
mavenCentral()
google()
}
dependencies {
classpath "gradle.plugin.org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.3.4"
}
}
repositories {
jcenter()
mavenCentral()
google()
}
apply plugin: 'idea'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
}
group = 'com.zxy.idea.plugin'
version = '1.2'
intellij {
pluginName = 'Android External Plugin Support'
//https://www.jetbrains.com/intellij-repository/releases
it.version = null
//version = '2018.1.1'
plugins = ['android', 'gradle', 'Groovy']
type = "AI"
//for as local,intelliJ IDEA version is not recommended.
localPath = "/Applications/Android Studio.app"
updateSinceUntilBuild = false
sameSinceUntilBuild = false
sandboxDirectory = "${project.buildDir}/idea-sandbox"
alternativeIdePath = "/Applications/Android Studio.app"
}
patchPluginXml {
//https://plugins.jetbrains.com/plugin/YOUR_PLUGIN_ID
pluginId = "com.zxy.idea.plugin.external-plugin-support"
it.version = "${project.version}"
//AI-171 for AS-3.0,AI-173 for AS-3.1
sinceBuild = "AI-173"
//Product ID-Branch number-Build number in the branch,see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html
//untilBuild = "AI-181"
pluginDescription = "Show the source code [Groovy、Java、Class] for Android Gradle Plugin and Custom Gradle Plugin. Such as External Libraries." + "<br/>" +
"<img src=\'https://raw.githubusercontent.com/Sunzxyong/external-plugin-support/master/external-plugins.png\' width=\'320\' height=\'206\'/>" + "<br/>" +
"\n<li>Support Android Studio 3.1.0+</li>\n"
changeNotes = "\n<li>1.0: First version.</li>" +
"<li>1.1: Update the description.</li>+" +
"<li>1.2: Change icon.</li>\n"
}
Properties properties = new Properties()
properties.load(project.file("local.properties").newDataInputStream())
publishPlugin {
username = properties.get("username")
password = properties.get("password")
host = "http://plugins.jetbrains.com"
}