Skip to content

Commit

Permalink
Enable Automatic Modules for JVM (arrow-kt#3071)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
  • Loading branch information
2 people authored and kyay10 committed Aug 18, 2023
1 parent 87a6df1 commit d5a76c1
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arrow-libs/core/arrow-annotations/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,9 @@ kotlin {
}

apply(from = property("ANIMALSNIFFER_MPP"))

tasks.jar {
manifest {
attributes["Automatic-Module-Name"] = "arrow.annotations"
}
}
6 changes: 6 additions & 0 deletions arrow-libs/core/arrow-atomic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,9 @@ kotlin {
}
}
}

tasks.jar {
manifest {
attributes["Automatic-Module-Name"] = "arrow.atomic"
}
}
6 changes: 6 additions & 0 deletions arrow-libs/core/arrow-continuations/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ kotlin {
}
}
}

tasks.jar {
manifest {
attributes["Automatic-Module-Name"] = "arrow.continuations"
}
}
6 changes: 6 additions & 0 deletions arrow-libs/core/arrow-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,9 @@ kotlin {
tasks.named<KotlinCompile>("compileTestKotlinJvm") {
kotlinOptions.freeCompilerArgs += "-Xcontext-receivers"
}

tasks.jar {
manifest {
attributes["Automatic-Module-Name"] = "arrow.core"
}
}
6 changes: 6 additions & 0 deletions arrow-libs/fx/arrow-fx-coroutines/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,9 @@ kotlin {
}
}
}

tasks.jar {
manifest {
attributes["Automatic-Module-Name"] = "arrow.fx.coroutines"
}
}
6 changes: 6 additions & 0 deletions arrow-libs/fx/arrow-fx-stm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,9 @@ kotlin {
}
}
}

tasks.jar {
manifest {
attributes["Automatic-Module-Name"] = "arrow.fx.stm"
}
}
6 changes: 6 additions & 0 deletions arrow-libs/optics/arrow-optics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ kotlin {
//dependencies {
// kspTest(projects.arrowOpticsKspPlugin)
//}

tasks.jar {
manifest {
attributes["Automatic-Module-Name"] = "arrow.optics"
}
}
6 changes: 6 additions & 0 deletions arrow-libs/resilience/arrow-resilience/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,9 @@ kotlin {
}
}
}

tasks.jar {
manifest {
attributes["Automatic-Module-Name"] = "arrow.resilience"
}
}

0 comments on commit d5a76c1

Please sign in to comment.