Skip to content

Commit

Permalink
Merge pull request #2 from 4ever2/project-setup
Browse files Browse the repository at this point in the history
Setup Maven build and CI
  • Loading branch information
4ever2 authored Nov 4, 2023
2 parents f472b75 + 24b0a05 commit ecacac4
Show file tree
Hide file tree
Showing 10 changed files with 169 additions and 17 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
labels:
- "part: dependencies"
- package-ecosystem: maven
directory: "/"
schedule:
interval: "weekly"
day: "monday"
34 changes: 34 additions & 0 deletions .github/workflows/build-java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Build ImageJ Plugin'
on:
push:
branches:
- 'master'
paths:
- 'ijplugin/**/*'
pull_request:
paths:
- 'ijplugin/**/*'
permissions:
contents: 'read'
jobs:
build:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout branch ${{ github.ref_name }}
uses: actions/checkout@v4
- name: Set up JDK 11 for x64
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
cache: maven
- name: Build
run: cd ijplugin && mvn package
- name: Prepare artifact
run: mkdir staging && cp ijplugin/target/*.jar staging
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Package
path: staging/*.jar
retention-days: 7
23 changes: 23 additions & 0 deletions .github/workflows/publish-java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish package to GitHub Packages
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
permissions:
contents: 'read'
jobs:
build:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout branch ${{ github.ref_name }}
uses: actions/checkout@v4
- name: Set up JDK 11 for x64
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
cache: maven
- name: Publish package
run: mvn deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 0 additions & 17 deletions ijplugin/.project

This file was deleted.

Binary file removed ijplugin/ImageDecorrelationAnalysis_plugin.jar
Binary file not shown.
98 changes: 98 additions & 0 deletions ijplugin/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.github.4ever2</groupId>
<artifactId>ImageDecorrelationAnalysis</artifactId>
<packaging>jar</packaging>
<version>1.1.8</version>

<name>Image Decorrelation Analysis</name>
<description>Image Decorrelation Analysis plugin for ImageJ.</description>
<url>https://github.com/4ever2/ImDecorr</url>

<licenses>
<license>
<name>GNU General Public License v3</name>
<url>https://www.gnu.org/licenses/gpl.html</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<id>0000-0002-3101-6641</id>
<name>Adrien Descloux</name>
<email>adrien.descloux@epfl.ch</email>
<organization>École Polytechnique Fédérale de Lausanne</organization>
<roles>
<role>author</role>
</roles>
</developer>
<developer>
<id>0000-0003-4515-4356</id>
<name>Kristin Grußmayer</name>
<organization>École Polytechnique Fédérale de Lausanne</organization>
<roles>
<role>author</role>
</roles>
</developer>
<developer>
<id>0000-0001-8194-2785</id>
<name>Aleksandra Radenovic</name>
<email>aleksandra.radenovic@epfl.ch</email>
<organization>École Polytechnique Fédérale de Lausanne</organization>
<roles>
<role>author</role>
</roles>
</developer>
</developers>
<contributors>
<contributor>
<name>4ever2</name>
<url>https://github.com/4ever2</url>
<organization>Aarhus University</organization>
<roles><role>maintainer</role></roles>
<properties><id>4ever2</id></properties>
</contributor>
</contributors>

<issueManagement>
<system>GitHub</system>
<url>https://github.com/4ever2/ImDecorr/issues/</url>
</issueManagement>
<ciManagement>
<system>GitHub Actions</system>
<url>https://github.com/4ever2/ImDecorr/actions</url>
</ciManagement>
<scm>
<connection>scm:git:https://github.com/4ever2/ImDecorr</connection>
<developerConnection>scm:git:git@github.com:4ever2/ImDecorr</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/4ever2/ImDecorr</url>
</scm>

<dependencies>
<!-- ImageJ dependencies -->
<dependency>
<groupId>net.imagej</groupId>
<artifactId>ij</artifactId>
<version>1.53t</version>
</dependency>
</dependencies>

<properties>
<license.licenseName>gpl_v3</license.licenseName>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/4ever2/ImDecorr</url>
</repository>
</distributionManagement>
</project>
File renamed without changes.
File renamed without changes.

0 comments on commit ecacac4

Please sign in to comment.