Skip to content

Commit

Permalink
fixbug
Browse files Browse the repository at this point in the history
  • Loading branch information
typ0520 committed Oct 20, 2017
1 parent b74cedc commit bb33c60
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.7.3 (2017-10-20)

Bugfixes:

- 修复javaPreCompile任务执行顺序错误的问题

## 0.7.2 (2017-10-18)

Bugfixes:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Android API 9(2.3)+ ; android-gradle-build 2.0.0+
}
dependencies {
classpath 'com.github.typ0520:fastdex-gradle:0.7.2'
classpath 'com.github.typ0520:fastdex-gradle:0.7.3'
}
}
````
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ class FastdexPlugin implements Plugin<Project> {
if (customJavacTask.javacIncrementalSafeguard != null) {
customJavacTask.javacIncrementalSafeguard.mustRunAfter customJavacTask
}
if (customJavacTask.javaPreCompile != null) {
customJavacTask.javaPreCompile.mustRunAfter customJavacTask
}
javaCompile.dependsOn customJavacTask
scanAptOutputTask.mustRunAfter customJavacTask
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,18 @@ public class FastdexCustomJavacTask extends DefaultTask {
javaCompile.enabled = false

if (javacIncrementalSafeguard != null) {
javacIncrementalSafeguard.enabled = false
try {
javacIncrementalSafeguard.enabled = false
} catch (Throwable e) {

}
}
if (javaPreCompile != null) {
javaPreCompile.enabled = false
try {
javaPreCompile.enabled = false
} catch (Throwable e) {

}
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
org.gradle.daemon=true

groupId=com.github.typ0520
version=0.7.2
version=0.7.3

ANDROID_BUILD_MIN_SDK_VERSION=14
ANDROID_BUILD_TARGET_SDK_VERSION=22
Expand Down
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildscript {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath "me.tatarka:gradle-retrolambda:3.6.0"
classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'
classpath 'com.github.typ0520:fastdex-gradle:0.7.2'
classpath 'com.github.typ0520:fastdex-gradle:0.7.3'
}
}

Expand Down

0 comments on commit bb33c60

Please sign in to comment.