adding new KBAPI version
This commit is contained in:
1 parent
7430e35ec2
commit
3a4c03affe
2 files changed
+25
-15
No files matched your search
@@ -2,12 +2,14 @@ package br.com.devsrsouza.kotlinbukkitapi.tooling.wizard
|
||||
|
||||
object Versions {
|
||||
val `v0_1_0-SNAPSHOT` = KotlinBukkitAPIVersion("0.1.0-SNAPSHOT")
|
||||
val `v0_2_0-SNAPSHOT` = KotlinBukkitAPIVersion("0.2.0-SNAPSHOT")
|
||||
|
||||
val ALL = arrayOf(
|
||||
`v0_1_0-SNAPSHOT`
|
||||
`v0_2_0-SNAPSHOT`,
|
||||
`v0_1_0-SNAPSHOT`
|
||||
)
|
||||
|
||||
val LAST = `v0_1_0-SNAPSHOT`
|
||||
val LAST = `v0_2_0-SNAPSHOT`
|
||||
|
||||
val visitorAll = ALL.associate { it.version to it }
|
||||
|
||||
@@ -15,8 +17,8 @@ object Versions {
|
||||
}
|
||||
|
||||
data class KotlinBukkitAPIVersion(
|
||||
val version: String,
|
||||
val kotlinVersion: String = "1.4.0"
|
||||
val version: String,
|
||||
val kotlinVersion: String = "1.4.0"
|
||||
) {
|
||||
override fun toString(): String {
|
||||
return version
|
||||
@@ -25,16 +27,16 @@ data class KotlinBukkitAPIVersion(
|
||||
private val group = "br.com.devsrsouza.kotlinbukkitapi"
|
||||
|
||||
val repositories = listOf(
|
||||
"http://nexus.devsrsouza.com.br/repository/maven-public/",
|
||||
"https://oss.jfrog.org/oss-snapshot-local/",
|
||||
"http://nexus.okkero.com/repository/maven-releases/",
|
||||
"https://repo.codemc.org/repository/maven-public"
|
||||
"http://nexus.devsrsouza.com.br/repository/maven-public/",
|
||||
"https://oss.jfrog.org/oss-snapshot-local/",
|
||||
"http://nexus.okkero.com/repository/maven-releases/",
|
||||
"https://repo.codemc.org/repository/maven-public"
|
||||
)
|
||||
|
||||
val dependencies = listOf(
|
||||
"${group}:core:$version",
|
||||
"${group}:serialization:$version",
|
||||
"${group}:plugins:$version",
|
||||
"${group}:exposed:$version",
|
||||
"${group}:core:$version",
|
||||
"${group}:serialization:$version",
|
||||
"${group}:plugins:$version",
|
||||
"${group}:exposed:$version",
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user