Skip to content

Commit 96ba86e

Browse files
committed
docs: update build script examples to Gradle 9.0
1 parent bbbeed8 commit 96ba86e

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

docs/getting-started/getting_started_07.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,9 @@ glib-compile-resources exampleapp.gresource.xml
5252
You can run this automatically before Gradle compiles the application, by adding a custom task to `build.gradle`:
5353

5454
```groovy
55-
tasks.register('compileResources') {
56-
exec {
57-
workingDir 'src/main/resources'
58-
commandLine 'glib-compile-resources', 'exampleapp.gresource.xml'
59-
}
55+
tasks.register('compileResources', Exec) {
56+
workingDir 'src/main/resources'
57+
commandLine 'glib-compile-resources', 'exampleapp.gresource.xml'
6058
}
6159

6260
tasks.named('classes') {

docs/templates.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,9 @@ The path to the UI file is treated by Java-GI as a [GResource](https://docs.gtk.
7777
=== "Gradle (Groovy)"
7878

7979
```groovy
80-
tasks.register('compileResources') {
81-
exec {
82-
workingDir 'src/main/resources'
83-
commandLine 'glib-compile-resources', 'example.gresource.xml'
84-
}
80+
tasks.register('compileResources', Exec) {
81+
workingDir 'src/main/resources'
82+
commandLine 'glib-compile-resources', 'example.gresource.xml'
8583
}
8684

8785
tasks.named('compileJava') {

0 commit comments

Comments
 (0)