Skip to content

Commit 10b0520

Browse files
authored
prepare for maven release (#15)
* prepare for maven release * Update README.md * Create LICENSE.md * Delete LICENSE.md * Delete LICENSE * Create LICENSE * Update README.md * update pom
1 parent c2d668f commit 10b0520

File tree

72 files changed

+430
-1027
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+430
-1027
lines changed

LICENSE

Lines changed: 21 additions & 674 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,16 @@ From the official ERRANT docs:
1212
Before you begin, ensure you have met the following requirements:
1313

1414
* You have Java 11 installed.
15-
* You have access to Github Packages Maven registry as described [here](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#authenticating-to-github-packages).
1615
* You have installed spaCy4j as described [here](https://github.com/manzurola/spaCy4j#installing-spacy4j)
1716

1817
## Installing Errant4J
1918

2019
Add this to the dependencies section of your `pom.xml`:
2120
```xml
2221
<dependency>
23-
<groupId>com.github.manzurola</groupId>
22+
<groupId>io.github.manzurola</groupId>
2423
<artifactId>errant4j</artifactId>
25-
<version>0.4.0</version>
24+
<version>0.5.0</version>
2625
</dependency>
2726
```
2827

@@ -127,4 +126,4 @@ If you want to contact me you can reach me at [guy.manzurola@gmail.com](guy.manz
127126

128127
## License
129128
130-
This project uses the following license: [GPL-3.0](https://github.com/manzurola/errant4j/blob/main/LICENSE).
129+
This project uses the following license: [MIT](https://github.com/manzurola/errant4j/blob/main/LICENSE).

pom.xml

Lines changed: 80 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,62 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>com.github.manzurola</groupId>
7+
<groupId>io.github.manzurola</groupId>
88
<artifactId>errant4j</artifactId>
9-
<version>0.4.0</version>
9+
<version>0.5.0</version>
10+
11+
<name>errant4j</name>
12+
<description>An unofficial Java port of ERRANT, the parallel text grammatical error annotator</description>
13+
<url>https://github.com/manzurola/errant4j</url>
14+
15+
<developers>
16+
<developer>
17+
<name>Guy Manzurola</name>
18+
<email>guy.manzurola@gmail.com</email>
19+
<roles>
20+
<role>developer</role>
21+
</roles>
22+
</developer>
23+
</developers>
24+
25+
<licenses>
26+
<license>
27+
<name>MIT License</name>
28+
<url>https://github.com/manzurola/errant4j/blob/main/LICENSE</url>
29+
</license>
30+
</licenses>
31+
32+
<scm>
33+
<connection>scm:git:git://github.com/manzurola/errant4j.git</connection>
34+
<developerConnection>scm:git:git@github.com:manzurola/errant4j.git</developerConnection>
35+
<url>https://github.com/manzurola/errant4j</url>
36+
<tag>HEAD</tag>
37+
</scm>
1038

1139
<properties>
1240
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1341
<maven.compiler.source>11</maven.compiler.source>
1442
<maven.compiler.target>11</maven.compiler.target>
15-
<junit-jupiter.version>5.5.2</junit-jupiter.version>
16-
<logback.version>1.1.7</logback.version>
43+
<junit-jupiter.version>5.8.2</junit-jupiter.version>
44+
<logback.version>1.2.11</logback.version>
1745
<aligner.version>0.3.0</aligner.version>
18-
<spacy4j.version>0.3.0</spacy4j.version>
46+
<spacy4j.version>0.4.0</spacy4j.version>
1947
</properties>
2048

2149
<distributionManagement>
50+
<snapshotRepository>
51+
<id>ossrh</id>
52+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
53+
</snapshotRepository>
2254
<repository>
23-
<id>github</id>
24-
<name>errant4j</name>
25-
<url>https://maven.pkg.github.com/manzurola/errant4j</url>
55+
<id>ossrh</id>
56+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
2657
</repository>
2758
</distributionManagement>
2859

2960
<dependencies>
3061
<dependency>
31-
<groupId>com.github.manzurola</groupId>
62+
<groupId>io.github.manzurola</groupId>
3263
<artifactId>spacy4j-api</artifactId>
3364
<version>${spacy4j.version}</version>
3465
</dependency>
@@ -40,7 +71,7 @@
4071
<dependency>
4172
<groupId>net.sf.extjwnl</groupId>
4273
<artifactId>extjwnl</artifactId>
43-
<version>2.0.2</version>
74+
<version>2.0.5</version>
4475
</dependency>
4576
<dependency>
4677
<groupId>net.sf.extjwnl</groupId>
@@ -59,13 +90,13 @@
5990
<scope>test</scope>
6091
</dependency>
6192
<dependency>
62-
<groupId>com.github.manzurola</groupId>
93+
<groupId>io.github.manzurola</groupId>
6394
<artifactId>spacy4j-adapters-corenlp</artifactId>
6495
<version>${spacy4j.version}</version>
6596
<scope>test</scope>
6697
</dependency>
6798
<dependency>
68-
<groupId>com.github.manzurola</groupId>
99+
<groupId>io.github.manzurola</groupId>
69100
<artifactId>spacy4j-adapters-spacy-server</artifactId>
70101
<version>${spacy4j.version}</version>
71102
<scope>test</scope>
@@ -83,10 +114,14 @@
83114
<groupId>org.apache.maven.plugins</groupId>
84115
<artifactId>maven-javadoc-plugin</artifactId>
85116
<version>3.3.0</version>
86-
<configuration>
87-
<show>private</show>
88-
<nohelp>true</nohelp>
89-
</configuration>
117+
<executions>
118+
<execution>
119+
<id>attach-javadocs</id>
120+
<goals>
121+
<goal>jar</goal>
122+
</goals>
123+
</execution>
124+
</executions>
90125
</plugin>
91126
<plugin>
92127
<groupId>org.apache.maven.plugins</groupId>
@@ -95,7 +130,6 @@
95130
<executions>
96131
<execution>
97132
<id>attach-sources</id>
98-
<phase>verify</phase>
99133
<goals>
100134
<goal>jar-no-fork</goal>
101135
</goals>
@@ -107,6 +141,35 @@
107141
<artifactId>maven-surefire-plugin</artifactId>
108142
<version>2.22.2</version>
109143
</plugin>
144+
<plugin>
145+
<groupId>org.apache.maven.plugins</groupId>
146+
<artifactId>maven-gpg-plugin</artifactId>
147+
<version>3.0.1</version>
148+
<executions>
149+
<execution>
150+
<id>sign-artifacts</id>
151+
<phase>verify</phase>
152+
<goals>
153+
<goal>sign</goal>
154+
</goals>
155+
</execution>
156+
</executions>
157+
<configuration>
158+
<keyname>${gpg.keyname}</keyname>
159+
<passphraseServerId>${gpg.passphrase}</passphraseServerId>
160+
</configuration>
161+
</plugin>
162+
<plugin>
163+
<groupId>org.sonatype.plugins</groupId>
164+
<artifactId>nexus-staging-maven-plugin</artifactId>
165+
<version>1.6.7</version>
166+
<extensions>true</extensions>
167+
<configuration>
168+
<serverId>ossrh</serverId>
169+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
170+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
171+
</configuration>
172+
</plugin>
110173
<plugin>
111174
<groupId>org.codehaus.mojo</groupId>
112175
<artifactId>versions-maven-plugin</artifactId>

src/main/java/com/github/manzurola/errant4j/core/classify/ClassificationRule.java

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/main/java/com/github/manzurola/errant4j/core/mark/ErrorMarker.java

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/main/java/com/github/manzurola/errant4j/lang/en/classify/rules/UnknownErrorCleanupRule.java

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/main/java/com/github/manzurola/errant4j/lang/en/merge/rules/EditMergeCondition.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/main/java/com/github/manzurola/errant4j/core/Annotation.java renamed to src/main/java/io/github/manzurola/errant4j/core/Annotation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package com.github.manzurola.errant4j.core;
1+
package io.github.manzurola.errant4j.core;
22

33
import com.github.manzurola.aligner.edit.Edit;
4-
import com.github.manzurola.errant4j.core.errors.GrammaticalError;
5-
import com.github.manzurola.spacy4j.api.containers.Token;
4+
import io.github.manzurola.errant4j.core.errors.GrammaticalError;
5+
import io.github.manzurola.spacy4j.api.containers.Token;
66

77
import java.util.List;
88
import java.util.Objects;

src/main/java/com/github/manzurola/errant4j/core/Annotator.java renamed to src/main/java/io/github/manzurola/errant4j/core/Annotator.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
package com.github.manzurola.errant4j.core;
1+
package io.github.manzurola.errant4j.core;
22

33
import com.github.manzurola.aligner.Aligner;
44
import com.github.manzurola.aligner.Alignment;
55
import com.github.manzurola.aligner.edit.Edit;
6-
import com.github.manzurola.errant4j.core.align.TokenAligner;
7-
import com.github.manzurola.errant4j.core.classify.Classifier;
8-
import com.github.manzurola.errant4j.core.errors.GrammaticalError;
9-
import com.github.manzurola.errant4j.core.merge.Merger;
10-
import com.github.manzurola.spacy4j.api.SpaCy;
11-
import com.github.manzurola.spacy4j.api.containers.Doc;
12-
import com.github.manzurola.spacy4j.api.containers.Token;
6+
import io.github.manzurola.errant4j.core.align.TokenAligner;
7+
import io.github.manzurola.errant4j.core.classify.Classifier;
8+
import io.github.manzurola.errant4j.core.errors.GrammaticalError;
9+
import io.github.manzurola.errant4j.core.merge.Merger;
10+
import io.github.manzurola.spacy4j.api.SpaCy;
11+
import io.github.manzurola.spacy4j.api.containers.Doc;
12+
import io.github.manzurola.spacy4j.api.containers.Token;
1313

1414
import java.util.List;
1515
import java.util.stream.Collectors;

src/main/java/com/github/manzurola/errant4j/core/AnnotatorImpl.java renamed to src/main/java/io/github/manzurola/errant4j/core/AnnotatorImpl.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
package com.github.manzurola.errant4j.core;
1+
package io.github.manzurola.errant4j.core;
22

33
import com.github.manzurola.aligner.Aligner;
44
import com.github.manzurola.aligner.Alignment;
55
import com.github.manzurola.aligner.edit.Edit;
6-
import com.github.manzurola.errant4j.core.classify.Classifier;
7-
import com.github.manzurola.errant4j.core.errors.GrammaticalError;
8-
import com.github.manzurola.errant4j.core.merge.Merger;
9-
import com.github.manzurola.spacy4j.api.SpaCy;
10-
import com.github.manzurola.spacy4j.api.containers.Doc;
11-
import com.github.manzurola.spacy4j.api.containers.Token;
6+
import io.github.manzurola.errant4j.core.classify.Classifier;
7+
import io.github.manzurola.errant4j.core.errors.GrammaticalError;
8+
import io.github.manzurola.errant4j.core.merge.Merger;
9+
import io.github.manzurola.spacy4j.api.SpaCy;
10+
import io.github.manzurola.spacy4j.api.containers.Doc;
11+
import io.github.manzurola.spacy4j.api.containers.Token;
1212

1313
import java.util.List;
1414
import java.util.Objects;

0 commit comments

Comments
 (0)