diff options
author | 2022-11-22 19:16:47 +0100 | |
---|---|---|
committer | 2022-11-22 19:21:42 +0100 | |
commit | a8ffe38e6e5401011352cda5bc92a0a7a88ef40e (patch) | |
tree | 97f14cfb809f365aebfdbfaed43c8733aec930e6 /buildSrc/src/main/groovy/refinery-java-application.gradle | |
parent | fix(frontend): mobx 6.7.0 typing (diff) | |
download | refinery-a8ffe38e6e5401011352cda5bc92a0a7a88ef40e.tar.gz refinery-a8ffe38e6e5401011352cda5bc92a0a7a88ef40e.tar.zst refinery-a8ffe38e6e5401011352cda5bc92a0a7a88ef40e.zip |
chore: upgrade to Java 19
Use Java 19 and Jetty 12 to take advantage of Project Loom preview
features to reduce CPU usage due to XtextWebDocumentAccess thread pools.
Diffstat (limited to 'buildSrc/src/main/groovy/refinery-java-application.gradle')
-rw-r--r-- | buildSrc/src/main/groovy/refinery-java-application.gradle | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/buildSrc/src/main/groovy/refinery-java-application.gradle b/buildSrc/src/main/groovy/refinery-java-application.gradle index c38ccdb3..9abfc2b3 100644 --- a/buildSrc/src/main/groovy/refinery-java-application.gradle +++ b/buildSrc/src/main/groovy/refinery-java-application.gradle | |||
@@ -4,6 +4,10 @@ plugins { | |||
4 | id 'refinery-java-conventions' | 4 | id 'refinery-java-conventions' |
5 | } | 5 | } |
6 | 6 | ||
7 | application { | ||
8 | applicationDefaultJvmArgs += '--enable-preview' | ||
9 | } | ||
10 | |||
7 | for (taskName in ['distTar', 'distZip', 'shadowDistTar', 'shadowDistZip']) { | 11 | for (taskName in ['distTar', 'distZip', 'shadowDistTar', 'shadowDistZip']) { |
8 | tasks.named(taskName) { | 12 | tasks.named(taskName) { |
9 | enabled = false | 13 | enabled = false |