Skip to content

Commit 5937909

Browse files
committed
Added building the release package [#1]
1 parent d07196c commit 5937909

File tree

6 files changed

+187
-17
lines changed

6 files changed

+187
-17
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
target
2+
coverage
3+
# IntelliJ files
4+
.idea
5+
*.iml
6+
.classpath
7+
.project
8+
.settings
9+
._.DS_Store
10+
.DS_Store
11+
.fseventsd
12+
yarn-error.log
13+
CHANGELOG.md
14+
comixed-plugin-language-python-*.zip

pom.xml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
</issueManagement>
2222

2323
<properties>
24+
<java.version>21</java.version>
25+
<assembly.name>local</assembly.name>
2426
<maven-git-code-format.version>5.1</maven-git-code-format.version>
2527
<sonar.organization>comixed</sonar.organization>
2628
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
@@ -53,6 +55,11 @@
5355
<artifactId>log4j-core</artifactId>
5456
<version>${log4j.version}</version>
5557
</dependency>
58+
<dependency>
59+
<groupId>org.python</groupId>
60+
<artifactId>jython</artifactId>
61+
<version>2.7.4</version>
62+
</dependency>
5663
<dependency>
5764
<groupId>junit</groupId>
5865
<artifactId>junit</artifactId>
@@ -69,6 +76,22 @@
6976

7077
<build>
7178
<plugins>
79+
<plugin>
80+
<groupId>org.apache.maven.plugins</groupId>
81+
<artifactId>maven-compiler-plugin</artifactId>
82+
<version>3.8.1</version>
83+
<configuration>
84+
<source>${java.version}</source>
85+
<target>${java.version}</target>
86+
<annotationProcessorPaths>
87+
<path>
88+
<groupId>org.projectlombok</groupId>
89+
<artifactId>lombok</artifactId>
90+
<version>${lombok.version}</version>
91+
</path>
92+
</annotationProcessorPaths>
93+
</configuration>
94+
</plugin>
7295
<plugin>
7396
<groupId>com.cosium.code</groupId>
7497
<artifactId>git-code-format-maven-plugin</artifactId>
@@ -95,6 +118,85 @@
95118
</dependency>
96119
</dependencies>
97120
</plugin>
121+
<plugin>
122+
<artifactId>maven-clean-plugin</artifactId>
123+
<version>3.1.0</version>
124+
<configuration>
125+
<filesets>
126+
<fileset>
127+
<directory>${project.basedir}</directory>
128+
<includes>CHANGELOG.md</includes>
129+
<includes>comixed-metadata-comicvine-*.zip</includes>
130+
</fileset>
131+
</filesets>
132+
</configuration>
133+
</plugin>
134+
<plugin>
135+
<artifactId>maven-clean-plugin</artifactId>
136+
<version>3.1.0</version>
137+
<configuration>
138+
<filesets>
139+
<fileset>
140+
<directory>${project.basedir}</directory>
141+
<includes>CHANGELOG.md</includes>
142+
<includes>comixed-plugin-language-python-*.zip</includes>
143+
</fileset>
144+
</filesets>
145+
</configuration>
146+
</plugin>
147+
<plugin>
148+
<groupId>com.github.danielflower.mavenplugins</groupId>
149+
<artifactId>gitlog-maven-plugin</artifactId>
150+
<version>1.14.0</version>
151+
<configuration>
152+
<reportTitle>Changelog for the ComiXed Python Language Plugin v0.1-SNAPSHOT</reportTitle>
153+
<verbose>false</verbose>
154+
<outputDirectory>${project.basedir}</outputDirectory>
155+
<generateMarkdownChangeLog>true</generateMarkdownChangeLog>
156+
<markdownChangeLogFilename>CHANGELOG.md</markdownChangeLogFilename>
157+
<generateSimpleHTMLChangeLog>false</generateSimpleHTMLChangeLog>
158+
<generatePlainTextChangeLog>false</generatePlainTextChangeLog>
159+
<generateAsciidocChangeLog>false</generateAsciidocChangeLog>
160+
<generateJSONChangeLog>false</generateJSONChangeLog>
161+
<generateHTMLTableOnlyChangeLog>false</generateHTMLTableOnlyChangeLog>
162+
<issueManagementSystem>GitHub issue tracker</issueManagementSystem>
163+
<issueManagementUrl>https://github.com/comixed/comixed/issues</issueManagementUrl>
164+
<fullGitMessage>false</fullGitMessage>
165+
<dateFormat>yyyy-MM-dd HH:mm:ss Z</dateFormat>
166+
<bugzillaPattern>(?:Bug|UPDATE|FIX|ADD|NEW|#) ?#?(\d+)</bugzillaPattern>
167+
</configuration>
168+
<executions>
169+
<execution>
170+
<goals>
171+
<goal>generate</goal>
172+
</goals>
173+
</execution>
174+
</executions>
175+
</plugin>
176+
<plugin>
177+
<groupId>org.sonarsource.scanner.maven</groupId>
178+
<artifactId>sonar-maven-plugin</artifactId>
179+
<version>4.0.0.4121</version>
180+
</plugin>
181+
<plugin>
182+
<artifactId>maven-assembly-plugin</artifactId>
183+
<version>3.2.0</version>
184+
<configuration>
185+
<outputDirectory>${project.basedir}</outputDirectory>
186+
<descriptors>
187+
<descriptor>src/main/assembly/src.xml</descriptor>
188+
</descriptors>
189+
</configuration>
190+
<executions>
191+
<execution>
192+
<id>make-assembly</id>
193+
<phase>package</phase>
194+
<goals>
195+
<goal>single</goal>
196+
</goals>
197+
</execution>
198+
</executions>
199+
</plugin>
98200
</plugins>
99201
</build>
100202
</project>

src/main/assembly/src.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">
4+
<id>${assembly.name}</id>
5+
<formats>
6+
<format>zip</format>
7+
</formats>
8+
<dependencySets>
9+
<dependencySet>
10+
<unpack>false</unpack>
11+
<includes>
12+
<include>org.comixedproject:comixed-plugin-language-python:jar:</include>
13+
<include>org.python:jython:jar:</include>
14+
</includes>
15+
</dependencySet>
16+
</dependencySets>
17+
<fileSets>
18+
<fileSet>
19+
<directory>${project.basedir}</directory>
20+
<includes>
21+
<include>CHANGELOG.md</include>
22+
<include>CONTRIBUTORS.md</include>
23+
<include>INSTALLATION.md</include>
24+
<include>LICENSE</include>
25+
<include>README.md</include>
26+
<include>CHANGELOG.md</include>
27+
</includes>
28+
</fileSet>
29+
</fileSets>
30+
</assembly>

src/main/java/org/comixedproject/plugins/python/ComixedPythonLanguagePlugin.java

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package org.comixedproject.plugins.python;
2+
3+
import java.util.List;
4+
import java.util.Objects;
5+
import org.comixedproject.model.plugin.LibraryPlugin;
6+
import org.comixedproject.model.plugin.LibraryPluginProperty;
7+
import org.comixedproject.plugins.AbstractPluginRuntime;
8+
import org.comixedproject.plugins.PluginRuntimeProvider;
9+
import org.python.util.PythonInterpreter;
10+
11+
/**
12+
* <code>PythonPluginRuntimeProvider</code> defines a {@link PluginRuntimeProvider} for Python.
13+
*
14+
* @author Darryl L. Pierce
15+
*/
16+
public class PythonPluginRuntimeProvider extends AbstractPluginRuntime {
17+
private static final String PLUGIN_NAME = "ComiXedPythonLanguagePlugin";
18+
private static final String PLUGIN_VERSION = "0.1-SNAPSHOT";
19+
20+
@Override
21+
public String getName(final String filename) {
22+
return PLUGIN_NAME;
23+
}
24+
25+
@Override
26+
public String getVersion(final String filename) {
27+
return PLUGIN_VERSION;
28+
}
29+
30+
@Override
31+
public List<LibraryPluginProperty> getProperties(final String filename) {
32+
return List.of();
33+
}
34+
35+
@Override
36+
public Boolean execute(final LibraryPlugin libraryPlugin) {
37+
final PythonInterpreter interpreter = new PythonInterpreter();
38+
return Objects.nonNull(interpreter);
39+
}
40+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.comixedproject.plugins.python.PythonPluginRuntimeProvider

0 commit comments

Comments
 (0)