Skip to content

Commit

Permalink
Merge pull request #113 from xuwei-k/commons-lang3-text
Browse files Browse the repository at this point in the history
avoid deprecated commons-lang3 StringEscapeUtils
  • Loading branch information
eed3si9n authored Mar 20, 2024
2 parents 00e05d8 + 9a7146e commit 5624649
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lazy val lang3 = "org.apache.commons" % "commons-lang3" % "3.14.0"
lazy val lang3 = "org.apache.commons" % "commons-text" % "1.11.0"
lazy val repoSlug = "sbt/sbt-license-report"

val scala212 = "2.12.18"
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/sbtlicensereport/license/TargetLanguage.scala
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ case object Html extends TargetLanguage {
}
def tableEnd: String = "</tbody></table>"

def htmlEncode(s: String) = org.apache.commons.lang3.StringEscapeUtils.escapeHtml4(s)
def htmlEncode(s: String) = org.apache.commons.text.StringEscapeUtils.escapeHtml4(s)
}

case object Csv extends TargetLanguage {
Expand All @@ -114,7 +114,7 @@ case object Csv extends TargetLanguage {
}

def tableEnd: String = ""
def csvEncode(s: String): String = org.apache.commons.lang3.StringEscapeUtils.escapeCsv(s)
def csvEncode(s: String): String = org.apache.commons.text.StringEscapeUtils.escapeCsv(s)
}

case object ConfluenceWikiMarkup extends TargetLanguage {
Expand Down

0 comments on commit 5624649

Please sign in to comment.