-
Notifications
You must be signed in to change notification settings - Fork 0
Prepare for release #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MihaiSurdeanu
wants to merge
3
commits into
master
Choose a base branch
from
for-release
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,3 +1,5 @@ | ||
| // Latest version numbers were updated on 2026-04-24. | ||
| // Latest version numbers were updated on 2026-05-05. | ||
| addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1") // up to 2.3.1 | ||
| addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0") // up to 1.4.0 | ||
| // For constructing the fat jar: | ||
| addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.3.1") // up to 2.3.1 |
This file contains hidden or 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,62 @@ | ||
| import org.clulab.sbt.DependencyFilter | ||
| import org.clulab.sbt.DependencyId | ||
|
|
||
| import scala.xml.Node | ||
| import scala.xml.transform.RuleTransformer | ||
|
|
||
| val publication = "nxmlreader" | ||
|
|
||
| ThisBuild / developers := List( | ||
| Developer( | ||
| id = "mihai.surdeanu", | ||
| name = "Mihai Surdeanu", | ||
| email = "mihai@surdeanu.info", | ||
| url = url("https://www.cs.arizona.edu/person/mihai-surdeanu") | ||
| ) | ||
| ) | ||
| ThisBuild / homepage := Some(url(s"https://github.com/clulab/$publication")) | ||
| ThisBuild / licenses := List( | ||
| "Apache License, Version 2.0" -> | ||
| url("http://www.apache.org/licenses/LICENSE-2.0.html") | ||
| ) | ||
| ThisBuild / organization := "org.clulab" | ||
| ThisBuild / organizationHomepage := Some(url("http://clulab.org/")) | ||
| ThisBuild / organizationName := "Computational Language Understanding (CLU) Lab" | ||
| // The sonatype plugin seems to overwrite these two values. | ||
| // ThisBuild / pomIncludeRepository := { _ => false } // no longer applicable in sbt 1.6.2+ | ||
| ThisBuild / pomPostProcess := { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some of this is not relevant. It is used to remove logging from the library dependencies. Additional code would need to be in the project directory. |
||
| val logback = DependencyId("ch.qos.logback", "logback-classic") | ||
| val rule = DependencyFilter { dependencyId => | ||
| dependencyId != logback | ||
| } | ||
|
|
||
| (node: Node) => new RuleTransformer(rule).transform(node).head | ||
| } | ||
| // ThisBuild / publishMavenStyle := true // no longer applicable in sbt 1.6.2+ | ||
| ThisBuild / publishTo := { | ||
| val useArtifactory = false | ||
|
|
||
| if (useArtifactory) { | ||
| val artifactory = "https://artifactory.clulab.org/artifactory/" | ||
| val repository = "sbt-release-local" | ||
| val details = | ||
| if (isSnapshot.value) ";build.timestamp=" + new java.util.Date().getTime | ||
| else "" | ||
| val location = artifactory + repository + details | ||
|
|
||
| Some("Artifactory Realm" at location) | ||
| } | ||
| else { | ||
| if (isSnapshot.value) | ||
| Some("central-snapshots" at "https://central.sonatype.com/repository/maven-snapshots/") | ||
| else | ||
| localStaging.value | ||
| } | ||
| } | ||
| ThisBuild / scmInfo := Some( | ||
| ScmInfo( | ||
| url(s"https://github.com/clulab/$publication"), | ||
| s"scm:git@github.com:clulab/$publication.git" | ||
| ) | ||
| ) | ||
| ThisBuild / versionScheme := Some("semver-spec") | ||
This file contains hidden or 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,19 @@ | ||
| import ReleaseTransformations._ | ||
|
|
||
| releaseProcess := Seq[ReleaseStep]( | ||
| checkSnapshotDependencies, | ||
| inquireVersions, | ||
| runClean, | ||
| runTest, | ||
| setReleaseVersion, | ||
| commitReleaseVersion, | ||
| tagRelease, | ||
| releaseStepCommandAndRemaining("+publishSigned"), | ||
| releaseStepCommandAndRemaining("sonaUpload"), | ||
| setNextVersion, | ||
| commitNextVersion, | ||
| // pushChanges | ||
| ) | ||
|
|
||
| Global / onChangedBuildSource := ReloadOnSourceChanges | ||
| Global / useGpg := false // GPG doesn't need to be installed, particularly for Windows. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK no library needs scala33 and scala31 will not force others to update to 3.3 in case those people exist. They might be us.