🚧 Group Resource Endpoints added
This commit is contained in:
parent
63c3de81ad
commit
bf53eb2754
@ -24,5 +24,8 @@ public class Dev
|
||||
{
|
||||
service.upload("/org/postgresql/postgresql/41.4.9/postgresql-41.4.9.jar", Files.readAllBytes(Path.of("/home/andreas/Documents/dev/maven/core/src/main/resources/jar/postgresql-42.7.9.jar"))).close();
|
||||
service.upload("/org/postgresql/postgresql/41.4.9/postgresql-41.4.9.pom", Files.readAllBytes(Path.of("/home/andreas/Documents/dev/maven/core/src/main/resources/jar/postgresql-42.7.9.pom"))).close();
|
||||
|
||||
service.upload("/com/fasterxml/jackson/core/jackson-core/2.21.0/jackson-core-2.21.0.jar", Files.readAllBytes(Path.of("/home/andreas/Documents/dev/maven/core/src/main/resources/jar/jackson-core-2.21.0.jar"))).close();
|
||||
service.upload("/com/fasterxml/jackson/core/jackson-core/2.21.0/jackson-core-2.21.0.pom", Files.readAllBytes(Path.of("/home/andreas/Documents/dev/maven/core/src/main/resources/jar/jackson-core-2.21.0.pom"))).close();
|
||||
}
|
||||
}
|
||||
@ -3,6 +3,8 @@ package dev.dinauer.maven.app;
|
||||
import dev.dinauer.maven.jpa.maven.repo.GroupRepo;
|
||||
import dev.dinauer.maven.jpa.maven.GroupId;
|
||||
import jakarta.inject.Inject;
|
||||
import jakarta.transaction.Transactional;
|
||||
import jakarta.ws.rs.DELETE;
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.PathParam;
|
||||
@ -22,9 +24,17 @@ public class GroupResource
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/{group-id}")
|
||||
public GroupId get(@PathParam("group-id") String groupId)
|
||||
@Path("/{id}")
|
||||
public GroupId get(@PathParam("id") String id)
|
||||
{
|
||||
return groupRepo.findById(groupId);
|
||||
return groupRepo.findById(id);
|
||||
}
|
||||
|
||||
@DELETE
|
||||
@Path("/{id}")
|
||||
@Transactional
|
||||
public void delete(@PathParam("id") String id)
|
||||
{
|
||||
groupRepo.deleteById(id);
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
quarkus.http.access-log.enabled=true
|
||||
|
||||
%test.quarkus.http.test-port=9081
|
||||
|
||||
# Auth
|
||||
quarkus.http.auth.permission.authenticated.paths=/*
|
||||
quarkus.http.auth.permission.authenticated.policy=authenticated
|
||||
|
||||
240
src/main/resources/jar/jackson-core-2.21.0.pom
Normal file
240
src/main/resources/jar/jackson-core-2.21.0.pom
Normal file
@ -0,0 +1,240 @@
|
||||
<?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">
|
||||
<parent>
|
||||
<artifactId>jackson-base</artifactId>
|
||||
<groupId>com.fasterxml.jackson</groupId>
|
||||
<version>2.21.0</version>
|
||||
<relativePath>../pom.xml/pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion> <!-- do_not_remove: published-with-gradle-metadata -->
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-core</artifactId>
|
||||
<name>Jackson-core</name>
|
||||
<version>2.21.0</version>
|
||||
<description>Core Jackson processing abstractions (aka Streaming API), implementation for JSON</description>
|
||||
<url>https://github.com/FasterXML/jackson-core</url>
|
||||
<inceptionYear>2008</inceptionYear>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>The Apache Software License, Version 2.0</name>
|
||||
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<scm>
|
||||
<connection>scm:git:git@github.com:FasterXML/jackson-core.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:FasterXML/jackson-core.git</developerConnection>
|
||||
<tag>jackson-core-2.21.0</tag>
|
||||
<url>https://github.com/FasterXML/jackson-core</url>
|
||||
</scm>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>prepare-agent</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>report</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>report</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce-properties</id>
|
||||
<phase>validate</phase>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>enforce-jacoco-exec</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<rules>
|
||||
<requireFilesExist>
|
||||
<files>
|
||||
<file>${project.build.directory}/jacoco.exec</file>
|
||||
</files>
|
||||
</requireFilesExist>
|
||||
</rules>
|
||||
<fail>${jacocoStrict}</fail>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${version.plugin.surefire}</version>
|
||||
<configuration>
|
||||
<redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
||||
<artifactId>replacer</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.cyclonedx</groupId>
|
||||
<artifactId>cyclonedx-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.moditect</groupId>
|
||||
<artifactId>moditect-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>shade-jackson-core</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<filters>
|
||||
<filter>
|
||||
<artifact>ch.randelshofer:fastdoubleparser</artifact>
|
||||
<excludes>
|
||||
<exclude>META-INF/LICENSE</exclude>
|
||||
<exclude>META-INF/MANIFEST.MF</exclude>
|
||||
<exclude>META-INF/versions/**/module-info.*</exclude>
|
||||
<exclude>META-INF/versions/23/**</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
</filters>
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>ch/randelshofer/fastdoubleparser</pattern>
|
||||
<shadedPattern>com/fasterxml/jackson/core/internal/shaded/fdp/v${project.version.underscore}</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>ch/randelshofer/fastdoubleparser/bte</pattern>
|
||||
<shadedPattern>com/fasterxml/jackson/core/internal/shaded/fdp/v${project.version.underscore}/bte</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>ch/randelshofer/fastdoubleparser/chr</pattern>
|
||||
<shadedPattern>com/fasterxml/jackson/core/internal/shaded/fdp/v${project.version.underscore}/chr</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>META-INF/LICENSE</pattern>
|
||||
<shadedPattern>META-INF/FastDoubleParser-LICENSE</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>META-INF/NOTICE</pattern>
|
||||
<shadedPattern>META-INF/FastDoubleParser-NOTICE</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>META-INF/jackson-core-LICENSE</pattern>
|
||||
<shadedPattern>META-INF/LICENSE</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>META-INF/jackson-core-NOTICE</pattern>
|
||||
<shadedPattern>META-INF/NOTICE</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>META-INF/versions/11/ch/randelshofer/fastdoubleparser</pattern>
|
||||
<shadedPattern>META-INF/versions/11/com/fasterxml/jackson/core/internal/shaded/fdp/v${project.version.underscore}</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>META-INF/versions/17/ch/randelshofer/fastdoubleparser</pattern>
|
||||
<shadedPattern>META-INF/versions/17/com/fasterxml/jackson/core/internal/shaded/fdp/v${project.version.underscore}</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>META-INF/versions/21/ch/randelshofer/fastdoubleparser</pattern>
|
||||
<shadedPattern>META-INF/versions/21/com/fasterxml/jackson/core/internal/shaded/fdp/v${project.version.underscore}</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>META-INF/versions/23/ch/randelshofer/fastdoubleparser</pattern>
|
||||
<shadedPattern>META-INF/versions/23/com/fasterxml/jackson/core/internal/shaded/fdp/v${project.version.underscore}</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
|
||||
<createDependencyReducedPom>true</createDependencyReducedPom>
|
||||
<minimizeJar>true</minimizeJar>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.gradlex</groupId>
|
||||
<artifactId>gradle-module-metadata-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<removedDependencies>
|
||||
<dependency>
|
||||
<groupId>ch.randelshofer</groupId>
|
||||
<artifactId>fastdoubleparser</artifactId>
|
||||
</dependency>
|
||||
</removedDependencies>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifestEntries>
|
||||
<Multi-Release>true</Multi-Release>
|
||||
</manifestEntries>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>animal-sniffer-maven-plugin</artifactId>
|
||||
<version>${version.plugin.animal-sniffer}</version>
|
||||
<configuration>
|
||||
<signature>
|
||||
<groupId>com.toasttab.android</groupId>
|
||||
<artifactId>gummy-bears-api-${version.android.sdk}</artifactId>
|
||||
<version>${version.android.sdk.signature}</version>
|
||||
</signature>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<repositories>
|
||||
<repository>
|
||||
<releases>
|
||||
<enabled>false</enabled>
|
||||
</releases>
|
||||
<snapshots />
|
||||
<id>central-snapshots</id>
|
||||
<name>Sonatype Central Portal (snapshots)</name>
|
||||
<url>https://central.sonatype.com/repository/maven-snapshots</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<properties>
|
||||
<project.build.outputTimestamp>2026-01-18T22:52:59Z</project.build.outputTimestamp>
|
||||
<version.android.sdk.signature>0.5.1</version.android.sdk.signature>
|
||||
<osgi.export>com.fasterxml.jackson.core;version=${project.version},
|
||||
com.fasterxml.jackson.core.*;version=${project.version}</osgi.export>
|
||||
<jacocoStrict>false</jacocoStrict>
|
||||
<packageVersion.dir>com/fasterxml/jackson/core/json</packageVersion.dir>
|
||||
<osgi.import>!ch.randelshofer.fastdoubleparser, *</osgi.import>
|
||||
<version.android.sdk>26</version.android.sdk>
|
||||
<version.plugin.animal-sniffer>1.23</version.plugin.animal-sniffer>
|
||||
<packageVersion.package>${project.groupId}.json</packageVersion.package>
|
||||
</properties>
|
||||
</project>
|
||||
Loading…
x
Reference in New Issue
Block a user