Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
target
coverage
# IntelliJ files
.idea
*.iml
.classpath
.project
.settings
._.DS_Store
.DS_Store
.fseventsd
yarn-error.log
CHANGELOG.md
comixed-plugin-language-python-*.zip
102 changes: 102 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
</issueManagement>

<properties>
<java.version>21</java.version>
<assembly.name>local</assembly.name>
<maven-git-code-format.version>5.1</maven-git-code-format.version>
<sonar.organization>comixed</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
Expand Down Expand Up @@ -53,6 +55,11 @@
<artifactId>log4j-core</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.python</groupId>
<artifactId>jython</artifactId>
<version>2.7.4</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand All @@ -69,6 +76,22 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>com.cosium.code</groupId>
<artifactId>git-code-format-maven-plugin</artifactId>
Expand All @@ -95,6 +118,85 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}</directory>
<includes>CHANGELOG.md</includes>
<includes>comixed-metadata-comicvine-*.zip</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}</directory>
<includes>CHANGELOG.md</includes>
<includes>comixed-plugin-language-python-*.zip</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>com.github.danielflower.mavenplugins</groupId>
<artifactId>gitlog-maven-plugin</artifactId>
<version>1.14.0</version>
<configuration>
<reportTitle>Changelog for the ComiXed Python Language Plugin v0.1-SNAPSHOT</reportTitle>
<verbose>false</verbose>
<outputDirectory>${project.basedir}</outputDirectory>
<generateMarkdownChangeLog>true</generateMarkdownChangeLog>
<markdownChangeLogFilename>CHANGELOG.md</markdownChangeLogFilename>
<generateSimpleHTMLChangeLog>false</generateSimpleHTMLChangeLog>
<generatePlainTextChangeLog>false</generatePlainTextChangeLog>
<generateAsciidocChangeLog>false</generateAsciidocChangeLog>
<generateJSONChangeLog>false</generateJSONChangeLog>
<generateHTMLTableOnlyChangeLog>false</generateHTMLTableOnlyChangeLog>
<issueManagementSystem>GitHub issue tracker</issueManagementSystem>
<issueManagementUrl>https://github.com/comixed/comixed/issues</issueManagementUrl>
<fullGitMessage>false</fullGitMessage>
<dateFormat>yyyy-MM-dd HH:mm:ss Z</dateFormat>
<bugzillaPattern>(?:Bug|UPDATE|FIX|ADD|NEW|#) ?#?(\d+)</bugzillaPattern>
</configuration>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>4.0.0.4121</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<outputDirectory>${project.basedir}</outputDirectory>
<descriptors>
<descriptor>src/main/assembly/src.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
30 changes: 30 additions & 0 deletions src/main/assembly/src.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">
<id>${assembly.name}</id>
<formats>
<format>zip</format>
</formats>
<dependencySets>
<dependencySet>
<unpack>false</unpack>
<includes>
<include>org.comixedproject:comixed-plugin-language-python:jar:</include>
<include>org.python:jython:jar:</include>
</includes>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>${project.basedir}</directory>
<includes>
<include>CHANGELOG.md</include>
<include>CONTRIBUTORS.md</include>
<include>INSTALLATION.md</include>
<include>LICENSE</include>
<include>README.md</include>
<include>CHANGELOG.md</include>
</includes>
</fileSet>
</fileSets>
</assembly>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package org.comixedproject.plugins.python;

import java.util.List;
import java.util.Objects;
import org.comixedproject.model.plugin.LibraryPlugin;
import org.comixedproject.model.plugin.LibraryPluginProperty;
import org.comixedproject.plugins.AbstractPluginRuntime;
import org.comixedproject.plugins.PluginRuntimeProvider;
import org.python.util.PythonInterpreter;

/**
* <code>PythonPluginRuntimeProvider</code> defines a {@link PluginRuntimeProvider} for Python.
*
* @author Darryl L. Pierce
*/
public class PythonPluginRuntimeProvider extends AbstractPluginRuntime {
private static final String PLUGIN_NAME = "ComiXedPythonLanguagePlugin";
private static final String PLUGIN_VERSION = "0.1-SNAPSHOT";

@Override
public String getName(final String filename) {
return PLUGIN_NAME;
}

@Override
public String getVersion(final String filename) {
return PLUGIN_VERSION;
}

@Override
public List<LibraryPluginProperty> getProperties(final String filename) {
return List.of();
}

@Override
public Boolean execute(final LibraryPlugin libraryPlugin) {
final PythonInterpreter interpreter = new PythonInterpreter();
return Objects.nonNull(interpreter);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.comixedproject.plugins.python.PythonPluginRuntimeProvider
Loading