dependencies {
    implementation project( ':web:web-api' )
    implementation project( ':core:core-internal' )
    implementation libs.jetty.server
    implementation libs.jetty.servlet
    implementation libs.jetty.servlets
    implementation libs.jetty.jmx
    implementation libs.jetty.websocket.server
    implementation libs.jakarta.annotation
    implementation libs.micrometer.jetty12

    testFixturesApi( project(":web:web-api") )
    testFixturesImplementation libs.junit.jupiter.api
    testFixturesImplementation libs.mockito.core
    testFixturesImplementation libs.jetty.server
    testFixturesImplementation libs.jetty.servlet

    testImplementation( testFixtures( project(":core:core-api") ) )
}

jar {
    bundle {
        bnd( 'Bundle-Name': 'Enonic XP Web - Jetty',
         'Export-Package': 'org.eclipse.jetty.*, jakarta.servlet.*;-split-package:=merge-first, jakarta.websocket.*;-split-package:=merge-first',
         'Import-Package': 'com.enonic.xp.security.auth;resolution:=optional,' +
             'com.enonic.xp.security;resolution:=optional,' +
             'com.enonic.xp.data;resolution:=optional,' +
             'com.enonic.xp.support;resolution:=optional,' +
             '*;resolution:=optional' )
    }
}
