File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Java Semantic Kernel
2+
3+ # Triggers the workflow on merging a PR
4+ on :
5+ pull_request :
6+ types :
7+ - closed
8+ branches : [ "main" ]
9+ paths :
10+ - ' java/**'
11+
12+ permissions :
13+ contents : read
14+
15+ jobs :
16+ if_merged :
17+ if : github.event.pull_request.merged == true
18+ runs-on : ubuntu-latest
19+ - name : Checkout
20+ uses : actions/checkout@v4
21+
22+ # Sets up the specified JDK version from the matrix
23+ - uses : actions/setup-java@v4
24+ with :
25+ java-version : 8
26+ distribution : microsoft
27+ cache : maven
28+
29+ # Builds the project with Maven using the matrix JDK version
30+ - name : Build with Maven
31+ run : ./mvnw -B -DskipTests -Pcompile-jdk8 -P-compile-jdk17 -Pgithub-packages clean deploy --file pom.xml
32+ working-directory : java
33+ env :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22
3- <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
45
56 <modelVersion >4.0.0</modelVersion >
67
663664 <licenseHeader >
664665 <content >// Copyright (c) Microsoft. All rights reserved.</content >
665666 </licenseHeader >
666- <toggleOffOn />
667+ <toggleOffOn />
667668 </java >
668669 </configuration >
669670 </plugin >
762763 <name >${releaseRepoName} </name >
763764 </repository >
764765 </distributionManagement >
765-
766+ </profile >
767+ <profile >
768+ <id >github-packages</id >
769+ <activation >
770+ <activeByDefault >false</activeByDefault >
771+ </activation >
772+ <distributionManagement >
773+ <repository >
774+ <id >github</id >
775+ <name >GitHub Packages</name >
776+ <url >https://maven.pkg.github.com/microsoft/semantic-kernel-java</url >
777+ </repository >
778+ </distributionManagement >
779+ <repositories >
780+ <repository >
781+ <id >central</id >
782+ <url >https://repo1.maven.org/maven2</url >
783+ </repository >
784+ <repository >
785+ <id >github</id >
786+ <name >GitHub Packages</name >
787+ <url >https://maven.pkg.github.com/microsoft/semantic-kernel-java</url >
788+ <snapshots >
789+ <enabled >true</enabled >
790+ </snapshots >
791+ </repository >
792+ </repositories >
766793 </profile >
767794 </profiles >
768795
You can’t perform that action at this time.
0 commit comments