Donny
06/13/2023, 9:01 PMxtof
06/13/2023, 9:06 PMmvn install
if it's Gradle, use
gradle publishToMavenLocal
Then use it like you would normally.
I would also recommend to suffix the version with your. So if the lib is 1.2.3, version it 1.2.3-mypatch for instance.
Maybe the build gets more complicated than this.
If that doesn't work, please give us the repo you're trying to build.xtof
06/13/2023, 9:08 PMDonny
06/13/2023, 9:08 PMDonny
06/13/2023, 9:08 PMDonny
06/13/2023, 9:11 PMxtof
06/13/2023, 9:32 PM./gradlew publishToMavenLocal
will give you:
❯ ls ~/.m2/repository/de/fabmax/kool/**
/home/you/.m2/repository/de/fabmax/kool/kool-core:
0.12.0-SNAPSHOT maven-metadata-local.xml
/home/you/.m2/repository/de/fabmax/kool/kool-core-js:
0.12.0-SNAPSHOT maven-metadata-local.xml
/home/you/.m2/repository/de/fabmax/kool/kool-core-jvm:
0.12.0-SNAPSHOT maven-metadata-local.xml
/home/you/.m2/repository/de/fabmax/kool/kool-physics:
0.12.0-SNAPSHOT maven-metadata-local.xml
/home/you/.m2/repository/de/fabmax/kool/kool-physics-js:
0.12.0-SNAPSHOT maven-metadata-local.xml
/home/you/.m2/repository/de/fabmax/kool/kool-physics-jvm:
0.12.0-SNAPSHOT maven-metadata-local.xml
Which you can then use with
repositories {
mavenLocal()
}
dependencies {
implementation("de.fabmax.kool:kool-core-jvm:0.12.0-SNAPSHOT")
}
Have funDonny
06/13/2023, 10:54 PMephemient
06/14/2023, 2:12 AMephemient
06/14/2023, 2:14 AM--include-build ../path/to/kool
to your ./gradlew
invocation or add includeBuild("../path/to/kool")
inside your settings.gradle(.kts)
, and Gradle will automatically build and use the local kool instead of the binary, no need to go through the local publication stepephemient
06/14/2023, 2:15 AM