-
Notifications
You must be signed in to change notification settings - Fork 0
Publish JExtract-generated source code alongside compiled bindings #2
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 all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -80,8 +80,15 @@ task jextract(dependsOn: [invokeJextract, cleanupExtras]) | |||||
|
|
||||||
| tasks.findByName('compileJava').dependsOn jextract | ||||||
|
|
||||||
| task bindings(type: Copy, dependsOn: [jextract, jar]){ | ||||||
| task sourcesJar(type: Jar, dependsOn: jextract) { | ||||||
| archiveBaseName = 'webgpu' | ||||||
| archiveClassifier = 'sources' | ||||||
| from 'build/bindings' | ||||||
| } | ||||||
|
|
||||||
| task bindings(type: Copy, dependsOn: [jextract, jar, sourcesJar]){ | ||||||
| from jar | ||||||
| from sourcesJar | ||||||
| into 'build' | ||||||
| } | ||||||
|
|
||||||
|
|
@@ -93,6 +100,7 @@ publishing { | |||||
| version = "$wgpuVersion" | ||||||
|
|
||||||
| artifact file("build/webgpu.jar") | ||||||
|
||||||
| artifact file("build/webgpu.jar") | |
| artifact jar |
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.
Hardcoded path instead of using Gradle's file references. Consider using
from file('build/bindings')or better yet, referencing the location through a variable or property to make the configuration more explicit and maintainable.