Skip to content

Commit

Permalink
Bom 320, Jakarta EL for EE10 (#1161)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolarsen committed Apr 12, 2024
1 parent 332e960 commit 23ded0f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 38 deletions.
4 changes: 2 additions & 2 deletions domene/pom.xml
Expand Up @@ -96,8 +96,8 @@
<artifactId>hibernate-validator</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.el</artifactId>
<groupId>org.glassfish.expressly</groupId>
<artifactId>expressly</artifactId>
</dependency>
<dependency>
<groupId>no.nav.foreldrepenger.felles.integrasjon</groupId>
Expand Down
12 changes: 6 additions & 6 deletions pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>no.nav.foreldrepenger.felles</groupId>
<artifactId>fp-bom</artifactId>
<version>3.1.3</version>
<version>3.2.0</version>
</parent>

<groupId>no.nav.foreldrepenger.abonnent</groupId>
Expand All @@ -25,24 +25,24 @@
<sonar.projectName>fp-abonnent</sonar.projectName>
<sonar.projectKey>navikt_fpabonnent</sonar.projectKey>

<felles.version>7.1.0</felles.version>
<felles.version>7.1.2</felles.version>

<prosesstask.version>5.0.7</prosesstask.version>
<prosesstask.version>5.0.8</prosesstask.version>

<fp-kontrakter.version>9.1.8</fp-kontrakter.version>
<fp-kontrakter.version>9.1.12</fp-kontrakter.version>

<!-- Eksterne -->
<avro.version>1.11.3</avro.version>

<confluent.version>7.6.0</confluent.version>
<confluent.version>7.6.1</confluent.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>no.nav.foreldrepenger.felles</groupId>
<artifactId>fp-bom</artifactId>
<version>3.1.3</version>
<version>3.2.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand Down
26 changes: 4 additions & 22 deletions web/pom.xml
Expand Up @@ -65,6 +65,10 @@
<groupId>org.glassfish.jersey.inject</groupId>
<artifactId>jersey-hk2</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.expressly</groupId>
<artifactId>expressly</artifactId>
</dependency>

<!-- Database -->
<dependency>
Expand All @@ -88,28 +92,6 @@
<artifactId>hibernate-micrometer</artifactId>
</dependency>

<!-- Metrics, helse- og selftest -->
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_dropwizard</artifactId>
</dependency>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_servlet</artifactId>
</dependency>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_hotspot</artifactId>
</dependency>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient</artifactId>
</dependency>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_common</artifactId>
</dependency>

<!-- Swagger -->
<dependency>
<groupId>io.swagger.core.v3</groupId>
Expand Down
Expand Up @@ -7,15 +7,13 @@
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.inject.Any;
import jakarta.enterprise.inject.Instance;
import jakarta.inject.Inject;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.prometheus.client.hotspot.DefaultExports;
import no.nav.vedtak.log.metrics.Controllable;

@ApplicationScoped
Expand All @@ -42,9 +40,6 @@ public ApplicationServiceStarter(@Any Instance<Controllable> services) {
}

public void startServices() {
// Prometheus
DefaultExports.initialize();

// Services
LOGGER.info("Starter {} services", services.size());
CompletableFuture.allOf(services.stream().map(service -> runAsync(service::start)).toArray(CompletableFuture[]::new)).join();
Expand Down

0 comments on commit 23ded0f

Please sign in to comment.