Skip to content

Commit

Permalink
updated daikon-core dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Coser committed Apr 9, 2020
1 parent 82cc0d7 commit 4fd13e5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 213 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies {

compile "org.eclipse.jetty:jetty-server:9.4.27.v20200227"
compile "org.eclipse.jetty:jetty-servlet:9.4.27.v20200227"
compile "com.github.DaikonWeb:daikon-core:1.1.0"
compile "com.github.DaikonWeb:daikon-core:1.2.0"

testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.5.2"
Expand Down
49 changes: 0 additions & 49 deletions src/main/kotlin/daikon/BasicAuthentication.kt

This file was deleted.

141 changes: 0 additions & 141 deletions src/main/kotlin/daikon/DaikonServer.kt

This file was deleted.

4 changes: 3 additions & 1 deletion src/main/kotlin/daikon/HttpServer.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package daikon

import daikon.core.DaikonServer
import daikon.core.RoutingHandler
import org.eclipse.jetty.server.Server
import org.eclipse.jetty.servlet.DefaultServlet
Expand All @@ -11,7 +12,7 @@ import java.time.LocalDateTime.now
import java.time.temporal.ChronoUnit.MILLIS


class HttpServer(private val port: Int = 4545, initializeActions: DaikonServer.() -> Unit = {}): DaikonServer(port, initializeActions) {
class HttpServer(private val port: Int = 4545, initializeActions: DaikonServer.() -> Unit = {}): DaikonServer(initializeActions) {
init {
disableJettyLog()
}
Expand All @@ -22,6 +23,7 @@ class HttpServer(private val port: Int = 4545, initializeActions: DaikonServer.(
override fun start(routingHandler: RoutingHandler): HttpServer {
val beginStarting = now()
server = Server(port)
context.addAttribute("port", port)
handler.addServlet(ServletHolder(RoutingServlet(routingHandler)), "/*")
server.handler = handler
server.start()
Expand Down
21 changes: 0 additions & 21 deletions src/main/kotlin/daikon/ServerContext.kt

This file was deleted.

1 change: 1 addition & 0 deletions src/test/kotlin/daikon/PerformanceTest.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package daikon

import daikon.core.DaikonServer
import daikon.core.HttpStatus.OK_200
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.GlobalScope
Expand Down

0 comments on commit 4fd13e5

Please sign in to comment.