Skip to content

Commit 66da77d

Browse files
Build: don't use snapshots on main branch
This is safe, because Maven artifacts are not published from main branch on CI.
1 parent 1d28a0f commit 66da77d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ buildscript {
2626
// see the release checklist in the objectbox repo.
2727
// If true won't build snapshots and removes version post fix (e.g. "-dev-SNAPSHOT"),
2828
// uses release versions of dependencies.
29-
val isRelease = System.getenv("OBX_RELEASE") == "true"
29+
// val isRelease = System.getenv("OBX_RELEASE") == "true"
30+
val isRelease = true // On (public) main branch don't use snapshots (publishing is disabled in CI for main branch)
3031

3132
// version post fix: "-<value>" or "" if not defined; e.g. used by CI to pass in branch name
3233
val versionPostFixValue = project.findProperty("versionPostFix")

0 commit comments

Comments
 (0)