-
-
Notifications
You must be signed in to change notification settings - Fork 684
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use pdvrieze xmlutil & refactor logs
- Loading branch information
Showing
4 changed files
with
86 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
LavalinkServer/src/main/java/lavalink/server/bootstrap/maven.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package lavalink.server.bootstrap | ||
|
||
import kotlinx.serialization.Serializable | ||
import nl.adaptivity.xmlutil.serialization.XmlChildrenName | ||
import nl.adaptivity.xmlutil.serialization.XmlElement | ||
import nl.adaptivity.xmlutil.serialization.XmlSerialName | ||
|
||
@Serializable | ||
@XmlSerialName("metadata") | ||
data class Metadata( | ||
@XmlElement(true) | ||
val groupId: String, | ||
@XmlElement(true) | ||
val artifactId: String, | ||
@XmlElement(true) | ||
val versioning: Versioning | ||
) | ||
|
||
@Serializable | ||
@XmlSerialName("versioning") | ||
data class Versioning( | ||
@XmlElement(true) | ||
val latest: String, | ||
@XmlElement(true) | ||
val release: String, | ||
@XmlElement(true) | ||
@XmlChildrenName("version") | ||
val versions: List<String>, | ||
@XmlElement(true) | ||
val lastUpdated: String | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters