converted to smartgear4

This commit is contained in:
Alfredo Oliviero 2024-02-09 14:23:00 +01:00
parent 68c654328a
commit 3f4b7b6cb6
4 changed files with 53 additions and 25 deletions

2
.gitignore vendored
View File

@ -1,5 +1,7 @@
# Created by https://www.toptal.com/developers/gitignore/api/macos,intellij,eclipse,visualstudiocode,linux
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,intellij,eclipse,visualstudiocode,linux
dependencies
target
### Eclipse ###
.metadata

View File

@ -0,0 +1,7 @@
name: ${artifactId}
group: ${groupId}
version: ${version}
description: ${description}
excludes:
- path: /docs.*
- path: /api-docs.*

67
pom.xml
View File

@ -5,7 +5,7 @@
<parent>
<groupId>org.gcube.tools</groupId>
<artifactId>maven-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</parent>
<groupId>org.gcube.social_networking</groupId>
<artifactId>social-service</artifactId>
@ -16,6 +16,9 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<webappDirectory>
${project.basedir}${file.separator}src${file.separator}main${file.separator}webapp${file.separator}WEB-INF</webappDirectory>
<enunciate.version>2.14.0</enunciate.version>
@ -35,7 +38,7 @@
<dependency>
<groupId>org.gcube.distribution</groupId>
<artifactId>gcube-smartgears-bom</artifactId>
<version>2.5.0</version>
<version>3.0.1-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
@ -56,8 +59,7 @@
</dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>authorization-utils</artifactId>
<version>[2.2.0, 3.0.0-SNAPSHOT)</version>
<artifactId>common-security</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
@ -71,12 +73,36 @@
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.core</groupId>
<artifactId>common-smartgears-app</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.core</groupId>
<artifactId>common-smartgears</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.core</groupId>
<artifactId>common-scope</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.core</groupId>
<artifactId>common-scope-maps</artifactId>
</dependency>
<dependency>
<groupId>org.gcube.common.portal</groupId>
<artifactId>portal-manager</artifactId>
<scope>provided</scope>
</dependency>
<!--must be provided -->
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>authorization-utils</artifactId>
<version>[2.2.0, 3.0.0-SNAPSHOT)</version>
</dependency>
<dependency>
<groupId>org.gcube.social-networking</groupId>
<artifactId>social-service-model</artifactId>
@ -103,12 +129,9 @@
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>org.gcube.core</groupId>
<artifactId>common-smartgears-app</artifactId>
</dependency>
<!-- Added to support Java 11 JDK -->
<!-- Added to support Java 11 JDK
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
@ -119,12 +142,7 @@
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
<!-- END Added to support Java 11 JDK -->
<dependency>
<groupId>org.gcube.core</groupId>
<artifactId>common-smartgears</artifactId>
</dependency>
END Added to support Java 11 JDK -->
<!-- Required for Enunciate plugin -->
@ -161,10 +179,12 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<!-- Sphinx plugin' -->
<!-- Sphinx plugin'
<plugin>
<groupId>kr.motd.maven</groupId>
<artifactId>sphinx-maven-plugin</artifactId>
@ -184,9 +204,9 @@
</goals>
</execution>
</executions>
</plugin>
</plugin> -->
<!-- Enunciate Maven plugin -->
<!-- Enunciate Maven plugin
<plugin>
<groupId>com.webcohesion.enunciate</groupId>
<artifactId>enunciate-maven-plugin</artifactId>
@ -200,8 +220,7 @@
</execution>
</executions>
</plugin>
<!-- Copy Enunciate Documentation from your-application/api-docs
into your war -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
@ -226,7 +245,7 @@
</configuration>
</execution>
</executions>
</plugin>
</plugin> -->
<plugin>
@ -240,4 +259,4 @@
</plugins>
</build>
</project>
</project>

View File

@ -2,8 +2,8 @@ package org.gcube.social_networking;
import javax.ws.rs.ApplicationPath;
import org.gcube.acme.rest.HelloWorld;
import org.gcube.smartgears.annotations.ManagedBy;
import org.gcube.social_networking.rest.HelloWorld;
import org.glassfish.jersey.server.ResourceConfig;
/**