diff --git a/.github/workflows/jitpack-build.yml b/.github/workflows/jitpack-build.yml deleted file mode 100644 index bf9c699..0000000 --- a/.github/workflows/jitpack-build.yml +++ /dev/null @@ -1,21 +0,0 @@ -# Triggers a snapshot build on JitPack for the custom domain. -# Already have a webhook setup, but that won't trigger the build -# for the custom domain. - -name: jitpack-build - -on: - push: - branches: [ master ] - -jobs: - jitpack: - - runs-on: ubuntu-latest - - steps: - - - name: Request master-SNAPSHOT from JitPack - run: | - # timeout in 30 seconds to avoid waiting for build - curl -s -m 30 https://jitpack.io/org/cicirello/ZigguratGaussian/master-SNAPSHOT/maven-metadata.xml || true diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index ae8ccea..3d93c9f 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -63,9 +63,3 @@ jobs: gh release upload ${TAG} target/${{ env.artifact_name }}-${{ steps.get_version.outputs.VERSION }}-javadoc.jar env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Request release from JitPack to trigger build - run: | - JITPACK_URL="https://jitpack.io/org/cicirello/ZigguratGaussian/${{ steps.get_version.outputs.VERSION }}/maven-metadata.xml" - # timeout in 30 seconds to avoid waiting for build - curl -s -m 30 ${JITPACK_URL} || true diff --git a/CHANGELOG.md b/CHANGELOG.md index 35072f7..c73ab15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] - 2023-08-07 +## [Unreleased] - 2023-10-01 ### Added @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Deprecated ### Removed +* Removed support for importing from JitPack. ### Fixed diff --git a/README.md b/README.md index 4796b9d..04441aa 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Copyright (C) 2015, 2017-2023 [Vincent A. Cicirello](https://www.cicirello.org/). -| __Packages and Releases__ | [![Maven Central](https://img.shields.io/maven-central/v/org.cicirello/ziggurat.svg?label=Maven%20Central&logo=apachemaven)](https://central.sonatype.com/artifact/org.cicirello/ziggurat/) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/cicirello/ZigguratGaussian?logo=GitHub)](https://github.com/cicirello/ZigguratGaussian/releases) [![JitPack](https://jitpack.io/v/org.cicirello/ZigguratGaussian.svg)](https://jitpack.io/#org.cicirello/ZigguratGaussian) | +| __Packages and Releases__ | [![Maven Central](https://img.shields.io/maven-central/v/org.cicirello/ziggurat.svg?label=Maven%20Central&logo=apachemaven)](https://central.sonatype.com/artifact/org.cicirello/ziggurat/) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/cicirello/ZigguratGaussian?logo=GitHub)](https://github.com/cicirello/ZigguratGaussian/releases) | | :--- | :--- | | __Build Status__ | [![build](https://github.com/cicirello/ZigguratGaussian/workflows/build/badge.svg)](https://github.com/cicirello/ZigguratGaussian/actions/workflows/build.yml) [![CodeQL](https://github.com/cicirello/ZigguratGaussian/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/cicirello/ZigguratGaussian/actions/workflows/codeql-analysis.yml) | | __JaCoCo Test Coverage__ | [![coverage](https://raw.githubusercontent.com/cicirello/ZigguratGaussian/badges/jacoco.svg)](https://github.com/cicirello/ZigguratGaussian/actions/workflows/build.yml) [![branches coverage](https://raw.githubusercontent.com/cicirello/ZigguratGaussian/badges/branches.svg)](https://github.com/cicirello/ZigguratGaussian/actions/workflows/build.yml) | @@ -65,16 +65,14 @@ and PATCH corresponds to backwards compatible bug fixes. ## Java 11+ -The jars of the library, distributed via Maven Central, JitPack, GitHub Packages, and GitHub Releases, are -built with OpenJDK 17 but for a target of Java 11. +The jars of the library, distributed via Maven Central, GitHub Packages, +and GitHub Releases, are built with OpenJDK 17 but for a target of Java 11. ## Importing from Package Repositories -Prebuilt artifacts are regularly published to Maven Central, GitHub Packages, and JitPack. In most -cases, you'll want to use Maven Central. JitPack may be useful if you want to build your project against -the latest unreleased version, essentially against the default branch of the repository, or a specific commit. -Releases are published to JitPack and GitHub Packages mainly as a fall-back in the unlikely scenario that -Maven Central is unavailable. +Prebuilt artifacts are regularly published to Maven Central and GitHub Packages. In +most cases, you'll want to use Maven Central. Releases are published to GitHub +Packages mainly as a fall-back in the unlikely scenario that Maven Central is unavailable. ### Importing from Maven Central @@ -105,47 +103,6 @@ the following to the repositories section of your pom.xml: Note that GitHub Packages requires authenticating to GitHub. -### Importing from JitPack - -You can also import from JitPack. As above, you need to first add JitPack to -the repositories section of your pom.xml, such as: - -```XML - - jitpack.io - https://jitpack.io - -``` - -JitPack works a bit differently than Maven Central. Specifically, JitPack builds -artifacts on-demand from the GitHub repository the first time a version is requested. We have -configured our domain on JitPack for the groupId, but on JitPack you use the GitHub repository -name as the artifactId. In many cases this may be the same as the Maven Central artifactId, but -this is not the case here. The Maven Central artifactId is `ziggurat`, but the repository name -is `ZigguratGaussian`. Therefore, from JitPack, you need the following dependency -(just replace `x.y.z` with the version that you want): - -```XML - - org.cicirello - ZigguratGaussian - x.y.z - -``` - -We have primarily configured JitPack as a source of SNAPSHOT builds. If you want to build -your project against the latest commit, specify the dependency as: - -```XML - - org.cicirello - ZigguratGaussian - master-SNAPSHOT - -``` - -You can also build against a specific commit using the commit hash as the version. - ### Downloading Jar Files If you don't use a dependency manager that supports importing from Maven Central, diff --git a/jitpack.yml b/jitpack.yml deleted file mode 100644 index 151c250..0000000 --- a/jitpack.yml +++ /dev/null @@ -1,9 +0,0 @@ -jdk: - - openjdk17 -before_install: - - sdk install java 17.0.3-tem - - sdk use java 17.0.3-tem - - sdk install maven - - mvn -v -install: - - mvn install -DskipTests