Skip to content

Commit

Permalink
jinghongjun: Fix build error in ubuntu.
Browse files Browse the repository at this point in the history
Signed-off-by: jinghongjun <[email protected]>
  • Loading branch information
jinghongjun committed Jan 18, 2017
1 parent f7a6060 commit c541c6e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ buildscript {
// maven() {
// url 'https://dl.bintray.com/codingbingo/maven'
// }
maven{
url 'file:////u-disk/work/maven_repositories/android/repo'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'me.tatarka:gradle-retrolambda:3.2.0'
classpath 'org.aspectj:aspectjtools:1.8.9'
classpath 'com.app.plugin:gradleplugin:1.0.0'
// classpath 'com.codingbingo.library:gradletaskrecord:1.0.0'//追踪Gradle 任务耗时
}
}
Expand Down
9 changes: 9 additions & 0 deletions buildsrc/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'groovy'
apply plugin: 'maven'

dependencies {
compile gradleApi()//gradle sdk
Expand All @@ -7,6 +8,14 @@ dependencies {
compile 'org.javassist:javassist:3.20.0-GA'
compile 'org.aspectj:aspectjtools:1.8.1'
}
uploadArchives {
repositories.mavenDeployer {
repository(url: PLUGIN_URL)
pom.groupId = PLUGIN_GROUP
pom.artifactId = PLUGIN_ARTIFACTID
pom.version = PLUGIN_VERSION
}
}

repositories {
jcenter()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
implementation-class=com.app.plugin.AspectjPlugin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
implementation-class=com.app.plugin.JavassistPlugin
9 changes: 8 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@ org.gradle.parallel=true
# 启用按需加载
org.gradle.configureondemand=true
# 启用守护进程
org.gradle.daemon=true
org.gradle.daemon=true


# com.app.plugin
PLUGIN_URL=file:////u-disk/work/maven_repositories/android/repo
PLUGIN_GROUP=com.app.plugin
PLUGIN_ARTIFACTID=gradleplugin
PLUGIN_VERSION=1.0.0

0 comments on commit c541c6e

Please sign in to comment.