forked from Blankj/AndroidUtilCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·56 lines (48 loc) · 1.13 KB
/
build.gradle
File metadata and controls
executable file
·56 lines (48 loc) · 1.13 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
plugins {
id 'com.gradle.plugin-publish' version "0.10.0" //for pluginPublish.gradle
}
apply {
plugin "groovy"
plugin "java-gradle-plugin"
from "${rootDir.path}/gradle/pluginPublish.gradle"
if (bus.isDebug) {
plugin "maven"
from "${rootDir.path}/gradle/localMavenUpload.gradle"
} else {
plugin "com.github.dcendents.android-maven"
plugin "com.jfrog.bintray"
from "${rootDir.path}/gradle/bintrayUploadJava.gradle"
}
}
gradlePlugin {
plugins {
busPlugin {
id = 'com.blankj.bus'
implementationClass = 'com.blankj.bus.BusPlugin'
}
}
}
dependencies {
implementation dep.plugin[0]
implementation dep.javassist
implementation dep.commons_io
implementation gradleApi()
implementation localGroovy()
testImplementation dep.junit
}
sourceSets {
main {
groovy {
srcDirs += 'src/main/java'
}
}
test {
groovy {
srcDirs += 'src/test/java'
}
}
}
group = bus.group
version = bus.version
//./gradlew bus-gradle-plugin:bintrayUpload
//./gradlew publishPlugins