-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #527 from rtyley/updates-2025
Updates: JGit, Java 11, Scala 2.13.16, etc
- Loading branch information
Showing
21 changed files
with
109 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
uses: guardian/gha-scala-library-release-workflow/.github/workflows/reusable-release.yml@v1 | ||
permissions: { contents: write, pull-requests: write } | ||
with: | ||
GITHUB_APP_ID: 930725 | ||
SONATYPE_PROFILE_NAME: 'com.madgag' | ||
SONATYPE_CREDENTIAL_HOST: 's01.oss.sonatype.org' | ||
secrets: | ||
SONATYPE_TOKEN: ${{ secrets.AUTOMATED_MAVEN_RELEASE_SONATYPE_TOKEN }} | ||
PGP_PRIVATE_KEY: ${{ secrets.AUTOMATED_MAVEN_RELEASE_PGP_SECRET }} | ||
GITHUB_APP_PRIVATE_KEY: ${{ secrets.AUTOMATED_MAVEN_RELEASE_GITHUB_APP_PRIVATE_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
java corretto-11.0.25.9.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ can run anywhere Java can. | |
Here's a rough set of instructions for building the BFG, if you don't want to use the | ||
pre-built [downloads](http://rtyley.github.io/bfg-repo-cleaner/#download): | ||
|
||
* Install Java JDK 8 or above | ||
* Install Java JDK 11 or above | ||
* Install [sbt](https://www.scala-sbt.org/1.x/docs/Setup.html) | ||
* `git clone [email protected]:rtyley/bfg-repo-cleaner.git` | ||
* `cd bfg-repo-cleaner` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import Dependencies._ | ||
import Dependencies.* | ||
|
||
libraryDependencies ++= guava ++ Seq( | ||
madgagCompress, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,43 @@ | ||
import Dependencies._ | ||
import common._ | ||
import ReleaseTransformations.* | ||
import Dependencies.* | ||
|
||
ThisBuild / organization := "com.madgag" | ||
|
||
ThisBuild / scalaVersion := "2.13.10" | ||
ThisBuild / scalaVersion := "2.13.16" | ||
|
||
ThisBuild / scalacOptions ++= Seq("-deprecation", "-feature", "-language:postfixOps") | ||
ThisBuild / scalacOptions ++= Seq("-deprecation", "-feature", "-language:postfixOps", "-release:11") | ||
|
||
ThisBuild / licenses := Seq("GPLv3" -> url("http://www.gnu.org/licenses/gpl-3.0.html")) | ||
|
||
ThisBuild / homepage := Some(url("https://github.com/rtyley/bfg-repo-cleaner")) | ||
ThisBuild / licenses := Seq(License.GPL3_or_later) | ||
|
||
ThisBuild / resolvers ++= jgitVersionOverride.map(_ => Resolver.mavenLocal).toSeq | ||
|
||
ThisBuild / libraryDependencies += scalatest % Test | ||
|
||
ThisBuild / Test/testOptions += Tests.Argument( | ||
ThisBuild / Test/ testOptions += Tests.Argument( | ||
TestFrameworks.ScalaTest, | ||
"-u", s"test-results/scala-${scalaVersion.value}" | ||
) | ||
|
||
lazy val root = Project(id = "bfg-parent", base = file(".")) aggregate (bfg, bfgTest, bfgLibrary) | ||
|
||
releaseSignedArtifactsSettings | ||
|
||
lazy val bfgTest = bfgProject("bfg-test") | ||
|
||
lazy val bfgLibrary = bfgProject("bfg-library") dependsOn(bfgTest % Test) | ||
lazy val root = Project(id = "bfg-parent", base = file(".")).aggregate (bfg, `bfg-test`, `bfg-library`).settings( | ||
publish / skip := true, | ||
releaseCrossBuild := true, // true if you cross-build the project for multiple Scala versions | ||
releaseProcess := Seq[ReleaseStep]( | ||
checkSnapshotDependencies, | ||
inquireVersions, | ||
runClean, | ||
runTest, | ||
setReleaseVersion, | ||
commitReleaseVersion, | ||
tagRelease, | ||
setNextVersion, | ||
commitNextVersion | ||
) | ||
) | ||
|
||
lazy val bfg = bfgProject("bfg") enablePlugins(BuildInfoPlugin) dependsOn(bfgLibrary, bfgTest % Test) | ||
lazy val `bfg-test` = project | ||
|
||
lazy val bfgBenchmark = bfgProject("bfg-benchmark") | ||
lazy val `bfg-library` = project.dependsOn(`bfg-test` % Test) | ||
|
||
ThisBuild / publishTo := sonatypePublishToBundle.value | ||
lazy val bfg = project.enablePlugins(BuildInfoPlugin).dependsOn(`bfg-library`, `bfg-test` % Test) | ||
|
||
ThisBuild / pomExtra := ( | ||
<scm> | ||
<url>git@github.com:rtyley/bfg-repo-cleaner.git</url> | ||
<connection>scm:git:git@github.com:rtyley/bfg-repo-cleaner.git</connection> | ||
</scm> | ||
<developers> | ||
<developer> | ||
<id>rtyley</id> | ||
<name>Roberto Tyley</name> | ||
<url>https://github.com/rtyley</url> | ||
</developer> | ||
</developers> | ||
) | ||
lazy val `bfg-benchmark` = project |
Oops, something went wrong.