diff options
author | Bilal Alsharifi <bilal.alsharifi@gmail.com> | 2019-04-05 13:19:40 -0400 |
---|---|---|
committer | Bilal Alsharifi <bilal.alsharifi@gmail.com> | 2019-04-05 13:19:40 -0400 |
commit | 6c2c4c7cc7eb0f444036d9488e7e20daf07d3452 (patch) | |
tree | 6fef1b119cd178cb54b6add25f697eeec0c38f34 | |
parent | d74f04f16828657942d3193a22dd94c92fa967c5 (diff) | |
download | sdl_android-6c2c4c7cc7eb0f444036d9488e7e20daf07d3452.tar.gz |
Update generateSources task to run even if it is not up to date
-rw-r--r-- | javaSE/build.gradle | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/javaSE/build.gradle b/javaSE/build.gradle index b9f985a33..c6a393e8a 100644 --- a/javaSE/build.gradle +++ b/javaSE/build.gradle @@ -39,15 +39,18 @@ sourceSets { } jar { + dependsOn 'generateSources' from { configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) } } } task generateSources { + outputs.upToDateWhen { false } File outputDir = file("$buildDir/../src/main/java/com/smartdevicelink/") outputs.dir outputDir doFirst { + println "Generating BuildConfig.java ..." def srcFile = new File(outputDir, "BuildConfig.java") srcFile.parentFile.mkdirs() File license = new File("$buildDir/../../LICENSE") @@ -73,6 +76,4 @@ public final class BuildConfig { } } -compileJava.dependsOn generateSources - apply from: 'bintray.gradle' |