Skip to content

Commit

Permalink
Update Hexagon
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Aug 15, 2023
1 parent 624510e commit e0fa31c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 13 deletions.
Binary file modified .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
19 changes: 18 additions & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.7/apache-maven-3.8.7-bin.zip
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar
26 changes: 15 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.hexagonkt</groupId>
<artifactId>kotlin_pom</artifactId>
<version>2.8.0</version>
<version>3.0.0</version>
</parent>

<groupId>org.example</groupId>
Expand All @@ -14,9 +14,23 @@
<description>Service's description</description>

<properties>
<hexagonVersion>3.0.0</hexagonVersion>

<exec.mainClass>org.example.MavenStarterKt</exec.mainClass>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.hexagonkt</groupId>
<artifactId>hexagon_bom</artifactId>
<version>${hexagonVersion}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>com.hexagonkt</groupId>
Expand All @@ -27,16 +41,6 @@
<artifactId>logging_slf4j_jul</artifactId>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.hexagonkt</groupId>
<artifactId>http_client_jetty</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/MavenStarter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import com.hexagonkt.logging.slf4j.jul.Slf4jJulLoggingAdapter

internal val server: HttpServer by lazy {
HttpServer(JettyServletAdapter()) {
on("*") {
before("*") {
send(headers = response.headers + Header("server", "Servlet/3.1"))
}

Expand Down

0 comments on commit e0fa31c

Please sign in to comment.