Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions codegen-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ version = "0.3.0-SNAPSHOT"
// compiled against. The fallbacks keep a standalone `./gradlew kspKotlin` working.
val drivineVersion = (findProperty("drivineVersion") as String?) ?: "0.5.0"
val embabelAgentVersion = (findProperty("embabelAgentVersion") as String?) ?: "1.5.0-SNAPSHOT"
val guavaVersion = (findProperty("guavaVersion") as String?) ?: "33.7.2-jre"

repositories {
// mavenLocal first is deliberate — it mirrors Maven's local-m2-first resolution, so this codegen and
Expand All @@ -34,6 +35,10 @@ repositories {
}

dependencies {
constraints {
implementation("com.google.guava:guava:$guavaVersion")
}

implementation("org.drivine:drivine4j:$drivineVersion")
ksp("org.drivine:drivine4j-codegen:$drivineVersion")

Expand Down
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<properties>
<embabel-agent.version>1.5.3</embabel-agent.version>
<drivine.version>0.5.0</drivine.version>
<!-- GHSA-xxph-c9ww-hj94: keep Maven and Gradle codegen on patched Guava. -->
<guava.version>33.7.2-jre</guava.version>
<!-- Overrides the parent's default: the Drivine KSP-generated DSL uses context parameters
(Kotlin 2.2+), so this module and its codegen-gradle build compile with 2.3.21. -->
<kotlin.version>2.3.21</kotlin.version>
Expand Down Expand Up @@ -52,6 +54,12 @@

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>

<!-- jfalkordb 0.13.0 (through Drivine) needs Jedis 8; the imported BOM manages an older one.
Declared first, so it wins over the import. -->
<dependency>
Expand Down Expand Up @@ -209,6 +217,7 @@
<argument>kspKotlin</argument>
<argument>-PdrivineVersion=${drivine.version}</argument>
<argument>-PembabelAgentVersion=${embabel-agent.version}</argument>
<argument>-PguavaVersion=${guava.version}</argument>
<argument>--quiet</argument>
</arguments>
</configuration>
Expand Down
Loading