Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prep for push to maven central #5

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
# hclaps
# hclaps

## Release

### Maven Central

Pre-reqs:

1. A Sonatype account with access to the LTS group
2. GPG
3. Maven setup with your Sonatype and GPG credentials: https://central.sonatype.org/publish/publish-maven/

Execute the following to publish to central:

```shell
mvn -Prelease-central clean deploy
```

Note:

1. The above command will **not** modify the version. You should use either `mvn release` or `mvn versions:set` to
set the version prior to publishing.
2. The plugin is currently configured to stage the artifact in Central, but **not** release it. To release it, you
must sign in at https://s01.oss.sonatype.org/ and follow [these instructions](https://central.sonatype.org/publish/release/#performing-a-release-deployment-with-the-maven-release-plugin).
1 change: 0 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
</target>

<target name="jar" depends="compile" description="Build jar">
<copy file="${src}/edu/harvard/hcl/hclaps/util/tcfdata.xml" todir="${bin}/edu/harvard/hcl/hclaps/util" overwrite="true"/>
<mkdir dir="${dist}"/>
<jar jarfile="${jarfile}" basedir="${bin}" manifest="Manifest"/>
</target>
Expand Down
6 changes: 0 additions & 6 deletions lib-local/_readme.txt

This file was deleted.

Binary file removed lib-local/aes-model.jar
Binary file not shown.
Binary file removed lib-local/audiomarker.jar
Binary file not shown.
Binary file not shown.

This file was deleted.

12 changes: 0 additions & 12 deletions lib-local/edu/harvard/hcl/audiomarker/maven-metadata-local.xml

This file was deleted.

Binary file not shown.

This file was deleted.

12 changes: 0 additions & 12 deletions lib-local/org/aes/aes-model/maven-metadata-local.xml

This file was deleted.

171 changes: 123 additions & 48 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
<packaging>jar</packaging>

<name>hclaps</name>
<description>hclaps</description>
<url>https://github.com/harvard-lts/hclaps</url>

<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>

<scm>
<connection>scm:git:https://github.com/harvard-lts/hclaps.git</connection>
Expand Down Expand Up @@ -65,6 +74,32 @@
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand All @@ -89,26 +124,11 @@
<artifactId>Saxon-HE</artifactId>
<version>${saxonhe.version}</version>
</dependency>
<dependency>
<groupId>castor</groupId>
<artifactId>castor</artifactId>
<version>${castor.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>${commons-csv.version}</version>
</dependency>
<dependency>
<groupId>org.aes</groupId>
<artifactId>aes-model</artifactId>
<version>${aes-model.version}</version>
</dependency>
<dependency>
<groupId>edu.harvard.hcl</groupId>
<artifactId>audiomarker</artifactId>
<version>${audiomarker.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down Expand Up @@ -146,39 +166,94 @@
</dependency>
</dependencies>

<repositories>
<repository>
<id>lts-libs-all</id>
<name>Harvard LTS Dependency Repository</name>
<url>${lts-artifactory-url}/lts-libs-all</url>
</repository>
<repository>
<id>local-maven-repo</id>
<name>Local file system for temporarily holding non-repo JAR files</name>
<url>file://${project.basedir}/lib-local/</url>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>lts-libs-all-plugins</id>
<name>Harvard LTS Plugin Repository</name>
<url>${lts-artifactory-url}/lts-libs-all</url>
</pluginRepository>
</pluginRepositories>
<profiles>
<profile>
<id>harvard</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>lts-libs-all</id>
<name>Harvard LTS Dependency Repository</name>
<url>${lts-artifactory-url}/lts-libs-all</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>lts-libs-all-plugins</id>
<name>Harvard LTS Plugin Repository</name>
<url>${lts-artifactory-url}/lts-libs-all</url>
</pluginRepository>
</pluginRepositories>
<distributionManagement>
<!-- repository URL and credentials set up in local .m2/settings.xml -->
<repository>
<id>harvard-lts-internal-release-repository</id>
<name>Harvard LTS internal Release Repository</name>
<url>${lts-artifactory-url}/lts-libs-release-local</url>
</repository>
<snapshotRepository>
<id>harvard-lts-internal-snapshot-repository</id>
<name>Harvard LTS internal Snapshot Repository</name>
<url>${lts-artifactory-url}/lts-libs-snapshot-local</url>
</snapshotRepository>
</distributionManagement>
</profile>
<profile>
<!-- Profile for releasing to Maven Central: -Prelease-central -->
<id>release-central</id>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<distributionManagement>
<!-- repository URL and credentials set up in local .m2/settings.xml -->
<repository>
<id>harvard-lts-internal-release-repository</id>
<name>Harvard LTS internal Release Repository</name>
<url>${lts-artifactory-url}/lts-libs-release-local</url>
</repository>
<snapshotRepository>
<id>harvard-lts-internal-snapshot-repository</id>
<name>Harvard LTS internal Snapshot Repository</name>
<url>${lts-artifactory-url}/lts-libs-snapshot-local</url>
</snapshotRepository>
</distributionManagement>
<developers>
<developer>
<name>David Neiman</name>
<email>[email protected]</email>
<organization>Harvard University Information Technology</organization>
<organizationUrl>https://huit.harvard.edu</organizationUrl>
</developer>
<developer>
<name>Andrew Woods</name>
<email>[email protected]</email>
<organization>Harvard University Information Technology</organization>
<organizationUrl>https://huit.harvard.edu</organizationUrl>
</developer>
</developers>

</project>
2 changes: 0 additions & 2 deletions src/main/java/edu/harvard/hcl/hclaps/bwav/chunks/Chunk.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ public void writeToFile(IFFRandomAccessFile file) throws IOException {

/**
* Returns a clone of the Chunk.
*
* @throws CloneNotSupportedException
*/
public Object clone() {
try {
Expand Down
Loading