Skip to content

Jooby v4.0.9 ignores server.port #3798

Description

@froque
pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <artifactId>jooby-logback-demo</artifactId>
  <groupId>app</groupId>
  <version>1.0.0</version>

  <name>jooby-logback-demo</name>

  <properties>
    <application.class>app.App</application.class>

    <!--
        v4.0.7 detects conf/application.conf
        v4.0.9 does not detect conf/application.conf
    -->
<!--    <jooby.version>4.0.7</jooby.version>-->
     <jooby.version>4.0.9</jooby.version>

    <maven.compiler.source>21</maven.compiler.source>
    <maven.compiler.target>21</maven.compiler.target>
    <maven.compiler.parameters>true</maven.compiler.parameters>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
    <dependency>
      <groupId>io.jooby</groupId>
      <artifactId>jooby-netty</artifactId>
    </dependency>
    <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-classic</artifactId>
        <version>1.5.20</version>
    </dependency>
  </dependencies>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>io.jooby</groupId>
        <artifactId>jooby-bom</artifactId>
        <version>${jooby.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
</project>

Details

package app;

import io.jooby.Jooby;

public class App extends Jooby {

  {
    get("/", ctx -> "Welcome to Jooby!");
  }

  public static void main(final String[] args) {
    runApp(args, App::new);
  }
}

conf/application.conf

server.port = "8089"

with v4.0.7

21:44:12.800 [main] INFO app.App -- App (dev) started
21:44:12.801 [main] INFO app.App -- routes: 

  GET /

listening on:
  http://localhost:8089/

with 4.0.9

21:43:42.364 [main] INFO app.App -- App (dev) started
21:43:42.364 [main] INFO app.App -- routes: 

  GET /

listening on:
  http://localhost:8080/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions