Skip to content

Commit 4233f09

Browse files
authored
Merge pull request #1724 from ctrimble/feature_update-examples
Update maven and gradle examples
2 parents e6f503b + 847f6fc commit 4233f09

File tree

18 files changed

+848
-377
lines changed

18 files changed

+848
-377
lines changed

.github/dependabot.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44
version: 2
55
updates:
6-
- package-ecosystem: "gradle" # See documentation for possible values
7-
directory: "jsonschema2pojo-gradle-plugin/example/android"
8-
schedule:
9-
interval: "monthly"
106
- package-ecosystem: "github-actions"
117
directory: "/"
128
schedule:
@@ -15,3 +11,19 @@ updates:
1511
directory: "/"
1612
schedule:
1713
interval: "monthly"
14+
- package-ecosystem: "gradle"
15+
directory: "/jsonschema2pojo-gradle-plugin"
16+
schedule:
17+
interval: "monthly"
18+
- package-ecosystem: "gradle"
19+
directory: "/jsonschema2pojo-gradle-plugin/example/android"
20+
schedule:
21+
interval: "monthly"
22+
- package-ecosystem: "gradle"
23+
directory: "/jsonschema2pojo-gradle-plugin/example/java"
24+
schedule:
25+
interval: "monthly"
26+
- package-ecosystem: "maven"
27+
directory: "/jsonschema2pojo-maven-plugin/example"
28+
schedule:
29+
interval: "monthly"

.github/workflows/android-ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,27 @@ on:
1111

1212
jobs:
1313
buildTest:
14-
name: Build JDK ${{ matrix.java_version }}
14+
name: JDK ${{ matrix.version.java }} | Example Gradle (Android)
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
java_version: [8]
18+
version:
19+
- { java: 8, gradle: '7.6.4' } # AGP Java 8 => Gradle 7.6.4 (MavenPlugin legacy)
1920
steps:
2021
- name: Setup Maven Action
2122
2223
with:
2324
checkout-fetch-depth: 0
24-
java-version: ${{ matrix.java_version }}
25+
java-version: ${{ matrix.version.java }}
2526
java-distribution: temurin
2627
- name: Install Android SDK
2728
uses: malinskiy/action-android/install-sdk@release/0.1.1
2829
- name: Install latest jsonschema2pojo SNAPSHOT
2930
run: ./mvnw -U -B install -DskipTests -Dmaven.javadoc.skip -Dmaven.site.skip
30-
- name: Build projects
31-
run: cd jsonschema2pojo-gradle-plugin/example/android && ./gradlew --info assembleDebug
31+
- name: Setup Gradle
32+
uses: gradle/actions/setup-gradle@v4
33+
with:
34+
gradle-version: ${{ matrix.version.gradle }}
35+
- name: Build Gradle example (Android)
36+
working-directory: jsonschema2pojo-gradle-plugin/example/android
37+
run: gradle --warning-mode all --info assembleDebug
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# Simply open it with Android Studio
1+
# Simply open it with Android Studio
2+
3+
Note: `gradlew` in this example requires JDK 17+.
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip
4-
networkTimeout=10000
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
54
zipStoreBase=GRADLE_USER_HOME
65
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)