Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit 2a37d3a

Browse files
committed
Fix Build
1 parent 505e700 commit 2a37d3a

File tree

30 files changed

+130
-246
lines changed

30 files changed

+130
-246
lines changed

.github/project.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
name: SmallRye Async API
2-
# This is not ready to release yet, unless the the Release Plugin and GPG Plugin are configured properly.
3-
# The Parent POM (>18) requires a fix for the Release, or the plugins need to be configured directly.
42
release:
53
current-version: 1.0.0-SNAPSHOT
64
next-version: 1.0.0-SNAPSHOT
-316 Bytes
Binary file not shown.
-6.34 KB
Binary file not shown.

.github/workflows/build.yml

Lines changed: 54 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: SmallRye Build
22

33
on:
44
push:
5-
branches:
5+
branches:
66
- main
77
paths-ignore:
88
- '.gitignore'
@@ -23,35 +23,77 @@ jobs:
2323
runs-on: ubuntu-latest
2424
strategy:
2525
matrix:
26-
java: [8, 11, 17]
26+
java: [11, 17, 21]
2727
name: build with jdk ${{matrix.java}}
2828

2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v4
3131
name: checkout
3232

33-
- uses: actions/setup-java@v1
33+
- uses: actions/setup-java@v4
3434
name: set up jdk ${{matrix.java}}
3535
with:
36+
distribution: 'temurin'
3637
java-version: ${{matrix.java}}
38+
cache: 'maven'
39+
cache-dependency-path: '**/pom.xml'
40+
41+
- name: build with maven
42+
run: mvn -B formatter:validate verify --file pom.xml
43+
44+
- uses: actions/upload-artifact@v4
45+
name: tck-report
46+
with:
47+
name: tck-report-java-${{matrix.java}}
48+
path: tck/target/surefire-reports
49+
50+
build-windows:
51+
runs-on: windows-latest
52+
strategy:
53+
matrix:
54+
java: [11, 17, 21]
55+
name: build with jdk ${{matrix.java}} windows
56+
57+
steps:
58+
- uses: actions/checkout@v4
59+
name: checkout
60+
61+
- uses: actions/setup-java@v4
62+
name: set up jdk ${{matrix.java}}
63+
with:
64+
distribution: 'temurin'
65+
java-version: ${{matrix.java}}
66+
cache: 'maven'
67+
cache-dependency-path: '**/pom.xml'
3768

3869
- name: build with maven
3970
run: mvn -B formatter:validate verify --file pom.xml
4071

4172
quality:
4273
needs: [build]
43-
if: github.event_name == 'push' && startsWith('smallrye', github.repository)
74+
if: github.event_name == 'push' && github.repository_owner == 'smallrye'
4475
runs-on: ubuntu-latest
4576
name: quality
4677

4778
steps:
48-
- uses: actions/checkout@v2
49-
- uses: actions/setup-java@v1
79+
- uses: actions/checkout@v4
80+
with:
81+
fetch-depth: 0
82+
83+
- uses: actions/setup-java@v4
84+
with:
85+
distribution: 'temurin'
86+
java-version: 11
87+
cache: 'maven'
88+
cache-dependency-path: '**/pom.xml'
89+
90+
- name: build with docs and coverage
91+
run: mvn verify -Pcoverage javadoc:javadoc
92+
93+
- uses: actions/setup-java@v4
5094
with:
51-
java-version: 8
95+
distribution: 'temurin'
96+
java-version: 17
5297

5398
- name: sonar
54-
env:
55-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
56-
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
57-
run: mvn -B verify --file pom.xml -Pcoverage javadoc:javadoc sonar:sonar -Dsonar.projectKey=smallrye_smallrye-async-api -Dsonar.login=$SONAR_TOKEN
99+
run: mvn sonar:sonar -Psonar -Dsonar.token=${{secrets.SONAR_TOKEN}}

.github/workflows/pre-release.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

README.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
:ci: https://github.com/smallrye/smallrye-async-api/actions?query=workflow%3A%22SmallRye+Build%22
2-
:sonar: https://sonarcloud.io/dashboard?id=smallrye_smallrye-async-api
1+
:ci: https://github.com/smallrye/smallrye-async-api/actions/workflows/build.yml
2+
:sonar: https://sonarcloud.io/dashboard?id=io.smallrye%3Asmallrye-async-api
33

4-
image:https://github.com/smallrye/smallrye-async-api/workflows/SmallRye%20Build/badge.svg?branch=main[link={ci}]
5-
image:https://sonarcloud.io/api/project_badges/measure?project=smallrye_smallrye-async-api&metric=alert_status["Quality Gate Status", link={sonar}]
4+
image:https://github.com/smallrye/smallrye-async-api/actions/workflows/build.yml/badge.svg?branch=main[link={ci}]
5+
image:https://sonarcloud.io/api/project_badges/measure?project=io.smallrye%3Asmallrye-async-api&metric=alert_status["Quality Gate Status", link={sonar}]
66
image:https://img.shields.io/github/license/smallrye/smallrye-async-api.svg["License", link="http://www.apache.org/licenses/LICENSE-2.0"]
77

88
= SmallRye AsyncAPI

implementation/pom.xml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -74,30 +74,6 @@
7474
<artifactId>jakarta.validation-api</artifactId>
7575
<scope>provided</scope>
7676
</dependency>
77-
78-
<!-- Test Only Dependencies -->
79-
<dependency>
80-
<groupId>junit</groupId>
81-
<artifactId>junit</artifactId>
82-
<scope>test</scope>
83-
</dependency>
84-
<dependency>
85-
<groupId>org.skyscreamer</groupId>
86-
<artifactId>jsonassert</artifactId>
87-
<scope>test</scope>
88-
</dependency>
89-
<dependency>
90-
<groupId>jakarta.json.bind</groupId>
91-
<artifactId>jakarta.json.bind-api</artifactId>
92-
<scope>test</scope>
93-
</dependency>
94-
<dependency>
95-
<groupId>org.jboss.shrinkwrap.resolver</groupId>
96-
<artifactId>shrinkwrap-resolver-depchain</artifactId>
97-
<scope>test</scope>
98-
<type>pom</type>
99-
</dependency>
100-
10177
</dependencies>
10278

10379
<build>
@@ -106,17 +82,8 @@
10682
<groupId>org.apache.maven.plugins</groupId>
10783
<artifactId>maven-surefire-plugin</artifactId>
10884
<configuration>
109-
<environmentVariables>
110-
<!-- Used by EnvConfigSourceTestCase -->
111-
<SMALLRYE_MP_CONFIG_PROP>1234</SMALLRYE_MP_CONFIG_PROP>
112-
</environmentVariables>
11385
<redirectTestOutputToFile>true</redirectTestOutputToFile>
11486
<enableAssertions>true</enableAssertions>
115-
<argLine>-Xmx512m</argLine>
116-
<includes>
117-
<include>**/*TestCase.java</include>
118-
</includes>
119-
<forkMode>once</forkMode>
12087
</configuration>
12188
</plugin>
12289
</plugins>

implementation/src/main/java/io/smallrye/asyncapi/api/AsyncApiConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
/**
2222
* Accessor to AsyncAPI configuration options.
23-
*
23+
*
2424
* mp.asyncapi.model.reader : Configuration property to specify the fully qualified name of the AAIModelReader implementation.
2525
* mp.asyncapi.filter : Configuration property to specify the fully qualified name of the AAIFilter implementation.
2626
* mp.asyncapi.scan.disable : Configuration property to disable annotation scanning. Default value is false.

implementation/src/main/java/io/smallrye/asyncapi/api/AsyncApiConfigImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/**
2727
* Implementation of the {@link AsyncApiConfig} interface that gets config information from a
2828
* standard MP Config object.
29-
*
29+
*
3030
3131
*/
3232
public class AsyncApiConfigImpl implements AsyncApiConfig {
@@ -48,7 +48,7 @@ public class AsyncApiConfigImpl implements AsyncApiConfig {
4848

4949
/**
5050
* Constructor.
51-
*
51+
*
5252
* @param config MicroProfile Config instance
5353
*/
5454
public AsyncApiConfigImpl(Config config) {

0 commit comments

Comments
 (0)