Skip to content

Commit

Permalink
[deps] Recommend latest dependency version in log msg (javalin#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmi authored and tipsy committed Oct 2, 2019
1 parent 44335e0 commit 7a39c74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/io/javalin/core/util/Util.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import java.io.ByteArrayOutputStream
import java.io.File
import java.io.InputStream
import java.net.URL
import java.net.URLEncoder
import java.util.*
import java.util.zip.Adler32
import java.util.zip.CheckedInputStream
Expand Down Expand Up @@ -66,6 +67,9 @@ object Util {
|
|build.gradle:
|compile "${dependency.groupId}:${dependency.artifactId}:${dependency.version}"
|
|Find the latest version here:
|https://search.maven.org/search?q=${URLEncoder.encode("g:" + dependency.groupId + " AND a:" + dependency.artifactId, "UTF-8")}
|-------------------------------------------------------------------""".trimMargin()

fun pathToList(pathString: String): List<String> = pathString.split("/").filter { it.isNotEmpty() }
Expand Down

0 comments on commit 7a39c74

Please sign in to comment.