Skip to content

Commit cd9e387

Browse files
authored
Use the snapshot version of the gratatouille plugin (#187)
* Use the snapshot version of gratatouille * fix getting the KSP processor
1 parent 8a8bf48 commit cd9e387

3 files changed

Lines changed: 17 additions & 10 deletions

File tree

gradle/libs.versions.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[versions]
22
kgp = "2.1.20"
33
ksp = "2.1.20-2.0.0"
4-
gratatouille = "0.1.1"
4+
gratatouille-runtime = "0.1.1"
5+
gratatouille-plugin = "0.1.2-SNAPSHOT-907e08d6a0b673cfd6c2ff7cadb548362e636cb7"
56

67
[libraries]
78
json = "org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.1"
@@ -13,12 +14,14 @@ kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test" }
1314
xmlutil = "io.github.pdvrieze.xmlutil:serialization:0.91.1"
1415
kgp = { module = "org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin", version.ref = "kgp" }
1516
coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2"
17+
gratatouille-wiring-runtime = { module = "com.gradleup.gratatouille:gratatouille-wiring-runtime", version.ref = "gratatouille-runtime" }
18+
gratatouille-tasks-runtime = { module = "com.gradleup.gratatouille:gratatouille-tasks-runtime", version.ref = "gratatouille-runtime" }
1619

1720
[plugins]
1821
kgp = { id = "org.jetbrains.kotlin.jvm", version.ref = "kgp" }
1922
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kgp" }
2023
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
21-
ggp = { id = "com.gradleup.gratatouille", version.ref = "gratatouille" }
24+
ggp = { id = "com.gradleup.gratatouille", version.ref = "gratatouille-plugin" }
2225
librarian = { id = "com.gradleup.librarian", version = "0.1.1-SNAPSHOT-44a36034d83f8ba9c9177653f29df3dea933fc3f" }
2326
nmcp = { id = "com.gradleup.nmcp", version = "1.0.3" }
2427
compat = { id = "com.gradleup.compat.patrouille", version = "0.0.1-SNAPSHOT-9da44b3b93e36a196ae5afc9f7a79a46a82763cd" }

nmcp/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ plugins {
1717
Librarian.module(project)
1818

1919
gratatouille {
20-
codeGeneration()
20+
codeGeneration {
21+
addDependencies.set(false)
22+
}
2123
pluginMarker("com.gradleup.nmcp", "default")
2224
pluginMarker("com.gradleup.nmcp.aggregation", "default")
2325
}
@@ -26,6 +28,8 @@ dependencies {
2628
implementation(libs.json)
2729
implementation(libs.okio)
2830
implementation(libs.coroutines)
31+
implementation(libs.gratatouille.wiring.runtime)
32+
implementation(libs.gratatouille.tasks.runtime)
2933
api(libs.okhttp)
3034
implementation(libs.xmlutil)
3135

settings.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ pluginManagement {
55
).forEach {
66
it.apply {
77
mavenCentral()
8+
maven("https://storage.googleapis.com/gradleup/m2") {
9+
content {
10+
// this is only used at build time and is safe to fetch as a snapshot
11+
includeModule("com.gradleup.gratatouille", "gratatouille-processor")
12+
}
13+
}
814
}
915
}
1016
repositories {
11-
maven("https://storage.googleapis.com/gradleup/m2") {
12-
content {
13-
includeGroup("com.gradleup.librarian")
14-
includeGroup("com.gradleup.nmcp")
15-
includeGroup("com.gradleup.compat.patrouille")
16-
}
17-
}
17+
maven("https://storage.googleapis.com/gradleup/m2")
1818
}
1919
}
2020

0 commit comments

Comments
 (0)