Skip to content

Commit

Permalink
fix: samples use of jpms repo
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon committed Mar 10, 2024
1 parent a5c8783 commit 9d16154
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 0 additions & 4 deletions samples/modular-guava/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ plugins {
signing
}

repositories {
mavenCentral()
}

dependencies {
implementation(libs.guava)
}
Expand Down
2 changes: 1 addition & 1 deletion samples/modular-guava/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format

[versions]
guava = "32.1.3-jre"
guava = "33.0.0-jre-jpms"

[libraries]
guava = { module = "com.google.guava:guava", version.ref = "guava" }
11 changes: 11 additions & 0 deletions samples/modular-guava/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,14 @@ plugins {

rootProject.name = "modular-guava"
include("app")

dependencyResolutionManagement {
repositories {
maven {
name = "jpms-attic"
// url = uri("https://jpms.pkg.st/repository")
url = uri("file:///workspace/jpms/repository")
}
mavenCentral()
}
}

0 comments on commit 9d16154

Please sign in to comment.