-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
94 lines (82 loc) · 3.17 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
//plugins {
// id 'org.jetbrains.intellij' version '0.3.10'
//}
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.10"
}
}
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.6'
intellij {
pluginName = 'Android FindViewById 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.findViewById-support"
it.version = "${project.version}"
//AI-171 for AS-3.0,AI-173 for AS-3.1
sinceBuild = "AI-171"
//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 = "Generate findViewById code automatic. Support Java and Kotlin." + "<br/>" +
"<img src=\'https://raw.githubusercontent.com/Sunzxyong/findViewById-support/master/findviewbyid.jpg\' width=\'400\' height=\'272\'/>" + "<br/>" +
"<strong>Usage</strong>" + "<br/>" +
"Select the layout resource file and open \"Generate\" dialog from the [Code] menu at IDEA and click [Generate...] button, or use the shortcut key [Command + N]." + "<br/>" +
"<img src=\'https://raw.githubusercontent.com/Sunzxyong/findViewById-support/master/open.jpg\' width=\'400\' height=\'258\'/>" + "<br/>" +
"\n<li>Support Android Studio 3.0.0+</li>\n"
changeNotes = "\n<li>1.0: First version.</li>" +
"<li>1.1: To optimize the interaction.</li>" +
"<li>1.2: Update the description.</li>" +
"<li>1.3: Support lazy safety mode.</li>" +
"<li>1.4: Support memory storage.</li>" +
"<li>1.5: Support ids xml.</li>" +
"<li>1.6: Support for order id.</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"
}