Skip to content

Commit 6dbe079

Browse files
committed
Add jitpack.yml file
To download and install the release artefacts directly instead of building them from source.
1 parent 64c760d commit 6dbe079

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎jitpack.yml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
jdk:
2+
- openjdk17
3+
4+
# Skip building from source (this project needs a Windows/MSVC toolchain
5+
# JitPack's Linux build servers don't have) and instead install the
6+
# prebuilt artifacts already uploaded to the matching GitHub release by
7+
# .github/workflows/release.yml.
8+
install:
9+
- OWNER=${GROUP#com.github.}
10+
- REPO=${ARTIFACT}
11+
- MODULE_GROUP=${GROUP}.${REPO}
12+
- BASE_URL=https://github.com/${OWNER}/${REPO}/releases/download/${VERSION}
13+
14+
- curl -L -f -o com4j.jar ${BASE_URL}/com4j-${VERSION}.jar
15+
- mvn install:install-file -Dfile=com4j.jar -DgroupId=${MODULE_GROUP} -DartifactId=com4j -Dversion=${VERSION} -Dpackaging=jar -DgeneratePom=true
16+
17+
- curl -L -f -o tlbimp.jar ${BASE_URL}/tlbimp-${VERSION}.jar
18+
- mvn install:install-file -Dfile=tlbimp.jar -DgroupId=${MODULE_GROUP} -DartifactId=tlbimp -Dversion=${VERSION} -Dpackaging=jar -DgeneratePom=true
19+
20+
- curl -L -f -o maven-com4j-plugin.jar ${BASE_URL}/maven-com4j-plugin-${VERSION}.jar
21+
- mvn install:install-file -Dfile=maven-com4j-plugin.jar -DgroupId=${MODULE_GROUP} -DartifactId=maven-com4j-plugin -Dversion=${VERSION} -Dpackaging=jar -DgeneratePom=true

0 commit comments

Comments
 (0)