Compare commits

...
5 Commits
Author SHA1 Message Date
brian.long f3071e8084 bitbucket.org to git.inteligr8.com 2026-04-22 15:16:19 -04:00
brian.long b64049d6a2 ossrh-release to central-publish 2026-04-22 14:47:06 -04:00
brian.long ad1b7bceae updated dependencies/plugins 2026-04-22 14:46:58 -04:00
brian.long 5b310afaa6 added protected API impl 2024-09-23 16:19:26 -04:00
brian.long 085da3e180 v3.x; upgrade to jakarta 2024-08-15 12:30:47 -04:00
2 changed files with 82 additions and 48 deletions
+41 -48
View File
@@ -5,11 +5,11 @@
<groupId>com.inteligr8.alfresco</groupId>
<artifactId>aps-public-rest-client</artifactId>
<version>2.0-SNAPSHOT</version>
<version>3.0-SNAPSHOT</version>
<name>Alfresco Process Services ReST API Client for Java</name>
<description>An APS Client library for building REST API clients that support either the CXF and Jersey frameworks</description>
<url>https://bitbucket.org/inteligr8/aps-public-rest-client</url>
<url>https://git.inteligr8.com/inteligr8/aps-public-rest-client</url>
<licenses>
<license>
@@ -19,9 +19,9 @@
</licenses>
<scm>
<connection>scm:git:https://bitbucket.org/inteligr8/aps-public-rest-client.git</connection>
<developerConnection>scm:git:git@bitbucket.org:inteligr8/aps-public-rest-client.git</developerConnection>
<url>https://bitbucket.org/inteligr8/aps-public-rest-client</url>
<connection>scm:git:https://git.inteligr8.com/inteligr8/aps-public-rest-client.git</connection>
<developerConnection>scm:git:git@git.inteligr8.com:inteligr8/aps-public-rest-client.git</developerConnection>
<url>https://git.inteligr8.com/inteligr8/aps-public-rest-client</url>
</scm>
<organization>
<name>Inteligr8</name>
@@ -38,30 +38,30 @@
<properties>
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.compiler.debuglevel>lines,vars,source</maven.compiler.debuglevel>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<junit.version>5.7.2</junit.version>
<spring.version>5.3.6</spring.version>
<spring.version>6.2.18</spring.version>
</properties>
<dependencies>
<dependency>
<groupId>com.inteligr8</groupId>
<artifactId>common-rest-client</artifactId>
<version>2.0.8</version>
<version>3.0.4</version>
</dependency>
<dependency>
<groupId>com.inteligr8.alfresco</groupId>
<artifactId>aps-public-rest-api</artifactId>
<version>2.0-SNAPSHOT</version>
<version>3.1-SNAPSHOT</version>
<scope>provided</scope> <!-- explicitly, bring your own version -->
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<version>5.14.3</version>
<scope>test</scope>
</dependency>
<dependency>
@@ -79,41 +79,34 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.19.0</version>
<version>2.20.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.0</version>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.1.0</version>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.5</version>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.5.5</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.6.1</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>ossrh-release</id>
<id>central-publish</id>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
@@ -131,7 +124,6 @@
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.2</version>
<executions>
<execution>
<id>javadoc</id>
@@ -155,19 +147,20 @@
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.10.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
</configuration>
<!-- for some reason this is required... -->
<executions>
<execution>
<id>ossrh-deploy</id>
<id>deploy</id>
<phase>deploy</phase>
<goals><goal>deploy</goal></goals>
<goals><goal>publish</goal></goals>
</execution>
</executions>
</plugin>
@@ -0,0 +1,41 @@
/*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.inteligr8.alfresco.activiti;
import com.inteligr8.rs.Client;
/**
* This class serves as the entrypoint to the JAX-RS API for the APS Public
* ReST API.
*
* @author brian@inteligr8.com
*/
public class ApsProtectedRestApiImpl implements ApsProtectedRestApi {
private Client client;
public ApsProtectedRestApiImpl(Client client) {
this.client = client;
}
public Client getClient() {
return this.client;
}
public final <T> T getApi(Class<T> apiClass) {
return this.client.getApi(apiClass);
}
}