Skip to content

Commit

Permalink
Depend on natives:assemble before running classes task
Browse files Browse the repository at this point in the history
  • Loading branch information
Rongmario committed Feb 11, 2024
1 parent 803c82b commit 36f0296
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ plugins {
group 'zone.rong'
version '1.3'

tasks.withType(JavaExec) {
tasks.withType(JavaExec).configureEach {
jvmArgs '--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED'
jvmArgs '--add-opens=java.base/jdk.internal.reflect=ALL-UNNAMED'
}

tasks.withType(JavaCompile) {
tasks.withType(JavaCompile).configureEach {
options.compilerArgs += ["--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED", '--add-exports=java.base/jdk.internal.reflect=ALL-UNNAMED']
}

Expand All @@ -31,6 +31,10 @@ test {
finalizedBy 'testVendorsAndVersions'
}

classes {
dependsOn ':natives:assemble'
}

def testVendorsAndVersions = tasks.register('testVendorsAndVersions') {
group 'verification'
}
Expand Down

0 comments on commit 36f0296

Please sign in to comment.