From 4ce58ba487e49cfb6a0be68ec2d147d436428028 Mon Sep 17 00:00:00 2001 From: chmaurer Date: Wed, 27 Sep 2023 08:54:09 -0400 Subject: [PATCH 1/5] LMSA-9011 - changes for crosslister --- .github/dependabot.yml | 8 ++++ .github/workflows/release.yml | 30 +++++++++++++ pom.xml | 80 +---------------------------------- 3 files changed, 40 insertions(+), 78 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..73f11c1 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8c8f006 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +# Description +# ----------- +# This workflow builds and releases the maven artifact +# +# Setup +# ----- +# 1. Create the following secrets inside GitHub: +# - LMS_GIT_CONFIG (Base64 encoded .gitconfig file) + +name: Maven Release + +on: + workflow_dispatch: + pull_request: +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Setup git and other necessary files + run: | + echo -n '${{ secrets.LMS_GIT_CONFIG }}' | base64 -d > ~/.gitconfig + - uses: actions/checkout@v3 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Release prepare/perform + run: mvn clean release:prepare release:perform -B diff --git a/pom.xml b/pom.xml index 5782179..23defa5 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ - 5.0.6-SNAPSHOT + 0.99.0-SNAPSHOT The Cross-listing Assistant in Canvas at Indiana University is a utility for combining enrollments from multiple course sections into a single primary course site, which reduces the administrative overhead of managing a separate version of the course for each section. https://github.com/indiana-university/lms-canvas-crosslisting 2015 @@ -45,19 +45,6 @@ - - - Sonatype OSS Repository - Sonatype-OSS - https://oss.sonatype.org/service/local/staging/deploy/maven2 - - - Sonatype OSS Snapshot Repository - Sonatype-OSS - https://oss.sonatype.org/content/repositories/snapshots - - - scm:git:https://github.com/indiana-university/lms-canvas-crosslisting.git scm:git:https://github.com/indiana-university/lms-canvas-crosslisting.git @@ -82,12 +69,8 @@ 0.47 3.11.0 - 3.1.0 - 3.5.0 2.0.0 - 1.6.13 3.0.0 - 3.3.0 @@ -314,17 +297,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - ${plugins.nexus-staging.version} - true - - Sonatype-OSS - https://oss.sonatype.org/ - true - - org.apache.maven.plugins maven-release-plugin @@ -332,8 +304,7 @@ true false - release - deploy + install @@ -355,53 +326,6 @@ - - release - - - - org.apache.maven.plugins - maven-source-plugin - ${plugins.source.version} - - - attach-sources - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${plugins.javadoc.version} - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-gpg-plugin - ${plugins.gpg.version} - - - sign-artifacts - verify - - sign - - - - - - - denodo From 2e5e760f40626e808894ee19d54b220a40d9b1f8 Mon Sep 17 00:00:00 2001 From: chmaurer Date: Wed, 27 Sep 2023 09:02:34 -0400 Subject: [PATCH 2/5] LMSA-9011 - remove temp pr trigger --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c8f006..a9a54d2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,6 @@ name: Maven Release on: workflow_dispatch: - pull_request: jobs: release: runs-on: ubuntu-latest From 3519ca82df2350524df92d54c87b0d20482d64d0 Mon Sep 17 00:00:00 2001 From: LMS Maven Release Date: Wed, 27 Sep 2023 13:03:55 +0000 Subject: [PATCH 3/5] [maven-release-plugin] prepare release lms-lti-crosslist-0.99.0 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 23defa5..5676350 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ - 0.99.0-SNAPSHOT + 0.99.0 The Cross-listing Assistant in Canvas at Indiana University is a utility for combining enrollments from multiple course sections into a single primary course site, which reduces the administrative overhead of managing a separate version of the course for each section. https://github.com/indiana-university/lms-canvas-crosslisting 2015 @@ -49,7 +49,7 @@ scm:git:https://github.com/indiana-university/lms-canvas-crosslisting.git scm:git:https://github.com/indiana-university/lms-canvas-crosslisting.git https://github.com/indiana-university/lms-canvas-crosslisting - HEAD + lms-lti-crosslist-0.99.0 From cfa6a85766d01962468da7eb0b4ea8d5f3099535 Mon Sep 17 00:00:00 2001 From: LMS Maven Release Date: Wed, 27 Sep 2023 13:03:56 +0000 Subject: [PATCH 4/5] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 5676350..121fa5a 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ - 0.99.0 + 0.99.1-SNAPSHOT The Cross-listing Assistant in Canvas at Indiana University is a utility for combining enrollments from multiple course sections into a single primary course site, which reduces the administrative overhead of managing a separate version of the course for each section. https://github.com/indiana-university/lms-canvas-crosslisting 2015 @@ -49,7 +49,7 @@ scm:git:https://github.com/indiana-university/lms-canvas-crosslisting.git scm:git:https://github.com/indiana-university/lms-canvas-crosslisting.git https://github.com/indiana-university/lms-canvas-crosslisting - lms-lti-crosslist-0.99.0 + HEAD From 37020ab0d26e7729586bdf2bd6006f711f86c7a4 Mon Sep 17 00:00:00 2001 From: chmaurer Date: Wed, 27 Sep 2023 09:07:58 -0400 Subject: [PATCH 5/5] LMSA-9011 - reset version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 121fa5a..41a12f5 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ - 0.99.1-SNAPSHOT + 5.0.6-SNAPSHOT The Cross-listing Assistant in Canvas at Indiana University is a utility for combining enrollments from multiple course sections into a single primary course site, which reduces the administrative overhead of managing a separate version of the course for each section. https://github.com/indiana-university/lms-canvas-crosslisting 2015