This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Commit 3220ac82 authored by Michael Breu's avatar Michael Breu 💬
Browse files

Deploy Version 0.0.1 of the plugin (in maven repository structure)

parent 72391e44
This diff is collapsed.
module sharingPluginPlattform {
/**
* module for sharing platform api
* @author Michael Breu
*
*/
module sharingPluginPlatform {
exports org.codeability.sharing.plugins.api;
}
\ No newline at end of file
......@@ -31,7 +31,7 @@ public class SharingPluginConfig {
* <li>the apiBaseURL for a REST based callback as query parameter</li>
* <li>the returnURL a URL that should be redirected to, to get back to the original application, as query parameter</li>
* </ol>
* e.g. http://localhost:8081/sharingImport/<b>10e1a1b5-74da-43a9-80eb-67a2b9cd0f93</b>?<b>returnURL=http://localhost:8080</b>&<b>apiBaseURL=http://localhost:8080/api</b>
* e.g. http://localhost:8081/sharingImport/<b>10e1a1b5-74da-43a9-80eb-67a2b9cd0f93</b>?<b>returnURL=http://localhost:8080</b>&amp;<b>apiBaseURL=http://localhost:8080/api</b>
*/
public String actionTransferURL;
/**
......@@ -86,13 +86,20 @@ public class SharingPluginConfig {
*/
public Action[] actions;
/**
* convenience constructor.
* @param pluginName
* @param actions
*/
public SharingPluginConfig(String pluginName, Action[] actions) {
super();
this.pluginName = pluginName;
this.actions = actions;
}
/**
* JSON constructor.
*/
public SharingPluginConfig() {
// JSON
}
......
......@@ -30,22 +30,39 @@ public class ShoppingBasket {
}
/**
* infos about the user that invoked this action
* @author Michael Breu
*
*/
public static class UserInfo {
/**
* the email of the user that checked out this shopping basket.
*/
public String email;
/**
* convenience constructor.
* @param email
*/
public UserInfo(String email) {
super();
this.email = email;
}
/**
* JSON constructor.
*/
public UserInfo() {
// JSON
}
}
/**
* info about exercise in shopping basket.
* @author Michael Breu
*
*/
public static class ExerciseInfo {
/**
......@@ -65,6 +82,13 @@ public class ShoppingBasket {
*/
public int gitLabProjectId;
/**
* convenience constructor.
* @param title
* @param gitLabProjectId
* @param gitLabURI
* @param keywords
*/
public ExerciseInfo(String title, int gitLabProjectId, String gitLabURI, List<String> keywords) {
super();
this.title = title;
......@@ -73,6 +97,9 @@ public class ShoppingBasket {
this.keywords = keywords;
}
/**
* JSON constructor
*/
public ExerciseInfo() {
// JSON
}
......
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.codeability.sharing</groupId>
<artifactId>SharingPluginPlatformAPI</artifactId>
<version>0.0.1</version>
<name>SharingPluginPlatformAPI</name>
<description>CodeAbility Sharing Plugin Platform API</description>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Plugin versions -->
<maven-clean-plugin.version>3.1.0</maven-clean-plugin.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
<maven-eclipse-plugin.version>2.10</maven-eclipse-plugin.version>
<maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
<maven-failsafe-plugin.version>3.0.0-M4</maven-failsafe-plugin.version>
<maven-idea-plugin.version>2.2.1</maven-idea-plugin.version>
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
<maven-surefire-plugin.version>3.0.0-M4</maven-surefire-plugin.version>
<maven-war-plugin.version>3.2.3</maven-war-plugin.version>
<maven-checkstyle.version>3.1.1</maven-checkstyle.version>
<checkstyle.version>8.32</checkstyle.version>
<spring-nohttp-checkstyle.version>0.0.4.RELEASE</spring-nohttp-checkstyle.version>
<frontend-maven-plugin.version>1.10.0</frontend-maven-plugin.version>
<git-commit-id-plugin.version>4.0.0</git-commit-id-plugin.version>
<jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
<jib-maven-plugin.version>2.4.0</jib-maven-plugin.version>
<lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
<properties-maven-plugin.version>1.0.0</properties-maven-plugin.version>
<sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
</properties>
<distributionManagement>
<repository>
<id>target</id>
<name>Local target repository, to be promoted to git</name>
<url>file://${project.basedir}/target</url>
<layout>default</layout>
</repository>
</distributionManagement>
<build>
<defaultGoal>package</defaultGoal>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>deploy</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>${maven-eclipse-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven-failsafe-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-idea-plugin</artifactId>
<version>${maven-idea-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<!-- unused <executions> <execution> <id>deploy-to-local-directory</id>
<phase>install</phase> <goals> <goal>copy-resources</goal> </goals> <configuration>
<outputDirectory>./target</outputDirectory> <resources> <resource> <directory>${project.build.directory}</directory>
<includes> <include>${project.build.finalName}.jar</include> </includes>
<filtering>false</filtering> </resource> </resources> </configuration> </execution>
</executions> -->
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>deploy</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${sonar-maven-plugin.version}</version>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.codeability.sharing</groupId>
<artifactId>SharingPluginPlatformAPI</artifactId>
<versioning>
<release>0.0.1</release>
<versions>
<version>0.0.1</version>
</versions>
<lastUpdated>20210309134627</lastUpdated>
</versioning>
</metadata>
1f23a87958497460eba754e9f3c0787d
\ No newline at end of file
d67c8cac629c70b45a9d633bb1c49705d0844f6e
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment