Skip to content

Commit

Permalink
chore: bump project version to 0.6.13
Browse files Browse the repository at this point in the history
Make LSParanoid task up to date if java or kotlin compile was not ran.

This change ensures that the LSParanoid task is only executed when necessary, improving build performance.

Signed-off-by: androidacy-user <[email protected]>
  • Loading branch information
androidacy-user committed Aug 18, 2024
1 parent d956c4a commit 99ccdbb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
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.12"
version = "0.6.13"

plugins.withType(JavaPlugin::class.java) {
extensions.configure(JavaPluginExtension::class.java) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ class LSParanoidPlugin : Plugin<Project> {
"lsparanoid${variant.name.replaceFirstChar { it.uppercase() }}",
LSParanoidTask::class.java
) {
// 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
}
}
it.bootClasspath.set(components.sdkComponents.bootClasspath)
it.classpath = variant.compileClasspath
it.seed.set(extension.seed ?: SecureRandom().nextInt())
Expand Down

0 comments on commit 99ccdbb

Please sign in to comment.