Skip to content

Commit

Permalink
Move versions around.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchallen committed Dec 16, 2019
1 parent 414b705 commit 4ad2a95
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ plugins {
}

group = "com.github.cs125-illinois"
version = "2019.12.2"
version = "2019.12.3"

dependencies {
antlr("org.antlr:antlr4:4.7.2")

implementation(kotlin("stdlib"))
implementation(kotlin("compiler-embeddable"))

implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2-1.3.60")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.3")
implementation("com.puppycrawl.tools:checkstyle:8.27")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.3.61")
implementation("com.github.jknack:handlebars:4.1.2")
Expand Down Expand Up @@ -54,6 +54,6 @@ task("createProperties") {
val properties = Properties().also {
it["version"] = project.version.toString()
}
File(projectDir, "src/main/resources/core_version.properties").printWriter().use { properties.store(it, null) }
File(projectDir, "src/main/resources/edu.illinois.cs.cs125.jeed.core.version").printWriter().use { properties.store(it, null) }
}
}
2 changes: 1 addition & 1 deletion core/src/main/kotlin/Version.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import java.util.*

val version = run {
try {
val versionFile = object : Any() {}::class.java.getResource("/core_version.properties")
val versionFile = object : Any() {}::class.java.getResource("/edu.illinois.cs.cs125.jeed.core.version")
Properties().also { it.load(versionFile.openStream()) }["version"] as String
} catch (e: Exception) {
println(e)
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/resources/core_version.properties

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Mon Dec 16 14:58:25 CST 2019
version=2019.12.3
6 changes: 3 additions & 3 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ dependencies {
implementation(project(":core"))
implementation(kotlin("stdlib"))
implementation("io.ktor:ktor-server-netty:$ktorVersion")
implementation("org.mongodb:mongodb-driver:3.11.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2-1.3.60")
implementation("org.mongodb:mongodb-driver:3.12.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.3")
implementation("com.squareup.moshi:moshi-kotlin:1.9.2")
implementation("com.ryanharter.ktor:ktor-moshi:1.0.1")
implementation("ch.qos.logback:logback-classic:1.2.3")
Expand Down Expand Up @@ -63,7 +63,7 @@ task("createProperties") {
val properties = Properties().also {
it["version"] = project.version.toString()
}
File(projectDir, "src/main/resources/version.properties").printWriter().use { properties.store(it, null) }
File(projectDir, "src/main/resources/edu.illinois.cs.cs125.jeed.server.version").printWriter().use { properties.store(it, null) }
}
}
tasks.processResources {
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import java.util.*
val logger = KotlinLogging.logger {}

val VERSION: String = Properties().also {
it.load((object : Any() {}).javaClass.getResourceAsStream("/version.properties"))
it.load((object : Any() {}).javaClass.getResourceAsStream("/edu.illinois.cs.cs125.jeed.server.version"))
}.getProperty("version")

fun main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Mon Dec 16 15:00:03 CST 2019
version=2019.12.3
2 changes: 0 additions & 2 deletions server/src/main/resources/version.properties

This file was deleted.

0 comments on commit 4ad2a95

Please sign in to comment.