Skip to content

Commit b7fe428

Browse files
author
Pascal Mengelt
committed
Migrated to scala-cli for helper script.
1 parent d84a61d commit b7fe428

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ meta.json
3838
/.camunda/
3939
/**/.generated/
4040

41+
/.scala-build/

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ lazy val root = project
1616
.configure(preventPublication)
1717
.settings(
1818
name := "camundala",
19-
organization := org
19+
organization := org,
20+
sourcesInBase := false
2021
)
2122
.aggregate(
2223
documentation,

publish-release.sc renamed to helper.scala

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
import mainargs.*
2-
import $ivy.`io.github.pme123:camundala-helper_3:1.29.21 compat`, camundala.helper.*
3-
4-
/** <pre> Creates a new Release for the client and publishes to Github/pme123/camundala:
5-
*
6-
* amm ./publish-release.sc <VERSION>
7-
*
8-
* # Example SNAPSHOT (only publish to Github/pme123/camundala) amm ./publish-release.sc 0.2.5-SNAPSHOT
9-
*
10-
* # Example (publish to Github/pme123/camundala and GIT Tagging and increasing Version to next minor
11-
* Version) amm ./publish-release.sc 0.2.5
12-
*/
13-
14-
@arg(doc = "> Creates a new Release and publishes to Maven Central")
1+
#!/usr/bin/env -S scala shebang
2+
3+
//> using toolkit 0.5.0
4+
//> using dep io.github.pme123::camundala-helper:1.30.23
5+
6+
import camundala.helper.*
7+
158
@main
169
def release(version: String): Unit =
1710
println(s"Publishing camundala: $version")
@@ -55,8 +48,7 @@ private def replaceVersion(newVersion: String) =
5548
val versionsPath = os.pwd / "version"
5649
os.write.over(versionsPath, newVersion)
5750

58-
private def runInConsole(proc: String*) = {
51+
private def runInConsole(proc: String*) =
5952
println(proc.mkString(" "))
6053
val result = os.proc(proc).call()
6154
println(result.out.text())
62-
}

0 commit comments

Comments
 (0)