Skip to content

Commit

Permalink
Merge pull request #3039 from square/jwilson.0719.undeprecate
Browse files Browse the repository at this point in the history
Undeprecate WireExtension.srcDir
  • Loading branch information
oldergod authored Jul 19, 2024
2 parents d707362 + 754036b commit 4c6a17e
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,17 +311,13 @@ open class WireExtension(
}

/** Sets a directory. Example: "src/main/proto". */
@Deprecated("Deprecated in favor of 'srcDir(fileCollection)'")
fun srcDir(dir: String) {
isEmpty = false
sourceDirectoriesAndLocalJars += project.file(dir)
srcDir(project.file(dir))
}

/** Sets one or more directories. */
@Deprecated("Deprecated in favor of 'srcDir(fileCollection)'")
fun srcDirs(vararg dirs: String) {
isEmpty = false
sourceDirectoriesAndLocalJars += dirs.map { project.file(it) }
srcDir(dirs.map { project.file(it) })
}

/** Sets a local or a remote jar. Examples: "libs/protos.jar", or "com.example:protos:1.0.0". */
Expand Down

0 comments on commit 4c6a17e

Please sign in to comment.