mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 22:17:03 +05:30
refactor: start consuming whetstone through Sonatype snapshots repository
It was much easier to set up automatic publishing than to constantly debug weird build errors from included builds
This commit is contained in:
parent
2a65dc4a9e
commit
5a4643dc57
2 changed files with 10 additions and 29 deletions
|
@ -15,7 +15,7 @@ retrofit = "2.9.0"
|
||||||
richtext = "0.15.0"
|
richtext = "0.15.0"
|
||||||
serialization = "1.4.1"
|
serialization = "1.4.1"
|
||||||
sqldelight = "2.0.0-alpha04"
|
sqldelight = "2.0.0-alpha04"
|
||||||
whetstone = "0.3.0"
|
whetstone = "0.5.0-SNAPSHOT"
|
||||||
workmanager = "2.8.0-beta02"
|
workmanager = "2.8.0-beta02"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
@ -87,4 +87,4 @@ whetstone = { module = "com.deliveryhero.whetstone:whetstone", version.ref = "wh
|
||||||
android-test = { id = "com.android.test", version.ref = "agp" }
|
android-test = { id = "com.android.test", version.ref = "agp" }
|
||||||
anvil = "com.squareup.anvil:2.4.2"
|
anvil = "com.squareup.anvil:2.4.2"
|
||||||
sqldelight = { id = "app.cash.sqldelight", version.ref = "sqldelight" }
|
sqldelight = { id = "app.cash.sqldelight", version.ref = "sqldelight" }
|
||||||
whetstone = { id = "com.deliveryhero.whetstone", version.ref = "whetstone" }
|
whetstone = { id = "dev.msfjarvis.whetstone", version.ref = "whetstone" }
|
||||||
|
|
|
@ -6,8 +6,6 @@
|
||||||
*/
|
*/
|
||||||
@file:Suppress("UnstableApiUsage")
|
@file:Suppress("UnstableApiUsage")
|
||||||
|
|
||||||
import me.champeau.gradle.igp.gitRepositories
|
|
||||||
|
|
||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
exclusiveContent {
|
exclusiveContent {
|
||||||
|
@ -43,38 +41,17 @@ pluginManagement {
|
||||||
includeModule("gradle.plugin.org.gradle.android", "android-cache-fix-gradle-plugin")
|
includeModule("gradle.plugin.org.gradle.android", "android-cache-fix-gradle-plugin")
|
||||||
includeModule("com.sergei-lapin.napt", "com.sergei-lapin.napt.gradle.plugin")
|
includeModule("com.sergei-lapin.napt", "com.sergei-lapin.napt.gradle.plugin")
|
||||||
includeModule("com.sergei-lapin.napt", "gradle")
|
includeModule("com.sergei-lapin.napt", "gradle")
|
||||||
includeModule("me.champeau.includegit", "me.champeau.includegit.gradle.plugin")
|
|
||||||
includeModule("me.champeau.gradle.includegit", "plugin")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
exclusiveContent {
|
||||||
|
forRepository { maven("https://oss.sonatype.org/content/repositories/snapshots/") }
|
||||||
|
filter { includeGroup("dev.msfjarvis.whetstone") }
|
||||||
|
}
|
||||||
includeBuild("build-logic")
|
includeBuild("build-logic")
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins { id("me.champeau.includegit") version "0.1.5" }
|
|
||||||
|
|
||||||
gitRepositories {
|
|
||||||
checkoutsDirectory.set(rootProject.projectDir.resolve("build/checkouts"))
|
|
||||||
include("whetstone") {
|
|
||||||
uri.set("https://github.com/msfjarvis/whetstone")
|
|
||||||
tag.set("msfjarvis-2022-11-29")
|
|
||||||
includeBuild {
|
|
||||||
dependencySubstitution {
|
|
||||||
for (module in
|
|
||||||
listOf(
|
|
||||||
"whetstone",
|
|
||||||
"whetstone-compiler",
|
|
||||||
"whetstone-compose",
|
|
||||||
"whetstone-worker",
|
|
||||||
)) {
|
|
||||||
substitute(module("com.deliveryhero.whetstone:$module")).using(project(":$module"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -155,6 +132,10 @@ dependencyResolutionManagement {
|
||||||
includeModule("gradle.plugin.org.gradle.android", "android-cache-fix-gradle-plugin")
|
includeModule("gradle.plugin.org.gradle.android", "android-cache-fix-gradle-plugin")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
exclusiveContent {
|
||||||
|
forRepository { maven("https://oss.sonatype.org/content/repositories/snapshots/") }
|
||||||
|
filter { includeGroup("dev.msfjarvis.whetstone") }
|
||||||
|
}
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue