Skip to content

Commit

Permalink
build: updates libraries and scala versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vagmcs committed Nov 13, 2024
1 parent 6c48d8d commit 33dd590
Show file tree
Hide file tree
Showing 27 changed files with 37 additions and 58 deletions.
21 changes: 0 additions & 21 deletions .cz.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
scala: [ 2.12.17, 2.13.10, 3.2.2 ]
scala: [ 2.12.20, 2.13.15, 3.3.4 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v2
with:
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ project/boot/
lib/
project/project/
/.bsp/
.bloop

### VsCode
.vscode
.metals
metals.sbt

### Mac OSX
Icon
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/optimus/algebra/AlgebraOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.algebra
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/optimus/algebra/Constraint.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.algebra
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.algebra
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/optimus/algebra/ExpressionType.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.algebra
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/optimus/algebra/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/optimus/common/Measure.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.common
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/optimus/optimization/MPModel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/optimus/optimization/MPSolver.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization.enums
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization.enums
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization.enums
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization.model
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/optimus/optimization/model/MPVar.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization.model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization.model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/optimus/optimization/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus
Expand Down
8 changes: 4 additions & 4 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ import sbt._
object Dependencies {

object v {
final val Logback = "1.2.11"
final val Logback = "1.5.12"
final val ScalaLogging = "3.9.5"

final val ScalaTest = "3.2.15"
final val ScalaCheck = "1.17.0"
final val ScalaTest = "3.2.19"
final val ScalaCheck = "1.18.1"
final val ScalaTestPlus = "3.2.11.0"

final val LpSolve = "5.5.2.0"
final val ojAlgorithms = "51.4.0"
final val Trove = "3.1.0"
final val ScalaXML = "2.1.0"
final val ScalaXML = "2.3.0"
}

// Logging using slf4j and logback
Expand Down
12 changes: 3 additions & 9 deletions project/OptimusBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object OptimusBuild extends AutoPlugin {

private lazy val settings: Seq[Setting[_]] = {
logger.info(s"Loading options for Java $javaVersion.")
if (javaVersion < 1.8) sys.error("Java 8 or higher is required for building Optimus.")
if (javaVersion < 11) sys.error("Java 11 or higher is required for running Optimus.")
else commonSettings ++ JavaSettings ++ ScalaSettings
}

Expand All @@ -61,8 +61,8 @@ object OptimusBuild extends AutoPlugin {
description := "Optimus is a mathematical programming library for Scala",
headerLicense := Some(HeaderLicense.Custom(logo)),
headerMappings := headerMappings.value + (HeaderFileType.scala -> HeaderCommentStyle.cStyleBlockComment),
scalaVersion := "3.2.2",
crossScalaVersions := Seq(scalaVersion.value, "2.13.10", "2.12.17"),
scalaVersion := "3.3.4",
crossScalaVersions := Seq(scalaVersion.value, "2.13.15", "2.12.20"),
autoScalaLibrary := true,
managedScalaInstance := true,
coverageEnabled := false,
Expand Down Expand Up @@ -112,11 +112,6 @@ object OptimusBuild extends AutoPlugin {
)

private lazy val JavaSettings: Seq[Setting[_]] = Seq(
// Java compiler options
// source is the source code version required to compile.
// target is the oldest JRE version Optimus supports.
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint:unchecked", "-Xlint:deprecation"),

// Java runtime options
javaOptions ++= Seq(
"-XX:+DoEscapeAnalysis",
Expand All @@ -135,7 +130,6 @@ object OptimusBuild extends AutoPlugin {
"-deprecation", // Emit warning and location for usages of deprecated APIs.
"-unchecked", // Enable additional warnings where generated code depends on assumptions.
"-feature", // Emit warning and location for usages of features that should be imported explicitly.
"-target:jvm-1.8", // Target JVM version 1.8.
"-Ywarn-dead-code" // Warn when dead code is identified.
)
case "3" =>
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.8.2
sbt.version=1.9.8
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* \///// \/// \///// \/// \/// \/// \/// \///////// \//////////
*
* The mathematical programming library for Scala.
*
*
*/

package optimus.optimization
Expand Down

0 comments on commit 33dd590

Please sign in to comment.