Skip to content

Commit

Permalink
-Server Completion (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
KhubaibKhan4 committed May 9, 2024
1 parent ef87c70 commit f9b5a96
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 22 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
JDBC_DRIVER=org.postgresql.Driver
JDBC_DATABASE_URL=jdbc:postgresql:store?user=postgres&password=3533
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: java -jar build/libs/com.example.store-server-all.jar
18 changes: 17 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ plugins {
kotlin("jvm") version "1.9.23"
id("io.ktor.plugin") version "2.3.9"
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.23"
id("com.github.johnrengelman.shadow")
}
tasks.shadowJar {
manifest {
attributes["Main-Class"] = "com.realtor.ApplicationKt"
}
}

group = "com.example"
version = "0.0.1"

Expand All @@ -40,6 +45,14 @@ tasks.processResources {
)
}
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.compileJava {
options.compilerArgs.addAll(listOf("-source", "11", "-target", "11"))
}
repositories {
mavenCentral()
}
Expand All @@ -65,3 +78,6 @@ dependencies {
implementation("org.jetbrains.exposed:exposed-java-time:$exposed_version")
implementation("org.postgresql:postgresql:$postgres_version")
}
tasks.create("stage") {
dependsOn("installDist")
}
10 changes: 10 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
rootProject.name = "com.example.store-server"
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath("com.github.johnrengelman:shadow:8.1.1")
}
}
21 changes: 0 additions & 21 deletions src/test/kotlin/com/example/ApplicationTest.kt

This file was deleted.

0 comments on commit f9b5a96

Please sign in to comment.