Skip to content

Commit

Permalink
[gradle] Rename task property to be compatible with the groovy intern…
Browse files Browse the repository at this point in the history
…als.

Properties shouldn't be named 'is...'
  • Loading branch information
terrakok committed Apr 24, 2024
1 parent b25286e commit d865534
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import java.io.File
*/
internal abstract class IdeaImportTask : DefaultTask() {
@get:Input
val isIdeaSync: Provider<Boolean> = project.provider {
val ideaIsInSync: Provider<Boolean> = project.provider {
System.getProperty("idea.sync.active", "false").toBoolean()
}

Expand All @@ -26,7 +26,7 @@ internal abstract class IdeaImportTask : DefaultTask() {
} catch (e: Exception) {
//message must contain two ':' symbols to be parsed by IDE UI!
logger.error("e: $name task was failed:", e)
if (!isIdeaSync.get()) throw e
if (!ideaIsInSync.get()) throw e
}
}

Expand Down

0 comments on commit d865534

Please sign in to comment.