Skip to content

Commit

Permalink
Merge branch 'deploy', big thank you @imagejan and @ctrueden
Browse files Browse the repository at this point in the history
  • Loading branch information
xulman committed Nov 16, 2023
2 parents 4fc10c9 + cec77fe commit 1efc9d3
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 92 deletions.
3 changes: 3 additions & 0 deletions .github/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/main/ci-build.sh
sh ci-build.sh
3 changes: 3 additions & 0 deletions .github/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/main/ci-setup-github-actions.sh
sh ci-setup-github-actions.sh
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build

on:
push:
branches:
- master
tags:
- "*-[0-9]+.*"
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
cache: 'maven'
- name: Set up CI environment
run: .github/setup.sh
- name: Execute the build
run: .github/build.sh
env:
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
SIGNING_ASC: ${{ secrets.SIGNING_ASC }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Status](https://github.com/CellTrackingChallenge/measures/actions/workflows/build.yml/badge.svg)](https://github.com/CellTrackingChallenge/measures/actions/workflows/build.yml)

Welcome
-------
This is a repository with Java source codes of tools related to the [Cell Tracking Challenge](http://www.celltrackingchallenge.net), and to the quantitative evaluation of biomedical segmentation and tracking in general.
Expand Down
151 changes: 59 additions & 92 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -11,16 +12,14 @@
<artifactId>CTC-measures</artifactId>
<version>1.0.2-SNAPSHOT</version>

<organization>
<name>The Cell Tracking Challenge</name>
<url>http://celltrackingchallenge.net</url>
</organization>

<name>Cell Tracking Challenge -- Java Measures</name>
<description>Java implementation of measures for quantitative evaluation of biomedical tracking in general.</description>
<url>https://github.com/CellTrackingChallenge/measures</url>
<inceptionYear>2017</inceptionYear>

<organization>
<name>The Cell Tracking Challenge</name>
<url>http://celltrackingchallenge.net</url>
</organization>
<licenses>
<license>
<name>Simplified BSD</name>
Expand All @@ -45,7 +44,6 @@
</roles>
</developer>
</developers>

<contributors>
<contributor>
<name>None</name>
Expand All @@ -54,38 +52,72 @@

<mailingLists>
<mailingList>
<name>ImageJ Forum</name>
<archive>http://forum.imagej.net/</archive>
<name>Image.sc Forum</name>
<archive>https://forum.image.sc/</archive>
</mailingList>
</mailingLists>

<!-- ====================================== -->

<scm>
<connection>scm:git:https://github.com/CellTrackingChallenge/measures</connection>
<developerConnection>scm:git:[email protected]:CellTrackingChallenge/measures</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/CellTrackingChallenge/measures</url>
</scm>
<issueManagement>
<system>GitHub Issues</system>
<url>http://github.com/CellTrackingChallenge/measures/issues</url>
<url>https://github.com/CellTrackingChallenge/measures/issues</url>
</issueManagement>
<ciManagement>
<system>none</system>
</ciManagement>

<distributionManagement>
<properties>
<package-name>net.celltrackingchallenge.measures</package-name>

<license.licenseName>BSD 2-Clause</license.licenseName>
<license.projectName>CTC-measures</license.projectName>
<license.organizationName>Cell Tracking Challenge</license.organizationName>
<license.copyrightOwners>xulman</license.copyrightOwners>

<!-- NB: Deploy releases to the SciJava Maven repository. -->
<releaseProfiles>sign,deploy-to-scijava</releaseProfiles>
</properties>

<dependencies>
<!-- for reading/saving images -->
<dependency>
<groupId>sc.fiji</groupId>
<artifactId>simplified-io</artifactId>
<version>1.0.1</version>
<exclusions>
<exclusion>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- for meshes -->
<dependency>
<groupId>net.imagej</groupId>
<artifactId>imagej-ops</artifactId>
</dependency>
</dependencies>

<repositories>
<repository>
<id>it4i</id>
<url>https://artifactory.cs.vsb.cz/it4i/</url>
<id>scijava.public</id>
<url>https://maven.scijava.org/content/groups/public</url>
</repository>
</distributionManagement>
</repositories>

<!-- to introduce Vlado's favourite COMMITrev file into the released .jar files -->
<build>
<plugins>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>2.2.4</version>
<version>4.9.10</version>
<executions>
<execution>
<phase>validate</phase>
Expand All @@ -105,90 +137,25 @@
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
<goal>run</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>sh</executable>
<arguments>
<argument>-c</argument>
<argument>rm -v '${project.build.outputDirectory}'/COMMITrev_*; touch '${project.build.outputDirectory}'/COMMITrev_${git.commit.id.abbrev}_${project.artifactId};</argument>
</arguments>
<target>
<!-- make sure no COMMITrev tag files are floating around from some previous runs -->
<!-- NB: this task is redundant whenever 'mvn clean' is executed... -->
<delete><fileset dir="${project.build.outputDirectory}" includes="COMMITrev_*"/></delete>
<touch file="${project.build.outputDirectory}/COMMITrev_${git.commit.id.abbrev}_${project.artifactId}"/>
</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>net.celltrackingchallenge.measures.util.BgMaskCreator</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<packaging>jar</packaging>

<!-- ====================================== -->

<properties>
<package-name>net.celltrackingchallenge.measures</package-name>

<license.licenseName>BSD 2-Clause</license.licenseName>
<license.projectName>CTC-measures</license.projectName>
<license.organizationName>Cell Tracking Challenge</license.organizationName>
<license.copyrightOwners>xulman</license.copyrightOwners>
</properties>

<repositories>
<repository>
<id>scijava.public</id>
<url>https://maven.scijava.org/content/groups/public</url>
</repository>
</repositories>

<dependencies>
<!-- for reading/saving images -->
<dependency>
<groupId>sc.fiji</groupId>
<artifactId>simplified-io</artifactId>
<version>1.0.1</version>

<exclusions>
<exclusion>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- for meshes -->
<dependency>
<groupId>net.imagej</groupId>
<artifactId>imagej-ops</artifactId>
<version>${imagej-ops.version}</version>
</dependency>
</dependencies>
</project>

0 comments on commit 1efc9d3

Please sign in to comment.