Skip to content

Commit c39f223

Browse files
authored
Merge branch 'main' into feature/add-native-image
2 parents 4431515 + f7c2f41 commit c39f223

File tree

14 files changed

+105
-16
lines changed

14 files changed

+105
-16
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: maven
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
open-pull-requests-limit: 10
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Dependabot auto-merge
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.actor == 'dependabot[bot]' }}
12+
steps:
13+
- name: Dependabot metadata
14+
id: metadata
15+
uses: dependabot/fetch-metadata@v1
16+
with:
17+
github-token: "${{ secrets.GITHUB_TOKEN }}"
18+
- name: Approve a PR
19+
run: gh pr review --approve "$PR_URL"
20+
env:
21+
PR_URL: ${{github.event.pull_request.html_url}}
22+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
23+
# Enable for automerge
24+
- name: Enable auto-merge for Dependabot PRs
25+
run: gh pr merge --auto --merge "$PR_URL"
26+
env:
27+
PR_URL: ${{github.event.pull_request.html_url}}
28+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/jdk-ea.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
name: JDK EA
3+
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: '48 0 * * 6'
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ${{ matrix.os }}
13+
permissions:
14+
contents: read
15+
packages: write
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
java_version: [GA,EA]
20+
os: [ubuntu-latest]
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Set up Java
25+
uses: oracle-actions/setup-java@v1
26+
with:
27+
website: jdk.java.net
28+
release: ${{ matrix.java_version }}
29+
- name: Maven cache
30+
uses: actions/cache@v3
31+
env:
32+
cache-name: maven-cache
33+
with:
34+
path:
35+
~/.m2
36+
key: build-${{ env.cache-name }}
37+
- name: Build with Maven
38+
run: mvn clean test
39+

blackbox-test/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<dependency>
3030
<groupId>org.hibernate.validator</groupId>
3131
<artifactId>hibernate-validator</artifactId>
32-
<version>8.0.0.Final</version>
32+
<version>8.0.1.Final</version>
3333
</dependency>
3434

3535
<dependency>
@@ -79,7 +79,7 @@
7979
<dependency>
8080
<groupId>io.avaje</groupId>
8181
<artifactId>avaje-http-api</artifactId>
82-
<version>2.0-RC2</version>
82+
<version>2.0-RC12</version>
8383
</dependency>
8484

8585
<!-- test dependencies -->

blackbox-test/src/main/java/module-info.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
requires jakarta.validation;
66
requires jakarta.inject;
77
provides io.avaje.validation.Validator.GeneratedComponent with example.avaje.valid.GeneratedValidatorComponent;
8+
provides io.avaje.inject.spi.Module with example.avaje.AvajeModule;
89
}

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.avaje</groupId>
77
<artifactId>java11-oss</artifactId>
8-
<version>3.10</version>
8+
<version>3.12</version>
99
</parent>
1010

1111
<groupId>io.avaje</groupId>
@@ -27,7 +27,7 @@
2727
<nexus.staging.autoReleaseAfterClose>true</nexus.staging.autoReleaseAfterClose>
2828
<java.version>17</java.version>
2929
<java.release>17</java.release>
30-
<inject.version>9.4-RC3</inject.version>
30+
<inject.version>9.8</inject.version>
3131
<http.version>2.0-RC2</http.version>
3232
</properties>
3333

validator-generator/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@
5757
<dependency>
5858
<groupId>io.avaje</groupId>
5959
<artifactId>avaje-http-api</artifactId>
60-
<version>2.0-RC5</version>
60+
<version>2.0-RC12</version>
6161
<optional>true</optional>
6262
<scope>provided</scope>
6363
</dependency>
6464
<dependency>
6565
<groupId>io.avaje</groupId>
6666
<artifactId>avaje-inject</artifactId>
67-
<version>9.5</version>
67+
<version>9.8</version>
6868
<optional>true</optional>
6969
<scope>provided</scope>
7070
</dependency>

validator-generator/src/main/java/io/avaje/validation/generator/ValidationProcessor.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
9090
getElements(round, ValidMethodPrism.PRISM_TYPE)
9191
.map(ElementFilter::methodsIn)
9292
.ifPresent(this::writeParamProviderForMethod);
93-
94-
writeAdaptersForImported(
95-
round.getElementsAnnotatedWith(typeElement(ImportValidPojoPrism.PRISM_TYPE)));
93+
getElements(round, ImportValidPojoPrism.PRISM_TYPE).ifPresent(this::writeAdaptersForImported);
9694
initialiseComponent();
9795
cascadeTypes();
9896
writeComponent(round.processingOver());

validator-http-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<dependency>
3636
<groupId>io.avaje</groupId>
3737
<artifactId>avaje-http-api</artifactId>
38-
<version>2.0-RC2</version>
38+
<version>2.0-RC12</version>
3939
<scope>provided</scope>
4040
<optional>true</optional>
4141
</dependency>

validator-http-plugin/src/main/java/io/avaje/validation/http/BeanValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void validate(Object bean, String acceptLanguage, Class<?>... groups) thr
2929
}
3030

3131
@PostConstruct
32-
void setValidator(BeanScope scope) {
32+
public void setValidator(BeanScope scope) {
3333
this.validator = scope.get(Validator.class);
3434
}
3535

0 commit comments

Comments
 (0)