Skip to content

Commit

Permalink
build: add in libs folder the gears jars.
Browse files Browse the repository at this point in the history
Publish locally the gears jars and their deps takes too long (especially in CI) and does not work with JDK 21 :(.
  • Loading branch information
tassiluca committed Jan 5, 2024
1 parent 55c4f0a commit ec11c31
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "lib/gears"]
path = lib/gears
path = libs/gears
url = https://github.com/lampepfl/gears.git
16 changes: 14 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import kotlin.io.path.Path

@Suppress("DSL_SCOPE_VIOLATION")
plugins {
scala
Expand All @@ -9,14 +11,24 @@ plugins {
}

repositories {
mavenLocal() // used for gears dependency
mavenCentral()
}

dependencies {
val localLibraries = Path("libs")
implementation(libs.kotlin.stdlib)
implementation(libs.scala.stdlib)
implementation(libs.gears) // from maven local repository
// Gears is a wip strawman library for async programming not already available on Maven Central...
val gears = "gears_3-0.1.0-SNAPSHOT"
implementation(
files(
listOf(
"$gears.jar",
"$gears-javadoc.jar",
"$gears-sources.jar"
).map { localLibraries.resolve(it) }
)
)
testRuntimeOnly(libs.flexmark) // needed to make it works scalatest
testImplementation(libs.scalatest)
testImplementation(libs.bundles.kotlin.testing)
Expand Down
Submodule gears updated from 000000 to 7df96b

0 comments on commit ec11c31

Please sign in to comment.