From 24948ac87b6468c38b06db8db44839547a5ff01e Mon Sep 17 00:00:00 2001 From: SmartDengg Date: Wed, 21 Nov 2018 17:36:16 +0800 Subject: [PATCH] feat:update submodule --- .idea/.name | 2 +- .idea/caches/build_file_checksums.ser | Bin 853 -> 853 bytes .idea/modules.xml | 2 +- build.gradle | 1 + .../gradle-plugin.gradle | 9 ++++++--- .../plugin/DebounceGradlePlugin.groovy | 5 ++++- settings.gradle | 2 +- 7 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.idea/.name b/.idea/.name index f01ae53..3ee22b5 100644 --- a/.idea/.name +++ b/.idea/.name @@ -1 +1 @@ -click-debounce \ No newline at end of file +debounce-compiler \ No newline at end of file diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index 4d4802edcf60da9a2a9fb3dca6498c88b9f87c19..ee592ae77b6e3122513e1da8efb0bcc85e876b1b 100644 GIT binary patch delta 100 zcmV-q0Gt2S2Gs_TnFE|F%aNRzJap*Y9~qo^Z5%STQ&g6dqI3Wcb7gdNX>Mn8E@yIK zWNc-1aR7b*1^@s65U!Y+##20iL?tE?{gf4lYLjpQoe)vd7-ybUlYQ13@|Nxr>>9Hj G0yqH*F(JPWnvJ8zEAeMKY`RnnoBG;{zDb7gdNX>Mn8E@yIK zWNc-1aR7b*1^@s65GW6fcEI+UBUjzpWjNms^^ - + \ No newline at end of file diff --git a/build.gradle b/build.gradle index 0eca747..eee41f0 100644 --- a/build.gradle +++ b/build.gradle @@ -9,6 +9,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:3.2.1' + classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/click-debounce-gradle-plugin/gradle-plugin.gradle b/click-debounce-gradle-plugin/gradle-plugin.gradle index 6442793..bb3b8b9 100644 --- a/click-debounce-gradle-plugin/gradle-plugin.gradle +++ b/click-debounce-gradle-plugin/gradle-plugin.gradle @@ -1,9 +1,12 @@ apply plugin: 'groovy' +apply plugin: 'com.github.dcendents.android-maven' + +group = 'com.github.SmartDengg' //noinspection GroovyUnusedAssignment -sourceCompatibility = JavaVersion.VERSION_1_7 +sourceCompatibility = JavaVersion.VERSION_1_8 //noinspection GroovyUnusedAssignment -targetCompatibility = JavaVersion.VERSION_1_7 +targetCompatibility = JavaVersion.VERSION_1_8 repositories { jcenter() @@ -12,7 +15,7 @@ repositories { } ext { - androidPluginVersion = '3.1.3' + androidPluginVersion = '3.2.1' } dependencies { diff --git a/click-debounce-gradle-plugin/src/main/groovy/com/smartdengg/plugin/DebounceGradlePlugin.groovy b/click-debounce-gradle-plugin/src/main/groovy/com/smartdengg/plugin/DebounceGradlePlugin.groovy index 8219225..a7b9b38 100644 --- a/click-debounce-gradle-plugin/src/main/groovy/com/smartdengg/plugin/DebounceGradlePlugin.groovy +++ b/click-debounce-gradle-plugin/src/main/groovy/com/smartdengg/plugin/DebounceGradlePlugin.groovy @@ -52,8 +52,11 @@ class DebounceGradlePlugin implements Plugin { url "https://jitpack.io" } + // project.configurations.implementation.dependencies.add( + // project.dependencies.create(project.rootProject.findProject("click-debounce-runtime"))) + project.configurations.implementation.dependencies.add( - project.dependencies.create(project.rootProject.findProject("click-debounce-runtime"))) + project.dependencies.create('com.github.SmartDengg:asm-clickdebounce-runtime:1.0.0')) project.extensions["${DebounceExtension.NAME}"] = project.objects.newInstance(DebounceExtension) diff --git a/settings.gradle b/settings.gradle index b9e1d8e..80003da 100644 --- a/settings.gradle +++ b/settings.gradle @@ -5,7 +5,7 @@ include ':click-debounce-sample', ':buildSrc', include ':click-debounce-runtime' project(':click-debounce-runtime').projectDir = new File('runtime/click-debounce-runtime') -settings.rootProject.name = 'click-debounce-compiler' +settings.rootProject.name = 'debounce-compiler' def initBuildFile(def projects) { projects.each {