Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,19 @@ jobs:
- name: Set up settings.xml
run: |
mkdir -p ~/.m2
echo "<settings>
echo '<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>github</id>
<username>${{ secrets.GH_USERNAME }}</username>
<password>${{ secrets.GITHUB_TOKEN }}</password>
<password>${{ secrets.GH_TOKEN }}</password>
</server>
</servers>
</settings>" > ~/.m2/settings.xml

- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
</settings>' > ~/.m2/settings.xml

- name: Build with Maven
run: mvn clean compile
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Clone the repository, and install the dependencies:

## Setup `settings.xml`

Create a new file in this repository at `~/.m2/settings.xml` with the following content:
Create a new file at `~/.m2/settings.xml` with the following content:

```xml
<?xml version="1.0" encoding="UTF-8"?>
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<repositories>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/featurevisor/featurevisor-java</url>
</repository>
</repositories>
Expand All @@ -30,7 +31,7 @@
<dependency>
<groupId>com.featurevisor</groupId>
<artifactId>featurevisor-java</artifactId>
<version>0.0.3</version>
<version>0.0.6</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down