Compare commits

..

31 Commits

Author SHA1 Message Date
Abe Pazos
662bea203d Update dependencies
kotlinxCoroutines 1.11.0
kotlinLogging 8.0.02
versions 0.54.0
2026-05-10 00:16:01 +03:00
Abe Pazos
c0563506ec Update to kotlin 2.3.21, kotlinxSerialization 1.11.0 2026-05-10 00:16:01 +03:00
Abe Pazos
36a79ddbf8 Update to Gradle 9.5.0 2026-05-10 00:15:42 +03:00
Abe Pazos
632c6a202b Update shadow to 9.4.0 2026-03-23 13:18:01 +01:00
Abe Pazos
0d3d32ba96 Update Gradle to 9.4.1 2026-03-23 13:17:53 +01:00
Abe Pazos
8be17014d2 Upgrade to gradle 9.4.0, kotlin 2.3.20, kotlinLogging 8.0.01 2026-03-16 11:25:58 +01:00
Edwin Jakobs
c80339a16d Fix typo in logging-full bundle definition in libs.versions.toml 2026-02-23 15:51:44 +01:00
Edwin Jakobs
1cd05ec34d Make SDL the default runtime 2026-02-23 15:29:25 +01:00
Abe Pazos
ed21ae9876 Add sdl dependency (commented out) 2026-02-11 10:35:20 +01:00
Abe Pazos
5374b5c289 Upgrade to kotlin 2.3.10, gradle 9.3.1 2026-02-11 10:21:13 +01:00
Edwin Jakobs
3fae0df12c Add minimize exclude for openrndr-application-sdl 2026-01-24 10:21:04 +01:00
Abe Pazos
a76d1a7855 Have two build workflows
One for main and next-version,
One for snapshot.

This way workflows in various branches don't differ:
simpler to maintain.
2026-01-23 15:11:13 +01:00
Abe Pazos
79369a570b Build on commit also for snapshot branch 2026-01-23 14:42:43 +01:00
Abe Pazos
accac10a0b Build openrndr and orx in snapshot branch 2026-01-23 14:32:56 +01:00
Abe Pazos
a518acbb64 Build on commit also for snapshot branch 2026-01-23 14:09:22 +01:00
Abe Pazos
dcf8d366af Update kotlinx-serialization to 1.10.0 2026-01-23 14:02:12 +01:00
Abe Pazos
18de4abcaf Upgrade to gradle 9.3.0, kotlinLogging 7.0.14 2026-01-21 13:54:53 +01:00
Abe Pazos
9f57439f00 jpackageZip: Make files under bin executable 2026-01-21 13:54:53 +01:00
Abe Pazos
774ab3d0d6 Make use of openrndr.bundles.video
Replaces openrndr.ffmpeg and openrndr.openal
2026-01-04 11:46:09 +01:00
Abe Pazos
a593a8225f Add openrndr.openal to build.gradle.kts
Needed for webcam access and more
2025-12-31 12:23:51 +01:00
Abe Pazos
bd20afb8ee Solve gradle warnings
`--compress 1` becomes `--compress zip-6`

Use $$ instead of ${"$"}
2025-12-20 20:11:45 +01:00
Abe Pazos
e847ee4d83 Upgrade to kotlin 2.3.0, shadow 9.3.0, versions 0.53.0 2025-12-20 20:11:45 +01:00
Abe Pazos
c4589ca886 Fix jpackageZip task compatibility issue 2025-12-20 20:11:45 +01:00
Abe Pazos
8898c9b051 Update GitHub workflows 2025-12-09 14:05:46 +01:00
Abe Pazos
aceb90e42a Update to Gradle 9.2.1, Kotlin 2.2.21 2025-11-30 10:37:24 +01:00
Abe Pazos
55c62c45b5 Fix shadowJar task
By not discarding openrndr-application-glfw when minimizing
2025-11-30 09:10:49 +01:00
Abe Pazos
c706a41ee8 Merge changes from master branch 2025-11-30 09:06:56 +01:00
Abe Pazos
edd5062d1d Make template compatible with openrndr/orx SNAPSHOT (local development build versions) 2025-10-09 14:27:13 +02:00
Edwin Jakobs
18ba01caa5 Use openrndr / orx 0.5.0-alpha1 2025-09-17 14:16:23 +02:00
Edwin Jakobs
4bdb7f95d7 Refactor template using buildSrc, feature variants and published version catalogs (#56)
Co-authored-by: Abe Pazos <abe@hamoid.com>
2025-09-17 10:36:48 +02:00
Abe Pazos
326474823c Update README.md: change Java requirement 14 -> 17 2025-09-13 09:30:03 +02:00
10 changed files with 99 additions and 32 deletions

View File

@@ -8,14 +8,16 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- uses: actions/setup-java@v4 - uses: actions/setup-java@v5
with: with:
distribution: 'temurin' distribution: temurin
java-version: '17' java-version: 21
#cache: 'gradle' #cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
- name: Build sources - name: Build sources
run: ./gradlew build run: ./gradlew build

View File

@@ -0,0 +1,63 @@
name: Build snapshot on commit
on:
push:
branches:
- snapshot
defaults:
run:
working-directory: ./template
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout OPENRNDR repository
uses: actions/checkout@v6
with:
fetch-depth: 0
repository: openrndr/openrndr
path: ./openrndr
ref: master
- name: Checkout ORX repository
uses: actions/checkout@v6
with:
fetch-depth: 0
repository: openrndr/orx
path: ./orx
ref: master
- name: Checkout current repository
uses: actions/checkout@v6
with:
fetch-depth: 0
repository: openrndr/openrndr-template
path: ./template
ref: snapshot
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
- name: Set swap space
uses: pierotofy/set-swap-space@v1.0
with:
swap-size-gb: 8
- name: Build OPENRNDR
working-directory: ./openrndr
run: ./gradlew publishToMavenLocal snapshot
- name: Build ORX
working-directory: ./orx
run: ./gradlew publishToMavenLocal snapshot
- name: Build template
working-directory: ./template
run: ./gradlew build

View File

@@ -23,10 +23,10 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Set up JDK 17 - name: Set up JDK 17
uses: actions/setup-java@v4 uses: actions/setup-java@v7
with: with:
distribution: 'temurin' distribution: 'temurin'
java-version: '17' java-version: '17'
@@ -48,7 +48,7 @@ jobs:
run: mv ./build/distributions/openrndr-application.zip ./build/distributions/openrndr-application-${{env.OR_TARGET_NAME}}.zip run: mv ./build/distributions/openrndr-application.zip ./build/distributions/openrndr-application-${{env.OR_TARGET_NAME}}.zip
- name: Create Release - name: Create Release
uses: ncipollo/release-action@v1.14.0 uses: ncipollo/release-action@v1.20.0
id: create_release id: create_release
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -9,23 +9,22 @@ plugins {
} }
dependencies { dependencies {
implementation(openrndr.application) implementation(openrndr.bundles.basic)
implementation(openrndr.draw) implementation(openrndr.bundles.video)
runtimeOnly(openrndr.bundles.runtime.sdl)
// runtimeOnly(openrndr.bundles.runtime.glfw)
runtimeOnly(openrndr.gl3) runtimeOnly(openrndr.gl3)
implementation(openrndr.dialogs) implementation(openrndr.dialogs)
implementation(openrndr.orextensions) implementation(openrndr.orextensions)
implementation(openrndr.ffmpeg)
implementation(orx.bundles.basic) implementation(orx.bundles.basic)
implementation(orx.olive) implementation(orx.olive)
implementation(libs.kotlinx.coroutines.core) implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.serialization.core) implementation(libs.kotlinx.serialization.core)
implementation(libs.kotlinx.serialization.json) implementation(libs.kotlinx.serialization.json)
implementation(libs.slf4j.api) implementation(libs.slf4j.api)
implementation(libs.kotlin.logging) implementation(libs.kotlin.logging)
runtimeOnly(libs.bundles.logging.simple) runtimeOnly(libs.bundles.logging.simple)
testImplementation(libs.junit) testImplementation(libs.junit)
} }

View File

@@ -25,6 +25,8 @@ tasks {
} }
minimize { minimize {
exclude(dependency("org.openrndr:openrndr-gl3:.*")) exclude(dependency("org.openrndr:openrndr-gl3:.*"))
exclude(dependency("org.openrndr:openrndr-application-glfw"))
exclude(dependency("org.openrndr:openrndr-application-sdl"))
exclude(dependency("org.jetbrains.kotlin:kotlin-reflect:.*")) exclude(dependency("org.jetbrains.kotlin:kotlin-reflect:.*"))
exclude(dependency("org.slf4j:slf4j-simple:.*")) exclude(dependency("org.slf4j:slf4j-simple:.*"))
exclude(dependency("org.apache.logging.log4j:log4j-slf4j2-impl:.*")) exclude(dependency("org.apache.logging.log4j:log4j-slf4j2-impl:.*"))
@@ -55,6 +57,11 @@ tasks {
from("${layout.buildDirectory.get()}/jpackage") { from("${layout.buildDirectory.get()}/jpackage") {
include("**/*") include("**/*")
} }
filesMatching("**/bin/*") {
permissions {
unix("0755")
}
}
dependsOn("jpackage") dependsOn("jpackage")
} }
} }
@@ -65,9 +72,9 @@ runtime {
skipInstaller = true skipInstaller = true
if (OperatingSystem.current().isMacOsX) { if (OperatingSystem.current().isMacOsX) {
jvmArgs.add("-XstartOnFirstThread") jvmArgs.add("-XstartOnFirstThread")
jvmArgs.add("-Duser.dir=${"$"}APPDIR/../Resources") jvmArgs.add($$"-Duser.dir=$APPDIR/../Resources")
} }
} }
options = listOf("--strip-debug", "--compress", "1", "--no-header-files", "--no-man-pages") options = listOf("--strip-debug", "--compress", "zip-6", "--no-header-files", "--no-man-pages")
modules = listOf("jdk.unsupported", "java.management", "java.desktop") modules = listOf("jdk.unsupported", "java.management", "java.desktop")
} }

View File

@@ -1,6 +1,6 @@
[versions] [versions]
jvmTarget = "17" jvmTarget = "17"
kotlin = "2.2.10" kotlin = "2.3.21"
kotlinApi = "2.2" kotlinApi = "2.2"
kotlinLanguage = "2.2" kotlinLanguage = "2.2"
@@ -13,14 +13,14 @@ slf4j = "2.0.17"
log4j = "2.23.1" log4j = "2.23.1"
jackson = "2.17.2" jackson = "2.17.2"
junit = "4.13.2" junit = "4.13.2"
kotlinxCoroutines = "1.10.2" kotlinxCoroutines = "1.11.0"
kotlinxSerialization = "1.9.0" kotlinxSerialization = "1.11.0"
kotlinLogging = "7.0.13" kotlinLogging = "8.0.02"
kotlinCsvJvm = "1.9.3" kotlinCsvJvm = "1.9.3"
jsoup = "1.17.1" jsoup = "1.17.1"
shadow = "9.1.0" shadow = "9.4.0"
runtime = "1.13.1" runtime = "2.0.1"
versions = "0.52.0" versions = "0.54.0"
[libraries] [libraries]
kotlin-script-runtime = { group = "org.jetbrains.kotlin", name = "kotlin-script-runtime", version.ref = "kotlin" } kotlin-script-runtime = { group = "org.jetbrains.kotlin", name = "kotlin-script-runtime", version.ref = "kotlin" }
@@ -56,4 +56,4 @@ versions = { id = "com.github.ben-manes.versions", version.ref = "versions" }
[bundles] [bundles]
logging-none = ["slf4j-nop"] logging-none = ["slf4j-nop"]
logging-simple = ["slf4j-simple"] logging-simple = ["slf4j-simple"]
loggin-full = ["log4j-slf4j2", "log4j-core", "jackson-databind", "jackson-json"] logging-full = ["log4j-slf4j2", "log4j-core", "jackson-databind", "jackson-json"]

Binary file not shown.

View File

@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME

7
gradlew vendored
View File

@@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# #
# Copyright © 2015-2021 the original authors. # Copyright © 2015 the original authors.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop. # Darwin, MinGW, and NonStop.
# #
# (3) This script is generated from the Groovy template # (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # https://github.com/gradle/gradle/blob/2d6327017519d23b96af35865dc997fcb544fb40/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project. # within the Gradle project.
# #
# You can find Gradle at https://github.com/gradle/gradle/. # You can find Gradle at https://github.com/gradle/gradle/.
@@ -114,7 +114,6 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;; NONSTOP* ) nonstop=true ;;
esac esac
CLASSPATH="\\\"\\\""
# Determine the Java command to use to start the JVM. # Determine the Java command to use to start the JVM.
@@ -172,7 +171,6 @@ fi
# For Cygwin or MSYS, switch paths to Windows format before running java # For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" ) JAVACMD=$( cygpath --unix "$JAVACMD" )
@@ -212,7 +210,6 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
set -- \ set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \ "-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@" "$@"

3
gradlew.bat vendored
View File

@@ -70,11 +70,10 @@ goto fail
:execute :execute
@rem Setup the command line @rem Setup the command line
set CLASSPATH=
@rem Execute Gradle @rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
:end :end
@rem End local scope for the variables with windows NT shell @rem End local scope for the variables with windows NT shell