Skip to content

Commit

Permalink
fix: remove the deprecated SpotBugsReport.setDestination(Provider) API
Browse files Browse the repository at this point in the history
refs #928

Signed-off-by: Kengo TODA <skypencil@gmail.com>
  • Loading branch information
KengoTODA committed Aug 13, 2023
1 parent 04eedc6 commit a8f83c9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/kotlin/com/github/spotbugs/snom/SpotBugsReport.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import groovy.lang.Closure
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.Property
import org.gradle.api.provider.Provider
import org.gradle.api.reporting.CustomizableHtmlReport
import org.gradle.api.reporting.Report
import org.gradle.api.reporting.SingleFileReport
Expand Down Expand Up @@ -69,11 +68,6 @@ abstract class SpotBugsReport @Inject constructor(
destination.set(file)
}

@Deprecated("use {@code getOutputLocation().set(provider)} instead.")
fun setDestination(provider: Provider<File?>) {
destination.set(task.project.layout.file(provider))
}

override fun configure(closure: Closure<*>?): Report {
ConfigureUtil.configureSelf(closure, this)
return this
Expand Down

0 comments on commit a8f83c9

Please sign in to comment.