Skip to content

Commit

Permalink
prepare restructure of user-command in Modrinth.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
NotJansel committed Dec 13, 2022
1 parent c845b26 commit fb85ade
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ fun String.runCommand(


group = "org.hyacinthbots.allium"
//version = "0.3.0-build.local-" + "git rev-parse --short=8 HEAD".runCommand(workingDir = rootDir)
version = "0.3.1-build.local-" + "git rev-parse --short=8 HEAD".runCommand(workingDir = rootDir)
var buildTime = Date().time / 1000
version = "0.3.0"
//version = "0.3.0"
// The current LTS Java version
val javaVersion = 17

Expand Down
13 changes: 13 additions & 0 deletions src/main/kotlin/org/hyacinthbots/allium/extensions/Modrinth.kt
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,19 @@ class Modrinth : Extension() {
val license: String?
)

@Serializable
data class UserData(
val username: String,
val name: String?,
val email: String?,
val bio: String?,
val id: String,
@SerialName("github_id") val githubId: Int,
@SerialName("avatar_url") val avatarUrl: String,
val created: String,
val role: String
)

@Serializable
data class ProjectVersionData(
val name: String,
Expand Down

0 comments on commit fb85ade

Please sign in to comment.