Skip to content

Commit 4640865

Browse files
committed
Dynamic versioning
1 parent dd99458 commit 4640865

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

app/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ plugins{
1414
}
1515

1616
group = rootProject.group
17+
tasks.withType<JavaExec> {
18+
systemProperty("processing.version", version)
19+
systemProperty("processing.revision", "1296")
20+
}
21+
1722

1823
repositories{
1924
mavenCentral()
@@ -93,6 +98,8 @@ dependencies {
9398
implementation(libs.compottie)
9499
implementation(libs.kaml)
95100
}
101+
102+
// LEGACY ACTIONS
96103
tasks.register<Copy>("copyCore"){
97104
dependsOn(project(":core").tasks.jar)
98105
from(project(":core").layout.buildDirectory.dir("libs"))

app/src/processing/app/Base.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
public class Base {
5555
// Added accessors for 0218 because the UpdateCheck class was not properly
5656
// updating the values, due to javac inlining the static final values.
57-
static private final int REVISION = 1295;
57+
static private final int REVISION = Integer.parseInt(System.getProperty("processing.revision", "1295"));
5858
/** This might be replaced by main() if there's a lib/version.txt file. */
59-
static private String VERSION_NAME = "1295"; //$NON-NLS-1$
59+
static private String VERSION_NAME = System.getProperty("processing.version", "1295"); //$NON-NLS-1$
6060

6161
static final public String SKETCH_BUNDLE_EXT = ".pdez";
6262
static final public String CONTRIB_BUNDLE_EXT = ".pdex";

java/lsp/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ plugins{
66
}
77

88
group = "org.processing"
9-
version = "4.3.1"
109

1110
repositories{
1211
mavenCentral()

0 commit comments

Comments
 (0)