-
Notifications
You must be signed in to change notification settings - Fork 62
Java 21 with Graal support #1211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
a67bad9
e658a4f
065c379
2f58013
640ca01
52712d6
217a7b0
0618efc
fa35c61
ef7b081
25d20ea
e5e8492
a73f12f
5de0181
c475f83
07a2d0e
b1119e2
0fbf044
782f075
25bce25
6d346d9
2a2d086
320c77e
d1323a4
12f2b1d
4c058df
b9a2cc5
cbccc19
2b0d8f9
ce67ada
0f01291
ddad367
f7fe10c
374729d
09cd140
6fd3877
7e0c6c7
bb5c552
e37e8e3
be60611
7113b17
760922c
1191756
ca6969b
a399b9e
1336054
b0a1950
975ba5d
65bc162
23b563f
8db364f
22a9f7d
8456625
0825b1b
561286d
c492501
4e1e128
ecbc2ed
cc3a0f2
adf33ac
76ea3fc
c8bc7a5
3a8850d
6b9fa1f
072f22c
fa45c1e
67ab915
0f28770
c9e4c0f
fbf59e7
0d39ef0
25330df
0937083
9421d1a
e92581d
8f22a3a
53484ad
d47bc98
7e40b3a
509e0d8
c149cd0
b800735
1119558
3baf58a
1f084a1
c3186d0
9d34e07
9fc2a0e
6b91edb
56e0514
d52e27b
76ff02b
75cc00f
95cf36a
a91bb6e
ab167a3
cf73515
f4417c4
8c9e58c
a36dd7b
69f5bbc
eca861b
8c34ee5
494d543
0bb310b
2ca81c6
c70baf8
73f14e3
2987918
5ca751c
ff54182
e1eba56
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,9 @@ subprojects { | |
apply plugin: 'java-library' | ||
apply plugin: 'org.inferred.processors' | ||
|
||
sourceCompatibility = JavaVersion.VERSION_11 | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
|
||
tasks.withType(Checkstyle).configureEach { | ||
enabled = false | ||
} | ||
|
@@ -68,21 +71,16 @@ subprojects { | |
} | ||
|
||
javaVersions { | ||
libraryTarget = 17 | ||
runtime = 17 | ||
libraryTarget = 21 | ||
runtime = 21 | ||
} | ||
|
||
jdks { | ||
daemonTarget = 17 | ||
daemonTarget = 21 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need daemonTarget 21? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not really, but since everything else would use java 21, I thought it is OK to move the daemon as well. |
||
|
||
jdk(23) { | ||
distribution = 'graalvm-ce' | ||
jdkVersion = '23.0.1' | ||
} | ||
|
||
} | ||
|
||
javaVersions { | ||
libraryTarget = 17 | ||
runtime = 17 | ||
} |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,8 +129,3 @@ configurations { | |
} | ||
} | ||
} | ||
|
||
javaVersion { | ||
target = 21 | ||
runtime = 21 | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,3 @@ dependencies { | |
testImplementation 'org.junit.jupiter:junit-jupiter' | ||
testImplementation 'com.fasterxml.jackson.core:jackson-databind' | ||
} | ||
|
||
tasks.withType(JavaCompile).named('compileJava') { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. moved all the *Compatibility blocks to the root build.gradle in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need to set the sourceCompatibility for the groovy source sets too? If we can, I'd like to contain this strangeness to just the place that needs, ie the code for running the actual formatter There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we might avoid being able to do this by keeping There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops, I mean There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changed in ff54182 |
||
sourceCompatibility = JavaVersion.VERSION_11 | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
} |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,53 @@ | ||
apply plugin: 'application' | ||
apply plugin: 'com.palantir.external-publish-jar' | ||
|
||
mainClassName = 'com.palantir.javaformat.java.Main' | ||
|
||
description = 'Palantir Java Format' | ||
|
||
dependencies { | ||
api project(':palantir-java-format-all') | ||
api project(':palantir-java-format-21') | ||
api project(':palantir-java-format-spi') | ||
api 'com.google.guava:guava' | ||
implementation 'org.functionaljava:functionaljava' | ||
implementation 'com.fasterxml.jackson.core:jackson-core' | ||
implementation 'com.fasterxml.jackson.core:jackson-databind' | ||
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8' | ||
implementation 'com.fasterxml.jackson.module:jackson-module-parameter-names' | ||
|
||
testImplementation 'com.google.guava:guava-testlib' | ||
testImplementation 'com.google.truth:truth' | ||
testImplementation 'com.google.testing.compile:compile-testing' | ||
testImplementation 'org.assertj:assertj-core' | ||
testImplementation 'org.junit.jupiter:junit-jupiter-migrationsupport' | ||
testImplementation 'org.junit.jupiter:junit-jupiter' | ||
|
||
compileOnly 'com.google.auto.service:auto-service' | ||
annotationProcessor 'com.google.auto.service:auto-service' | ||
compileOnly "org.immutables:value::annotations" | ||
annotationProcessor "org.immutables:value" | ||
|
||
compileOnly 'org.derive4j:derive4j-annotation' | ||
annotationProcessor 'org.derive4j:derive4j' | ||
} | ||
|
||
moduleJvmArgs { | ||
exports().addAll( | ||
'jdk.compiler/com.sun.tools.javac.file', | ||
'jdk.compiler/com.sun.tools.javac.main', | ||
'jdk.compiler/com.sun.tools.javac.parser', | ||
'jdk.compiler/com.sun.tools.javac.tree', | ||
'jdk.compiler/com.sun.tools.javac.util', | ||
'jdk.compiler/com.sun.tools.javac.code', | ||
'jdk.compiler/com.sun.tools.javac.api') | ||
} | ||
|
||
// false positives due to org.junit.runners.* in the test cases | ||
tasks.named("checkJUnitDependencies") { | ||
enabled = false | ||
} | ||
|
||
tasks.named("test") { | ||
// Run all classes and tests in parallel | ||
// https://junit.org/junit5/docs/current/user-guide/#writing-tests-parallel-execution | ||
systemProperty 'junit.jupiter.execution.parallel.mode.default', 'concurrent' | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libraryTarget
impliesruntime
, I think we can just leave this out to keep it like our other Gradle plugins.