Skip to content

Commit

Permalink
Deprecate method that is no longer needed and will soon be removed
Browse files Browse the repository at this point in the history
  • Loading branch information
floscher committed Sep 23, 2018
1 parent 55a5746 commit a52fa25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/config/JosmPluginExtension.kt
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,13 @@ open class JosmPluginExtension(private val project: Project) {
public fun manifest(c: Closure<JosmManifest>) {
project.configure(manifest, c)
}

/** @suppress */
@Deprecated(message = "Will soon be removed")
companion object {
/**
* Returns the [JosmPluginExtension] for a particular [Project].
*/
@Deprecated("Will soon be removed", ReplaceWith("project.extensions.josm"))
@JvmStatic
fun forProject(project: Project): JosmPluginExtension {
return project.getExtensions().getByType(JosmPluginExtension::class.java)
Expand Down

0 comments on commit a52fa25

Please sign in to comment.