Skip to content

Commit df745bb

Browse files
committed
Merge branch 'main-gradle' into gradle/preprocessor
2 parents f016cc4 + 3b9aea1 commit df745bb

File tree

8 files changed

+9
-11
lines changed

8 files changed

+9
-11
lines changed

.github/workflows/build-gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Add artifact
5151
uses: actions/upload-artifact@v4
5252
with:
53-
name: processing-${{ github.ref_name }}-${{github.sha}}-${{ matrix.os_prefix }}-${{ matrix.arch }}-gradle
53+
name: processing-${{ replace(github.ref_name, '/', '-') }}-${{github.sha}}-${{ matrix.os_prefix }}-${{ matrix.arch }}-gradle
5454
path: |
5555
./app/build/compose/binaries/main/dmg/Processing-*.dmg
5656
./app/build/compose/binaries/main/dmg/INSTRUCTIONS_FOR_TESTING.txt

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ jobs:
7272
- name: Add artifact
7373
uses: actions/upload-artifact@v4
7474
with:
75-
name: processing-${{ github.ref_name }}-${{github.sha}}-${{ matrix.os_prefix }}-${{ matrix.arch }}-ant
75+
name: processing-${{ replace(github.ref_name, '/', '-') }}-${{github.sha}}-${{ matrix.os_prefix }}-${{ matrix.arch }}-ant
7676
path: ./build/${{ matrix.os_prefix }}/processing-${{github.sha}}-${{ matrix.os_prefix}}-*
7777
retention-days: 1

app/ant/processing/app/Schema.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
import processing.app.ui.Editor;
44

5+
// Stub class for backwards compatibility with the ant-build system
6+
// This class is not used in the Gradle build system
7+
// The actual implementation is in src/.../Schema.kt
58
public class Schema {
69
public static Editor handleSchema(String input, Base base) {
710
return null;

app/ant/processing/app/contrib/ui/ContributionManagerKt.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
import processing.app.contrib.ContributionManager;
44

5+
// Stub class for backwards compatibility with the ant-build system
6+
// This class is not used in the Gradle build system
7+
// The actual implementation is in src/.../ContributionManager.kt
58
public final class ContributionManagerKt {
69
public static void openContributionsManager() {
710
ContributionManager.openLibraries();

app/build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ sourceSets{
3232
main{
3333
java{
3434
srcDirs("src")
35-
exclude("**/*Kt.java")
3635
}
3736
kotlin{
3837
srcDirs("src")
39-
exclude("**/*Kt.java")
4038
}
4139
}
4240
}
@@ -59,8 +57,6 @@ compose.desktop {
5957
}
6058
entitlementsFile.set(project.file("entitlements.plist"))
6159
runtimeEntitlementsFile.set(project.file("entitlements.plist"))
62-
// Allow swing to use the system look and feel
63-
jvmArgs("-Dapple.awt.application.appearance=system")
6460
}
6561
windows{
6662
iconFile = project.file("../build/windows/processing.ico")

app/src/processing/app/Platform.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
import java.lang.management.ManagementFactory;
2929
import java.net.URISyntaxException;
3030
import java.net.URL;
31-
import java.nio.file.*;
32-
import java.nio.file.attribute.BasicFileAttributes;
33-
import java.nio.file.attribute.PosixFilePermission;
3431
import java.util.*;
3532

3633
import com.sun.jna.platform.FileUtils;

app/src/processing/app/UpdateCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
public class UpdateCheck {
5757
private final Base base;
5858

59-
static private final String DOWNLOAD_URL = System.getProperty("processing.download.page","https://processing.org/download/");
59+
static private final String DOWNLOAD_URL = System.getProperty("processing.download.page","https://processing.org/download/");
6060
static private final String LATEST_URL = System.getProperty("processing.download.latest","https://processing.org/download/latest.txt");
6161

6262
static private final long ONE_DAY = 24 * 60 * 60 * 1000;

java/src/processing/mode/java/JavaBuild.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,6 @@ protected boolean exportApplication(File destFolder,
770770
}
771771

772772
}
773-
// TODO: Handle the java embed and Icon with the new build system
774773

775774
} else if (exportPlatform == PConstants.LINUX) {
776775
if (embedJava) {

0 commit comments

Comments
 (0)