Skip to content

Commit

Permalink
Update Hexagon version
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Apr 2, 2024
1 parent b5bbc88 commit 402fb5e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Java
uses: graalvm/setup-graalvm@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .sdkmanrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=21.0.1-graal
java=21.0.2-graal
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import java.lang.System.getProperty
import org.gradle.api.tasks.wrapper.Wrapper.DistributionType.ALL

plugins {
kotlin("jvm") version("1.9.22")
id("org.graalvm.buildtools.native") version("0.9.28")
kotlin("jvm") version("1.9.23")
id("org.graalvm.buildtools.native") version("0.10.1")
}

val hexagonVersion = "3.4.6"
val gradleScripts = "https://raw.githubusercontent.com/hexagonkt/hexagon/$hexagonVersion/gradle"
val hexagonVersion = "3.5.3"
val gradleScripts = "https://raw.githubusercontent.com/hexagontk/hexagon/$hexagonVersion/gradle"

ext.set("options", "-Xmx48m")
ext.set("applicationClass", "org.example.ApplicationKt")
Expand All @@ -31,7 +31,7 @@ dependencies {
}

tasks.wrapper {
gradleVersion = "8.5"
gradleVersion = "8.7"
distributionType = ALL
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package org.example
import com.hexagonkt.core.ALL_INTERFACES
import com.hexagonkt.http.server.*
import com.hexagonkt.http.server.netty.NettyServerAdapter
import com.hexagonkt.core.logging.LoggingManager
import com.hexagonkt.core.media.TEXT_PLAIN
import com.hexagonkt.http.model.ContentType
import com.hexagonkt.http.model.Header
Expand All @@ -14,7 +13,6 @@ internal val serverAdapter = NettyServerAdapter(executorThreads = 4)
internal lateinit var server: HttpServer

internal fun main() {
LoggingManager.defaultLoggerName = "org.example"
server = serve(serverAdapter, settings) {
before("*") {
send(headers = response.headers + Header("server", "Hexagon/2.6"))
Expand Down

0 comments on commit 402fb5e

Please sign in to comment.