Skip to content

Commit b2cbb55

Browse files
feat : convert to maven build (#1579)
* feat : convert to maven build * switch to maven build * polish pom
1 parent ae5526e commit b2cbb55

File tree

12 files changed

+532
-408
lines changed

12 files changed

+532
-408
lines changed

.github/workflows/boot-strategy-plugin.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@ jobs:
3636
- uses: graalvm/setup-graalvm@v1
3737
with:
3838
distribution: 'graalvm'
39-
java-version: '21'
40-
github-token: ${{ secrets.GITHUB_TOKEN }}
41-
cache: 'gradle'
42-
native-image-job-reports: 'true'
43-
39+
java-version: 21
40+
cache: "maven"
41+
4442
- name: Printing versions
4543
run: |
4644
echo "GRAALVM_HOME: $GRAALVM_HOME"
@@ -53,12 +51,13 @@ jobs:
5351
docker compose up -d
5452
sleep 5
5553
docker ps -a
54+
5655
- name: Build and analyze
57-
run: ./gradlew clean build --info
56+
run: ./mvnw verify
5857

5958
- if: ${{ github.ref == 'refs/heads/main' }}
6059
name: Build container image
61-
run: ./gradlew bootBuildImage --imageName ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/boot-strategy-plugin:${{ env.VERSION }}
60+
run: ./mvnw spring-boot:build-image --imageName ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/boot-strategy-plugin:${{ env.VERSION }}
6261
- if: ${{ github.ref == 'refs/heads/main' }}
6362
name: OCI image vulnerability scanning
6463
uses: anchore/scan-action@v6
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
wrapperVersion=3.3.2
18+
distributionType=only-script
19+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

boot-strategy-plugin/build.gradle

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

boot-strategy-plugin/gradle.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.
-42.6 KB
Binary file not shown.

boot-strategy-plugin/gradle/wrapper/gradle-wrapper.properties

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

boot-strategy-plugin/gradlew

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

0 commit comments

Comments
 (0)