File tree Expand file tree Collapse file tree 3 files changed +54
-36
lines changed Expand file tree Collapse file tree 3 files changed +54
-36
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,25 @@ jobs:
12
12
run :
13
13
working-directory : sbm-support-rewrite
14
14
steps :
15
- - name : build-sbm-support-rewrite
15
+
16
+ - name : Checkout
16
17
uses : actions/checkout@v3
17
- - name : setup-java
18
+
19
+ - name : Setup Java
18
20
uses : actions/setup-java@v2
19
21
with :
20
22
distribution : ' zulu'
21
23
java-version : 17
22
24
cache : ' maven'
23
- - name : build-project
24
- run : mvn --batch-mode clean install
25
+
26
+ - name : Maven Build
27
+ run : mvn --batch-mode clean package
28
+
29
+ - name : Deploy to Artifactory
30
+ env :
31
+ ARTIFACTORY_USERNAME : ${{ secrets.ARTIFACTORY_USERNAME }}
32
+ ARTIFACTORY_PASSWORD : ${{ secrets.ARTIFACTORY_PASSWORD }}
33
+ GRADLE_ENTERPRISE_CACHE_USERNAME : ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
34
+ GRADLE_ENTERPRISE_CACHE_PASSWORD : ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
35
+ GRADLE_ENTERPRISE_ACCESS_KEY : ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
36
+ run : mvn -B deploy -Pci,artifactory
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 26
26
<maven .version>3.9.1</maven .version>
27
27
<maven-resolver .version>1.9.7</maven-resolver .version>
28
28
<maven-wagon-http .version>3.5.3</maven-wagon-http .version>
29
+ <artifactory-maven-plugin .version>3.5.1</artifactory-maven-plugin .version>
29
30
</properties >
30
31
31
32
<developers >
@@ -415,6 +416,43 @@ limitations under the License.
415
416
</plugins >
416
417
</build >
417
418
<profiles >
419
+ <profile >
420
+ <id >artifactory</id >
421
+ <properties >
422
+ <maven .test.skip>true</maven .test.skip>
423
+ </properties >
424
+ <build >
425
+ <plugins >
426
+ <plugin >
427
+ <groupId >org.jfrog.buildinfo</groupId >
428
+ <artifactId >artifactory-maven-plugin</artifactId >
429
+ <version >${artifactory-maven-plugin.version} </version >
430
+ <inherited >false</inherited >
431
+ <executions >
432
+ <execution >
433
+ <id >deploy-to-artifactory</id >
434
+ <goals >
435
+ <goal >publish</goal >
436
+ </goals >
437
+ <configuration >
438
+ <publisher >
439
+ <contextUrl >https://repo.spring.io</contextUrl >
440
+ <username >${env.ARTIFACTORY_USERNAME} </username >
441
+ <password >${env.ARTIFACTORY_PASSWORD} </password >
442
+ <repoKey >libs-milestone-local</repoKey >
443
+ <snapshotRepoKey >libs-snapshot-local</snapshotRepoKey >
444
+ </publisher >
445
+ <buildInfo >
446
+ <buildName >CI build for ${project.name} ${project.version} </buildName >
447
+ </buildInfo >
448
+ </configuration >
449
+ </execution >
450
+ </executions >
451
+ </plugin >
452
+ </plugins >
453
+ </build >
454
+ </profile >
455
+
418
456
<profile >
419
457
<id >ci</id >
420
458
<build >
You can’t perform that action at this time.
0 commit comments