Use Bridge 0.1.1
The current stable release is 0.1.1. Pin that exact version across Bridge modules and the Maven plugin.
GitHub Packages requires authentication. In GitHub Actions use
GITHUB_TOKEN; locally use a token with package read permission and the matching GitHub actor.Maven
<properties>
<bridge.version>0.1.1</bridge.version>
</properties>
<repositories>
<repository><id>bridge-github</id><url>https://maven.pkg.github.com/SupraCraft/Bridge</url></repository>
</repositories>
<pluginRepositories>
<pluginRepository><id>bridge-github</id><url>https://maven.pkg.github.com/SupraCraft/Bridge</url></pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>io.github.supracraft</groupId>
<artifactId>bridge</artifactId>
<version>${bridge.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build><plugins><plugin>
<groupId>io.github.supracraft</groupId>
<artifactId>bridge-plugin</artifactId>
<version>${bridge.version}</version>
<executions><execution><goals><goal>bridge</goal></goals></execution></executions>
</plugin></plugins></build>Stable version lookup
Bash:
BRIDGE_VERSION=$(curl -fsSL https://supracraft.github.io/Bridge/releases/stable.txt)
echo "$BRIDGE_VERSION"PowerShell:
$bridgeVersion = (Invoke-RestMethod 'https://supracraft.github.io/Bridge/releases/stable.txt').Trim()
$bridgeVersionStructured metadata: stable.json.