1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Simplify.

This commit is contained in:
Cedric Beust 2015-12-12 01:10:44 +04:00
parent 4a545658da
commit 5468a380f2

View file

@ -8,9 +8,8 @@ import java.io.File
* eventually resolve to the latest version of the artifact.
*/
open class UnversionedDep(open val groupId: String, open val artifactId: String) {
open fun toMetadataXmlPath(fileSystem: Boolean = true, isLocal: Boolean): String {
return toDirectory("", fileSystem) + if (isLocal) "maven-metadata-local.xml" else "maven-metadata.xml"
}
open fun toMetadataXmlPath(fileSystem: Boolean = true, isLocal: Boolean) =
toDirectory("", fileSystem) + if (isLocal) "maven-metadata-local.xml" else "maven-metadata.xml"
/**
* Turn this dependency to a directory. If fileSystem is true, use the file system