File tree Expand file tree Collapse file tree 5 files changed +68
-7
lines changed
src/main/java/com/datastax/oss/quarkus/demo Expand file tree Collapse file tree 5 files changed +68
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : Build & test with native-image
2
+ on :
3
+ pull_request :
4
+ types :
5
+ - closed
6
+ jobs :
7
+ build :
8
+ if : github.event.pull_request.merged == true
9
+ runs-on : ubuntu-latest
10
+ name : Java ${{ matrix.java_version }}
11
+ strategy :
12
+ matrix :
13
+ java_version :
14
+ - ' 11'
15
+ # - '17'
16
+ steps :
17
+ - uses : actions/checkout@v3
18
+ - uses : graalvm/setup-graalvm@v1
19
+ with :
20
+ version : ' 22.2.0'
21
+ java-version : ${{ matrix.java_version }}
22
+ components : ' native-image'
23
+ github-token : ${{ secrets.GB_TOKEN }}
24
+ - name : Build & test with native-image
25
+ run : |
26
+ echo "GRAALVM_HOME: $GRAALVM_HOME"
27
+ echo "JAVA_HOME: $JAVA_HOME"
28
+ java --version
29
+ gu --version
30
+ native-image --version
31
+ mvn verify -Prelease -Dnative -Dgpg.skip
Original file line number Diff line number Diff line change
1
+ name : Build & test
2
+ on : [push, pull_request]
3
+ jobs :
4
+ build :
5
+ runs-on : ubuntu-latest
6
+ name : Java ${{ matrix.java_version }}
7
+ strategy :
8
+ matrix :
9
+ java_version :
10
+ - ' 11'
11
+ - ' 17'
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - uses : actions/setup-java@v3
15
+ with :
16
+ distribution : ' adopt-hotspot'
17
+ java-version : ${{ matrix.java_version }}
18
+ cache : ' maven'
19
+ - name : Build & test
20
+ run : |
21
+ echo "JAVA_HOME: $JAVA_HOME"
22
+ java --version
23
+ mvn verify
Original file line number Diff line number Diff line change 54
54
<pluginManagement >
55
55
<plugins >
56
56
<plugin >
57
- <groupId >com.coveo </groupId >
57
+ <groupId >com.spotify.fmt </groupId >
58
58
<artifactId >fmt-maven-plugin</artifactId >
59
- <version >2.13 </version >
59
+ <version >2.19 </version >
60
60
</plugin >
61
61
<plugin >
62
62
<groupId >au.com.acegi</groupId >
144
144
</pluginManagement >
145
145
<plugins >
146
146
<plugin >
147
- <groupId >com.coveo </groupId >
147
+ <groupId >com.spotify.fmt </groupId >
148
148
<artifactId >fmt-maven-plugin</artifactId >
149
149
<executions >
150
150
<execution >
Original file line number Diff line number Diff line change 32
32
<assertj .version>3.23.1</assertj .version>
33
33
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
34
34
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
35
+ <failsafe .testGroups>!native</failsafe .testGroups>
35
36
</properties >
36
37
<dependencyManagement >
37
38
<dependencies >
113
114
<build >
114
115
<plugins >
115
116
<plugin >
116
- <groupId >com.coveo </groupId >
117
+ <groupId >com.spotify.fmt </groupId >
117
118
<artifactId >fmt-maven-plugin</artifactId >
118
- <version >2.13 </version >
119
+ <version >2.19 </version >
119
120
<executions >
120
121
<execution >
121
122
<goals >
180
181
</execution >
181
182
</executions >
182
183
<configuration >
184
+ <groups >${failsafe.testGroups} </groups >
183
185
<systemProperties >
184
186
<java .util.logging.manager>org.jboss.logmanager.LogManager</java .util.logging.manager>
187
+ <native .image.path>${project.build.directory} /${project.build.finalName} -runner</native .image.path>
185
188
</systemProperties >
186
189
</configuration >
187
190
</plugin >
Original file line number Diff line number Diff line change @@ -40,12 +40,16 @@ public Fruit(String name, String description) {
40
40
this .description = description ;
41
41
}
42
42
43
- /** @return The fruit name. */
43
+ /**
44
+ * @return The fruit name.
45
+ */
44
46
public String getName () {
45
47
return name ;
46
48
}
47
49
48
- /** @return The fruit description. */
50
+ /**
51
+ * @return The fruit description.
52
+ */
49
53
public String getDescription () {
50
54
return description ;
51
55
}
You can’t perform that action at this time.
0 commit comments