Skip to content

Commit 3c0316f

Browse files
authored
prepare for maven release (#17)
* prepare for maven release * upgrade corenlp
1 parent 74ee6f1 commit 3c0316f

File tree

32 files changed

+173
-110
lines changed

32 files changed

+173
-110
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Additionaly, to use the spacy-server adapter, ensure you have met the following
2121
To use the spaCy Server adapter, add this to the dependencies section in your `pom.xml`:
2222
```xml
2323
<dependency>
24-
<groupId>com.github.manzurola</groupId>
24+
<groupId>io.github.manzurola</groupId>
2525
<artifactId>spacy4j-adapters-spacy-server</artifactId>
2626
<version>0.3.0</version>
2727
</dependency>
@@ -30,7 +30,7 @@ To use the spaCy Server adapter, add this to the dependencies section in your `p
3030
To use the CoreNLP adapter, add this to the dependencies section in your `pom.xml`:
3131
```xml
3232
<dependency>
33-
<groupId>com.github.manzurola</groupId>
33+
<groupId>io.github.manzurola</groupId>
3434
<artifactId>spacy4j-adapters-corenlp</artifactId>
3535
<version>0.3.0</version>
3636
</dependency>

pom.xml

Lines changed: 89 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,65 @@
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>spacy4j</artifactId>
99
<packaging>pom</packaging>
10-
<version>0.3.0</version>
10+
<version>0.4.0</version>
11+
12+
<name>spacy4J</name>
13+
<description>A small library for processing natural language text using spaCy Server or CoreNLP</description>
14+
<url>https://github.com/manzurola/spaCy4j</url>
1115

1216
<modules>
1317
<module>spacy4j-api</module>
1418
<module>spacy4j-adapters</module>
1519
</modules>
1620

21+
<developers>
22+
<developer>
23+
<name>Guy Manzurola</name>
24+
<email>guy.manzurola@gmail.com</email>
25+
<roles>
26+
<role>developer</role>
27+
</roles>
28+
</developer>
29+
</developers>
30+
31+
<licenses>
32+
<license>
33+
<name>MIT License</name>
34+
<url>https://github.com/manzurola/spaCy4j/blob/main/LICENSE</url>
35+
</license>
36+
</licenses>
37+
38+
<scm>
39+
<connection>scm:git:git://github.com/manzurola/spaCy4j.git</connection>
40+
<developerConnection>scm:git:git@github.com:manzurola/spaCy4j.git</developerConnection>
41+
<url>https://github.com/manzurola/spaCy4j</url>
42+
<tag>HEAD</tag>
43+
</scm>
44+
1745
<properties>
1846
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1947
<maven.compiler.source>11</maven.compiler.source>
2048
<maven.compiler.target>11</maven.compiler.target>
2149
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2250
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
23-
<junit-jupiter.version>5.5.2</junit-jupiter.version>
24-
<logback.version>1.1.7</logback.version>
51+
<junit-jupiter.version>5.8.2</junit-jupiter.version>
52+
<logback.version>1.2.11</logback.version>
2553
</properties>
2654

2755
<distributionManagement>
56+
<snapshotRepository>
57+
<id>ossrh</id>
58+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
59+
</snapshotRepository>
2860
<repository>
29-
<id>github</id>
30-
<name>spacy4j</name>
31-
<url>https://maven.pkg.github.com/manzurola/spacy4j</url>
61+
<id>ossrh</id>
62+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
3263
</repository>
3364
</distributionManagement>
3465

35-
<dependencies>
36-
<dependency>
37-
<groupId>ch.qos.logback</groupId>
38-
<artifactId>logback-classic</artifactId>
39-
<version>${logback.version}</version>
40-
</dependency>
41-
<dependency>
42-
<groupId>org.junit.jupiter</groupId>
43-
<artifactId>junit-jupiter</artifactId>
44-
<version>${junit-jupiter.version}</version>
45-
<scope>test</scope>
46-
</dependency>
47-
</dependencies>
48-
4966
<build>
5067
<plugins>
5168
<plugin>
@@ -57,10 +74,14 @@
5774
<groupId>org.apache.maven.plugins</groupId>
5875
<artifactId>maven-javadoc-plugin</artifactId>
5976
<version>3.3.0</version>
60-
<configuration>
61-
<show>private</show>
62-
<nohelp>true</nohelp>
63-
</configuration>
77+
<executions>
78+
<execution>
79+
<id>attach-javadocs</id>
80+
<goals>
81+
<goal>jar</goal>
82+
</goals>
83+
</execution>
84+
</executions>
6485
</plugin>
6586
<plugin>
6687
<groupId>org.apache.maven.plugins</groupId>
@@ -69,7 +90,6 @@
6990
<executions>
7091
<execution>
7192
<id>attach-sources</id>
72-
<phase>verify</phase>
7393
<goals>
7494
<goal>jar-no-fork</goal>
7595
</goals>
@@ -81,6 +101,35 @@
81101
<artifactId>maven-surefire-plugin</artifactId>
82102
<version>2.22.2</version>
83103
</plugin>
104+
<plugin>
105+
<groupId>org.apache.maven.plugins</groupId>
106+
<artifactId>maven-gpg-plugin</artifactId>
107+
<version>3.0.1</version>
108+
<executions>
109+
<execution>
110+
<id>sign-artifacts</id>
111+
<phase>verify</phase>
112+
<goals>
113+
<goal>sign</goal>
114+
</goals>
115+
</execution>
116+
</executions>
117+
<configuration>
118+
<keyname>${gpg.keyname}</keyname>
119+
<passphraseServerId>${gpg.passphrase}</passphraseServerId>
120+
</configuration>
121+
</plugin>
122+
<plugin>
123+
<groupId>org.sonatype.plugins</groupId>
124+
<artifactId>nexus-staging-maven-plugin</artifactId>
125+
<version>1.6.7</version>
126+
<extensions>true</extensions>
127+
<configuration>
128+
<serverId>ossrh</serverId>
129+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
130+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
131+
</configuration>
132+
</plugin>
84133
<plugin>
85134
<groupId>org.codehaus.mojo</groupId>
86135
<artifactId>versions-maven-plugin</artifactId>
@@ -89,4 +138,18 @@
89138
</plugins>
90139
</build>
91140

141+
<dependencies>
142+
<dependency>
143+
<groupId>ch.qos.logback</groupId>
144+
<artifactId>logback-classic</artifactId>
145+
<version>${logback.version}</version>
146+
</dependency>
147+
<dependency>
148+
<groupId>org.junit.jupiter</groupId>
149+
<artifactId>junit-jupiter</artifactId>
150+
<version>${junit-jupiter.version}</version>
151+
<scope>test</scope>
152+
</dependency>
153+
</dependencies>
154+
92155
</project>

spacy4j-adapters/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
66
<artifactId>spacy4j</artifactId>
7-
<groupId>com.github.manzurola</groupId>
8-
<version>0.3.0</version>
7+
<groupId>io.github.manzurola</groupId>
8+
<version>0.4.0</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

@@ -24,9 +24,9 @@
2424

2525
<dependencies>
2626
<dependency>
27-
<groupId>com.github.manzurola</groupId>
27+
<groupId>io.github.manzurola</groupId>
2828
<artifactId>spacy4j-api</artifactId>
29-
<version>0.3.0</version>
29+
<version>0.4.0</version>
3030
</dependency>
3131
</dependencies>
3232

spacy4j-adapters/spacy4j-adapters-corenlp/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
66
<artifactId>spacy4j-adapters</artifactId>
7-
<groupId>com.github.manzurola</groupId>
8-
<version>0.3.0</version>
7+
<groupId>io.github.manzurola</groupId>
8+
<version>0.4.0</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

@@ -14,7 +14,7 @@
1414
<properties>
1515
<maven.compiler.source>11</maven.compiler.source>
1616
<maven.compiler.target>11</maven.compiler.target>
17-
<stanford-corenlp.version>4.3.0</stanford-corenlp.version>
17+
<stanford-corenlp.version>4.4.0</stanford-corenlp.version>
1818
</properties>
1919

2020
<dependencies>
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package com.github.manzurola.spacy4j.adapters.corenlp;
2-
3-
import com.github.manzurola.spacy4j.api.SpaCyAdapter;
4-
import com.github.manzurola.spacy4j.api.containers.Doc;
5-
import com.github.manzurola.spacy4j.api.containers.TokenData;
6-
import com.github.manzurola.spacy4j.api.exceptions.SpaCyException;
7-
import com.github.manzurola.spacy4j.api.features.Pos;
8-
import com.github.manzurola.spacy4j.api.utils.PtbToUdPosMapper;
1+
package io.github.manzurola.spacy4j.adapters.corenlp;
2+
3+
import io.github.manzurola.spacy4j.api.SpaCyAdapter;
4+
import io.github.manzurola.spacy4j.api.containers.Doc;
5+
import io.github.manzurola.spacy4j.api.containers.TokenData;
6+
import io.github.manzurola.spacy4j.api.exceptions.SpaCyException;
7+
import io.github.manzurola.spacy4j.api.features.Pos;
8+
import io.github.manzurola.spacy4j.api.utils.PtbToUdPosMapper;
99
import edu.stanford.nlp.ling.CoreLabel;
1010
import edu.stanford.nlp.pipeline.CoreDocument;
1111
import edu.stanford.nlp.pipeline.CoreSentence;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package com.github.manzurola.spacy4j.adapters.corenlp;
1+
package io.github.manzurola.spacy4j.adapters.corenlp;
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
4-
import com.github.manzurola.spacy4j.api.SpaCy;
5-
import com.github.manzurola.spacy4j.api.containers.Doc;
6-
import com.github.manzurola.spacy4j.api.serialize.jackson.SpaCyJacksonModule;
4+
import io.github.manzurola.spacy4j.api.SpaCy;
5+
import io.github.manzurola.spacy4j.api.containers.Doc;
6+
import io.github.manzurola.spacy4j.api.serialize.jackson.SpaCyJacksonModule;
77
import org.junit.jupiter.api.Assertions;
88
import org.junit.jupiter.api.BeforeAll;
99
import org.junit.jupiter.api.Test;

spacy4j-adapters/spacy4j-adapters-spacy-server/pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
66
<artifactId>spacy4j-adapters</artifactId>
7-
<groupId>com.github.manzurola</groupId>
8-
<version>0.3.0</version>
7+
<groupId>io.github.manzurola</groupId>
8+
<version>0.4.0</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

@@ -15,8 +15,8 @@
1515
<maven.compiler.source>11</maven.compiler.source>
1616
<maven.compiler.target>11</maven.compiler.target>
1717
<swagger-core-version>2.0.0</swagger-core-version>
18-
<okhttp-version>4.9.1</okhttp-version>
19-
<gson-version>2.8.6</gson-version>
18+
<okhttp-version>4.10.0</okhttp-version>
19+
<gson-version>2.9.0</gson-version>
2020
<gson-fire-version>1.8.3</gson-fire-version>
2121
<threetenbp-version>1.3.5</threetenbp-version>
2222
</properties>
@@ -38,7 +38,7 @@
3838
<dependency>
3939
<groupId>org.testcontainers</groupId>
4040
<artifactId>testcontainers</artifactId>
41-
<version>1.15.3</version>
41+
<version>1.17.2</version>
4242
<scope>test</scope>
4343
</dependency>
4444
<dependency>
@@ -50,7 +50,7 @@
5050
<dependency>
5151
<groupId>com.fasterxml.jackson.core</groupId>
5252
<artifactId>jackson-databind</artifactId>
53-
<version>2.12.2</version>
53+
<version>2.13.3</version>
5454
</dependency>
5555
<dependency>
5656
<groupId>com.google.code.gson</groupId>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
package com.github.manzurola.spacy4j.adapters.spacyserver;
1+
package io.github.manzurola.spacy4j.adapters.spacyserver;
22

33
import com.google.gson.JsonArray;
44
import com.google.gson.JsonElement;
55
import com.google.gson.JsonObject;
66
import com.google.gson.JsonParser;
7-
import com.github.manzurola.spacy4j.api.SpaCyAdapter;
8-
import com.github.manzurola.spacy4j.api.containers.Doc;
9-
import com.github.manzurola.spacy4j.api.containers.TokenData;
10-
import com.github.manzurola.spacy4j.api.exceptions.SpaCyException;
7+
import io.github.manzurola.spacy4j.api.SpaCyAdapter;
8+
import io.github.manzurola.spacy4j.api.containers.Doc;
9+
import io.github.manzurola.spacy4j.api.containers.TokenData;
10+
import io.github.manzurola.spacy4j.api.exceptions.SpaCyException;
1111

1212
import java.net.URI;
1313
import java.net.http.HttpClient;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package com.github.manzurola.spacy4j.adapters.spacyserver;
1+
package io.github.manzurola.spacy4j.adapters.spacyserver;
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
4-
import com.github.manzurola.spacy4j.api.SpaCy;
5-
import com.github.manzurola.spacy4j.api.containers.Doc;
6-
import com.github.manzurola.spacy4j.api.serialize.jackson.SpaCyJacksonModule;
4+
import io.github.manzurola.spacy4j.api.SpaCy;
5+
import io.github.manzurola.spacy4j.api.containers.Doc;
6+
import io.github.manzurola.spacy4j.api.serialize.jackson.SpaCyJacksonModule;
77
import org.junit.jupiter.api.Assertions;
88
import org.junit.jupiter.api.BeforeEach;
99
import org.junit.jupiter.api.Test;

spacy4j-api/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
66
<artifactId>spacy4j</artifactId>
7-
<groupId>com.github.manzurola</groupId>
8-
<version>0.3.0</version>
7+
<groupId>io.github.manzurola</groupId>
8+
<version>0.4.0</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

@@ -14,7 +14,7 @@
1414
<properties>
1515
<maven.compiler.source>11</maven.compiler.source>
1616
<maven.compiler.target>11</maven.compiler.target>
17-
<jackson.version>2.12.2</jackson.version>
17+
<jackson.version>2.13.3</jackson.version>
1818
</properties>
1919

2020
<dependencies>

0 commit comments

Comments
 (0)