Skip to content

Commit

Permalink
chore: bump project version to 0.6.14
Browse files Browse the repository at this point in the history
Updates LSParanoid's upToDate check to ensure that the task has completed its
 work before determining if it is up to date.

This change addresses an issue where the task may have been incorrectly marked as up to date if the Java or Kotlin compile tasks had not yet run.

Signed-off-by: androidacy-user <[email protected]>
  • Loading branch information
androidacy-user committed Aug 18, 2024
1 parent 99ccdbb commit 7a249e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {

allprojects {
group = "com.github.Androidacy.LSParanoid"
version = "0.6.13"
version = "0.6.14"

plugins.withType(JavaPlugin::class.java) {
extensions.configure(JavaPluginExtension::class.java) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ class LSParanoidPlugin : Plugin<Project> {
) {
// up to date if java or kotlin compile was not ran
it.outputs.upToDateWhen {
project.tasks.withType(JavaCompile::class.java).any { task ->
task.state.upToDate
} && project.tasks.withType(KotlinCompile::class.java).any { task ->
task.state.upToDate
for (task in project.tasks.withType(JavaCompile::class.java)) {
if (task.didWork) return@upToDateWhen false
}
for (task in project.tasks.withType(KotlinCompile::class.java)) {
if (task.didWork) return@upToDateWhen false
}
true
}
it.bootClasspath.set(components.sdkComponents.bootClasspath)
it.classpath = variant.compileClasspath
Expand Down

0 comments on commit 7a249e9

Please sign in to comment.