File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 runs-on : ubuntu-latest
77 steps :
88 - uses : actions/checkout@v4
9- - uses : graalvm /setup-graalvm@v1
9+ - uses : actions /setup-java@v4
1010 with :
11- version : latest
12- distribution : graalvm-community
13- java-version : 21
11+ distribution : graalvm
12+ java-version : ' 21'
1413 cache : gradle
1514 - run : ./gradlew nativeTest
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ import java.lang.System.getProperty
44
55plugins {
66 kotlin(" jvm" ) version(" 2.1.10" )
7- id(" org.graalvm.buildtools.native" ) version(" 0.10.4 " )
7+ id(" org.graalvm.buildtools.native" ) version(" 0.10.5 " )
88}
99
10- val hexagonVersion = " 4.0.0-B2 "
11- val flywayVersion = " 11.3.0 "
10+ val hexagonVersion = " 4.0.0-B3 "
11+ val flywayVersion = " 11.3.1 "
1212val postgresqlVersion = " 42.7.5"
1313val kafkaVersion = " 3.9.0"
1414val gradleScripts = " https://raw.githubusercontent.com/hexagontk/hexagon/$hexagonVersion /gradle"
@@ -28,13 +28,13 @@ group="org.example"
2828description= " Service's description"
2929
3030dependencies {
31- " implementation" (" com.hexagontk.http:http_server_helidon :$hexagonVersion " )
31+ " implementation" (" com.hexagontk.http:http_server_jdk :$hexagonVersion " )
3232 " implementation" (" com.hexagontk.serialization:serialization_jackson_json:$hexagonVersion " )
3333 " implementation" (" org.flywaydb:flyway-core:$flywayVersion " )
3434 " implementation" (" org.postgresql:postgresql:$postgresqlVersion " )
3535 " implementation" (" org.apache.kafka:kafka-clients:$kafkaVersion " )
3636
37- " testImplementation" (" com.hexagontk.http:http_client_jetty :$hexagonVersion " )
37+ " testImplementation" (" com.hexagontk.http:http_client_jdk :$hexagonVersion " )
3838}
3939
4040extensions.configure<GraalVMExtension > {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import com.hexagontk.http.server.HttpServer
88import com.hexagontk.http.server.HttpServerSettings
99import com.hexagontk.http.handlers.HttpHandler
1010import com.hexagontk.http.handlers.path
11- import com.hexagontk.http.server.helidon.HelidonHttpServer
11+ import com.hexagontk.http.server.jdk.JdkHttpServer
1212import com.hexagontk.serialization.jackson.json.Json
1313import com.hexagontk.serialization.serialize
1414import org.example.domain.AppointmentsService
@@ -60,6 +60,6 @@ class RestApi(
6060 }
6161
6262 private val settings = HttpServerSettings (ALL_INTERFACES , bindPort)
63- private val serverAdapter = HelidonHttpServer ()
63+ private val serverAdapter = JdkHttpServer ()
6464 val server: HttpServer = HttpServer (serverAdapter, applicationHandler, settings)
6565}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import com.hexagontk.core.info
44import com.hexagontk.core.media.APPLICATION_JSON
55import com.hexagontk.http.client.HttpClient
66import com.hexagontk.http.client.HttpClientSettings
7- import com.hexagontk.http.client.jetty.JettyHttpClient
7+ import com.hexagontk.http.client.jdk.JdkHttpClient
88import com.hexagontk.http.model.HttpMethod.POST
99import com.hexagontk.http.model.NOT_FOUND_404
1010import com.hexagontk.http.model.OK_200
@@ -28,7 +28,7 @@ internal class ApplicationTest {
2828
2929 private val baseUrl: URI by lazy { URI (" http://localhost:${restApi.server.runtimePort} " ) }
3030 private val settings: HttpClientSettings by lazy { HttpClientSettings (baseUrl) }
31- private val client: HttpClient by lazy { HttpClient (JettyHttpClient (), settings) }
31+ private val client: HttpClient by lazy { HttpClient (JdkHttpClient (), settings) }
3232
3333 @BeforeAll fun beforeAll () {
3434 main()
You can’t perform that action at this time.
0 commit comments