Skip to content

Commit

Permalink
Fix more problems
Browse files Browse the repository at this point in the history
  • Loading branch information
serras committed Feb 7, 2025
1 parent fdb043b commit 85dc0e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arrow-libs/optics/arrow-optics-ksp-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

kotlin {
explicitApiWarning()
explicitApi = null
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import java.net.URLClassLoader
import java.nio.file.Files
import java.nio.file.Paths

val arrowVersion: String = System.getProperty("arrowVersion")
val arrowVersion = System.getProperty("arrowVersion")
const val SOURCE_FILENAME = "Source.kt"
const val CLASS_FILENAME = "SourceKt"

Expand Down
8 changes: 6 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import kotlinx.knit.KnitPluginExtension
import kotlinx.validation.ExperimentalBCVApi
import org.gradle.internal.classpath.Instrumented.systemProperty

allprojects {
if (property("version") == "unspecified") {
setProperty("version", "2.0.0-SNAPSHOT")
val version = (property("version") as? String).let { version ->
if (version == null || version == "unspecified") "2.1.0-SNAPSHOT"
else version
}
setProperty("version", version)
systemProperty("arrowVersion", version)
}

buildscript {
Expand Down

0 comments on commit 85dc0e0

Please sign in to comment.