Skip to content

Commit

Permalink
Updates (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
javahippie authored Feb 1, 2024
1 parent dad0ab2 commit 4e72fe3
Show file tree
Hide file tree
Showing 16 changed files with 39 additions and 85 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ jobs:
java-version: '21'
distribution: 'graalvm'
cache: maven
- name: Maybe install Graal
run: ./install-graalvm.sh
- name: Build with Maven
run: mvn -s settings.xml -q clean package -Pnative -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -B -V
run: mvn clean package -Dnative
- name: Copy artifacts to target
run: |
cp target/backend-proxy-1.0-SNAPSHOT-runner target/dist/application
Expand Down
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

7 changes: 0 additions & 7 deletions install-graalvm.sh

This file was deleted.

16 changes: 3 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<version>1.0-SNAPSHOT</version>
<properties>
<surefire-plugin.version>2.22.1</surefire-plugin.version>
<quarkus.version>1.1.0.Final</quarkus.version>
<maven.compiler.source>1.8</maven.compiler.source>
<quarkus.version>3.7.1</quarkus.version>
<maven.compiler.source>21</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.target>21</maven.compiler.target>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -104,16 +104,6 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.version}</version>
<executions>
<execution>
<goals>
<goal>native-image</goal>
</goals>
<configuration>
<enableHttpUrlHandler>true</enableHttpUrlHandler>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/jugmz/general/http/CacheHeaderFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import io.quarkus.vertx.http.runtime.filters.Filters;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.event.Observes;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.event.Observes;
import java.time.Duration;
import java.time.OffsetDateTime;
import java.time.ZoneOffset;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/jugmz/general/http/SecurityHeaderFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import io.quarkus.vertx.http.runtime.filters.Filters;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.event.Observes;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.event.Observes;

@ApplicationScoped
public class SecurityHeaderFilter {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/jugmz/health/ServiceHealthCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.eclipse.microprofile.health.HealthCheck;
import org.eclipse.microprofile.health.HealthCheckResponse;

import javax.enterprise.context.ApplicationScoped;
import jakarta.enterprise.context.ApplicationScoped;

@ApplicationScoped
public class ServiceHealthCheck implements HealthCheck {
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/de/jugmz/meetup/MeetupController.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
import org.eclipse.microprofile.faulttolerance.Timeout;
import org.eclipse.microprofile.metrics.annotation.Counted;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import java.net.SocketException;
import java.util.List;
import java.util.stream.Collectors;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/jugmz/meetup/MeetupMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import de.jugmz.meetup.api.MeetupEventVenue;
import org.eclipse.microprofile.config.inject.ConfigProperty;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/de/jugmz/meetup/MeetupService.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.eclipse.microprofile.rest.client.RestClientBuilder;

import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import jakarta.annotation.PostConstruct;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import java.net.URI;
import java.util.ArrayList;
import java.util.Arrays;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/de/jugmz/meetup/api/MeetupClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import org.eclipse.microprofile.metrics.annotation.Counted;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import java.util.List;

@Path("/")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/jugmz/meetup/api/MeetupEvent.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.jugmz.meetup.api;

import javax.json.bind.annotation.JsonbProperty;
import jakarta.json.bind.annotation.JsonbProperty;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.eclipse.microprofile.faulttolerance.ExecutionContext;
import org.eclipse.microprofile.faulttolerance.FallbackHandler;

import javax.inject.Inject;
import jakarta.inject.Inject;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.eclipse.microprofile.faulttolerance.ExecutionContext;
import org.eclipse.microprofile.faulttolerance.FallbackHandler;

import javax.inject.Inject;
import jakarta.inject.Inject;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/de/jugmz/partner/PartnerController.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import de.jugmz.general.comparators.NoOpComparator;
import de.jugmz.general.comparators.RandomComparator;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/de/jugmz/sponsor/SponsorController.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import de.jugmz.general.comparators.NoOpComparator;
import de.jugmz.general.comparators.RandomComparator;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
Expand Down

0 comments on commit 4e72fe3

Please sign in to comment.