Skip to content

Commit b017499

Browse files
committed
Prepare deployment to Maven Central
1 parent 9298e2e commit b017499

File tree

2 files changed

+112
-4
lines changed

2 files changed

+112
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You can add this library to your application using Maven by adding the following
1111
<dependency>
1212
<groupId>me.desair.tus</groupId>
1313
<artifactId>tus-java-server</artifactId>
14-
<version>1.0.0-0.1-SNAPSHOT</version>
14+
<version>1.0.0-1.0-SNAPSHOT</version>
1515
</dependency>
1616

1717
The main entry point of the library is the `me.desair.tus.server.TusFileUploadService.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)` method. You can call this method inside a `javax.servlet.http.HttpServlet`, a `javax.servlet.Filter` or any REST API controller of a framework that gives you access to `HttpServletRequest` and `HttpServletResponse` objects. In the following list, you can find some example implementations:

pom.xml

Lines changed: 111 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

55
<groupId>me.desair.tus</groupId>
66
<artifactId>tus-java-server</artifactId>
7-
<version>1.0.0-0.1-SNAPSHOT</version>
7+
<version>1.0.0-1.0-SNAPSHOT</version>
88
<packaging>jar</packaging>
99

10-
<name>tus-java-server</name>
10+
<name>${project.groupId}:${project.artifactId}</name>
11+
<description>
12+
Server-side implementation of the open file upload protocol tus (https://tus.io/)
13+
that supports resumable file uploads for small and very large files
14+
</description>
15+
<url>https://github.com/tomdesair/tus-java-server</url>
1116

1217
<properties>
1318
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -319,6 +324,109 @@
319324
</plugins>
320325
</build>
321326
</profile>
327+
328+
<profile>
329+
<id>release</id>
330+
<activation>
331+
<activeByDefault>false</activeByDefault>
332+
</activation>
333+
<build>
334+
<plugins>
335+
<!-- Configure Nexus plugin for new releases via Sonatype.
336+
See: http://central.sonatype.org/pages/apache-maven.html -->
337+
<plugin>
338+
<groupId>org.sonatype.plugins</groupId>
339+
<artifactId>nexus-staging-maven-plugin</artifactId>
340+
<version>1.6.7</version>
341+
<extensions>true</extensions>
342+
<configuration>
343+
<!-- In your settings.xml, your username/password
344+
MUST be specified for server 'ossrh' -->
345+
<serverId>ossrh</serverId>
346+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
347+
<!-- Require manual verification / release to Maven Central -->
348+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
349+
</configuration>
350+
</plugin>
351+
<!-- For new releases, generate Source JAR files -->
352+
<plugin>
353+
<groupId>org.apache.maven.plugins</groupId>
354+
<artifactId>maven-source-plugin</artifactId>
355+
<version>3.0.1</version>
356+
<executions>
357+
<execution>
358+
<id>attach-sources</id>
359+
<goals>
360+
<goal>jar-no-fork</goal>
361+
</goals>
362+
</execution>
363+
</executions>
364+
</plugin>
365+
<!-- For new releases, generate JavaDocs -->
366+
<plugin>
367+
<groupId>org.apache.maven.plugins</groupId>
368+
<artifactId>maven-javadoc-plugin</artifactId>
369+
<version>3.0.1</version>
370+
<executions>
371+
<execution>
372+
<id>attach-javadocs</id>
373+
<goals>
374+
<goal>aggregate-jar</goal>
375+
</goals>
376+
</execution>
377+
</executions>
378+
</plugin>
379+
<!-- Sign any new releases via GPG.
380+
NOTE: you may optionally specify the "gpg.passphrase" in your settings.xml -->
381+
<plugin>
382+
<groupId>org.apache.maven.plugins</groupId>
383+
<artifactId>maven-gpg-plugin</artifactId>
384+
<version>1.6</version>
385+
<executions>
386+
<execution>
387+
<id>sign-artifacts</id>
388+
<phase>verify</phase>
389+
<goals>
390+
<goal>sign</goal>
391+
</goals>
392+
</execution>
393+
</executions>
394+
</plugin>
395+
</plugins>
396+
</build>
397+
</profile>
322398
</profiles>
323399

400+
<distributionManagement>
401+
<snapshotRepository>
402+
<id>ossrh</id>
403+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
404+
</snapshotRepository>
405+
<repository>
406+
<id>ossrh</id>
407+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
408+
</repository>
409+
</distributionManagement>
410+
411+
<licenses>
412+
<license>
413+
<name>MIT License</name>
414+
<url>http://www.opensource.org/licenses/mit-license.php</url>
415+
</license>
416+
</licenses>
417+
418+
<developers>
419+
<developer>
420+
<name>Tom Desair</name>
421+
<email>tus@desair.me</email>
422+
<organizationUrl>https://github.com/tomdesair/tus-java-server</organizationUrl>
423+
</developer>
424+
</developers>
425+
426+
<scm>
427+
<connection>scm:git:https://github.com/tomdesair/tus-java-server.git</connection>
428+
<developerConnection>scm:git:ssh://github.com:tomdesair/tus-java-server.git</developerConnection>
429+
<url>https://github.com/tomdesair/tus-java-server/tree/master</url>
430+
</scm>
431+
324432
</project>

0 commit comments

Comments
 (0)