From 142ed4aea64d8c4fb4952c4dffae544553e915d1 Mon Sep 17 00:00:00 2001 From: FabioPinheiro Date: Fri, 18 Oct 2024 17:02:41 +0100 Subject: [PATCH 1/5] build: add job Update Dependency Graph Signed-off-by: FabioPinheiro --- .github/sbt-dependency-submission.yml | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/sbt-dependency-submission.yml diff --git a/.github/sbt-dependency-submission.yml b/.github/sbt-dependency-submission.yml new file mode 100644 index 0000000000..1f42ee0e43 --- /dev/null +++ b/.github/sbt-dependency-submission.yml @@ -0,0 +1,37 @@ +# See https://github.com/marketplace/actions/sbt-dependency-submission +name: Update Dependency Graph +on: + # push: + # branches: + # - master # default branch of the project + schedule: + - cron: "0 20 * * *" + workflow_dispatch: +jobs: + dependency-graph: + name: Update Dependency Graph + runs-on: ubuntu-latest # or windows-latest, or macOS-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Java and Scala + uses: olafurpg/setup-scala@v14 + with: + java-version: adopt@1.11 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: "18" # or whatever + # - name: Setup Scala.JS + # uses: japgolly/setup-scalajs@v1 + - name: Cache sbt + uses: coursier/cache-action@v6.3 + # - name: npm install + # run: npm install + - uses: scalacenter/sbt-dependency-submission@v2 + with: + working-directory: ./ + # modules-ignore: + # identus-mediator_3 + # mediator_3 + # webapp_sjs1_3 + configs-ignore: test scala-tool scala-doc-tool \ No newline at end of file From 2a0f25d988b266045f5de75b793628b436c13b44 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 23 Oct 2024 22:37:03 +0700 Subject: [PATCH 2/5] style: apply linters automatic fixes (#1401) Signed-off-by: Hyperledger Bot Co-authored-by: Hyperledger Bot --- .github/sbt-dependency-submission.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/sbt-dependency-submission.yml b/.github/sbt-dependency-submission.yml index 1f42ee0e43..5fda4a1bc7 100644 --- a/.github/sbt-dependency-submission.yml +++ b/.github/sbt-dependency-submission.yml @@ -30,8 +30,8 @@ jobs: - uses: scalacenter/sbt-dependency-submission@v2 with: working-directory: ./ - # modules-ignore: - # identus-mediator_3 - # mediator_3 - # webapp_sjs1_3 - configs-ignore: test scala-tool scala-doc-tool \ No newline at end of file + # modules-ignore: + # identus-mediator_3 + # mediator_3 + # webapp_sjs1_3 + configs-ignore: test scala-tool scala-doc-tool From fd37bd47ffef8b371fc1fe7a70b6a0c4e5c0a36e Mon Sep 17 00:00:00 2001 From: FabioPinheiro Date: Thu, 24 Oct 2024 13:05:29 +0100 Subject: [PATCH 3/5] build: config sbt-dependency-submission Signed-off-by: FabioPinheiro --- .github/sbt-dependency-submission.yml | 41 ++++++++++++++++++++++++--- project/plugins.sbt | 12 ++++++++ 2 files changed, 49 insertions(+), 4 deletions(-) diff --git a/.github/sbt-dependency-submission.yml b/.github/sbt-dependency-submission.yml index 5fda4a1bc7..f4acc768ad 100644 --- a/.github/sbt-dependency-submission.yml +++ b/.github/sbt-dependency-submission.yml @@ -30,8 +30,41 @@ jobs: - uses: scalacenter/sbt-dependency-submission@v2 with: working-directory: ./ - # modules-ignore: - # identus-mediator_3 - # mediator_3 - # webapp_sjs1_3 + modules-ignore: + #predef_3 + #mercury-agent-didcommx_3 + #identus-cloud-agent_3 + #mercury-protocol-coordinate-mediation_3 + #pollux-sql-doobie_3 + #mercury-protocol-outofband-login_3 + #connect-sql-doobie_3 + root_3 + #shared + #pollux-core_3 + #pollux-sd-jwt_3 + #shared-json + #pollux-vc-jwt_3 + shared-test + #mercury-agent-core_3 + #mercury-protocol-connection_3 + #mercury-protocol-present-proof_3 + #castor-core_3 + #connect-core_3 + #mercury-protocol-trust-ping_3 + #shared-crypto + #mercury-protocol-report-problem_3 + #pollux-prex_3 + #mercury-data-models_3 + #mercury-resolver_3 + #mercury-protocol-issue-credential_3 + #pollux-anoncreds_3 + #mercury-protocol-routing-2-0_3 + #mercury-verifiable-credentials_3 + polluxanoncredstest_3 + #mercury-protocol-did-exchange_3 + #mercury-protocol-revocation-notification_3 + #mercury-protocol-invitation_3 + #event-notification_3 + #prism-node-client_3 + #cloud-agent-wallet-api_3 configs-ignore: test scala-tool scala-doc-tool diff --git a/project/plugins.sbt b/project/plugins.sbt index 92cb4d7e27..f81f6ad876 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -21,3 +21,15 @@ if (sys.env.get("GITHUB_TOKEN").isDefined) { Defaults.sbtPluginExtra(dependency, sbtV, scalaV) } } else libraryDependencies ++= Seq[ModuleID]() + +// See file in .github/workflows/sbt-dependency-submission.yml +if (sys.env.get("DEPEDABOT").isDefined) { + println(s"Adding plugin sbt-github-dependency-submission since env DEPEDABOT is defined.") + // The reason for this is that the plugin needs the variable to be defined. We don't want to have that requirement. + libraryDependencies += { + val dependency = "ch.epfl.scala" % "sbt-github-dependency-submission" % "3.1.0" + val sbtV = (pluginCrossBuild / sbtBinaryVersion).value + val scalaV = (update / scalaBinaryVersion).value + Defaults.sbtPluginExtra(dependency, sbtV, scalaV) + } +} else libraryDependencies ++= Seq[ModuleID]() From f881fc4f0b3bba6b012b322766cf078b909fe41d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 24 Oct 2024 14:05:46 +0100 Subject: [PATCH 4/5] style: apply linters automatic fixes (#1405) Signed-off-by: Hyperledger Bot Signed-off-by: Fabio Pinheiro Co-authored-by: Hyperledger Bot Co-authored-by: Fabio Pinheiro From 89f80b0b71cca1569c00b69c604aa2ac54fe45c1 Mon Sep 17 00:00:00 2001 From: FabioPinheiro Date: Thu, 24 Oct 2024 14:19:36 +0100 Subject: [PATCH 5/5] fix Signed-off-by: FabioPinheiro --- .github/sbt-dependency-submission.yml | 66 +++++++++++++-------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/sbt-dependency-submission.yml b/.github/sbt-dependency-submission.yml index f4acc768ad..7a0035e185 100644 --- a/.github/sbt-dependency-submission.yml +++ b/.github/sbt-dependency-submission.yml @@ -31,40 +31,40 @@ jobs: with: working-directory: ./ modules-ignore: - #predef_3 - #mercury-agent-didcommx_3 - #identus-cloud-agent_3 - #mercury-protocol-coordinate-mediation_3 - #pollux-sql-doobie_3 - #mercury-protocol-outofband-login_3 - #connect-sql-doobie_3 root_3 - #shared - #pollux-core_3 - #pollux-sd-jwt_3 - #shared-json - #pollux-vc-jwt_3 shared-test - #mercury-agent-core_3 - #mercury-protocol-connection_3 - #mercury-protocol-present-proof_3 - #castor-core_3 - #connect-core_3 - #mercury-protocol-trust-ping_3 - #shared-crypto - #mercury-protocol-report-problem_3 - #pollux-prex_3 - #mercury-data-models_3 - #mercury-resolver_3 - #mercury-protocol-issue-credential_3 - #pollux-anoncreds_3 - #mercury-protocol-routing-2-0_3 - #mercury-verifiable-credentials_3 polluxanoncredstest_3 - #mercury-protocol-did-exchange_3 - #mercury-protocol-revocation-notification_3 - #mercury-protocol-invitation_3 - #event-notification_3 - #prism-node-client_3 - #cloud-agent-wallet-api_3 + # predef_3 + # mercury-agent-didcommx_3 + # identus-cloud-agent_3 + # mercury-protocol-coordinate-mediation_3 + # pollux-sql-doobie_3 + # mercury-protocol-outofband-login_3 + # connect-sql-doobie_3 + # shared + # pollux-core_3 + # pollux-sd-jwt_3 + # shared-json + # pollux-vc-jwt_3 + # mercury-agent-core_3 + # mercury-protocol-connection_3 + # mercury-protocol-present-proof_3 + # castor-core_3 + # connect-core_3 + # mercury-protocol-trust-ping_3 + # shared-crypto + # mercury-protocol-report-problem_3 + # pollux-prex_3 + # mercury-data-models_3 + # mercury-resolver_3 + # mercury-protocol-issue-credential_3 + # pollux-anoncreds_3 + # mercury-protocol-routing-2-0_3 + # mercury-verifiable-credentials_3 + # mercury-protocol-did-exchange_3 + # mercury-protocol-revocation-notification_3 + # mercury-protocol-invitation_3 + # event-notification_3 + # prism-node-client_3 + # cloud-agent-wallet-api_3 configs-ignore: test scala-tool scala-doc-tool