Skip to content

Commit 7dfdec5

Browse files
authored
build: replace TLibs file paths with pinned Maven dependency (#3)
1 parent 705fbee commit 7dfdec5

6 files changed

Lines changed: 29 additions & 6 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
java-version: '21'
2020
cache: maven
2121

22+
- name: Install pinned TLibs in Maven
23+
uses: TF-Minecraft/TLibs/.github/actions/setup@804728d2c0d62d64e3194bcdeffc3708acfbc514
24+
2225
- name: Set dated development version
2326
id: dev
2427
shell: bash

‎.github/workflows/maven-release.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
distribution: temurin
4141
java-version: ${{ inputs.java-version }}
4242

43+
- name: Install pinned TLibs in Maven
44+
uses: TF-Minecraft/TLibs/.github/actions/setup@804728d2c0d62d64e3194bcdeffc3708acfbc514
45+
4346
- name: Validate release version
4447
env:
4548
TAG: ${{ github.ref_name }}

‎.gitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ target/
22

33
# Built plugin jars live on the GitHub releases page, not in the repo
44
*.jar
5-
!libs/*.jar

‎README.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,17 @@
33
Technical documentation is maintained in [TF-Minecraft/docs](https://github.com/TF-Minecraft/docs/tree/main/projects/geiger-counters).
44

55
Use that project index for setup, configuration, architecture, integration and testing guides. This repository contains the source and project-specific assets.
6+
7+
## TLibs build dependency
8+
9+
TLibs is a versioned Maven `provided` dependency. From this repository, prepare
10+
it once with the shared installer, then build as usual:
11+
12+
```sh
13+
python3 ../tlibs/tools/install-dependency.py --pom pom.xml
14+
mvn clean verify
15+
```
16+
17+
See [TLibs dependency setup](https://github.com/TF-Minecraft/TLibs/blob/804728d2c0d62d64e3194bcdeffc3708acfbc514/DEPENDENCIES.md)
18+
for private-source access, offline installation and the pinned binary versions.
19+
Other declared build dependencies still need their usual preparation.

‎libs/TLibs.jar‎

-690 KB
Binary file not shown.

‎pom.xml‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<url>tfminecraft.net</url>
1313

1414
<properties>
15+
<tlibs.version>1.0-legacy-d8062cdca816</tlibs.version>
1516
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1617
<maven.compiler.source>21</maven.compiler.source>
1718
<maven.compiler.target>21</maven.compiler.target>
@@ -59,11 +60,14 @@
5960

6061
<!-- TLibs -->
6162
<dependency>
62-
<groupId>local</groupId>
63-
<artifactId>TLibs</artifactId>
64-
<version>1.0</version>
65-
<scope>system</scope>
66-
<systemPath>${project.basedir}/libs/TLibs.jar</systemPath>
63+
<groupId>me.plugins</groupId>
64+
<artifactId>tlibs</artifactId>
65+
<version>${tlibs.version}</version>
66+
<scope>provided</scope>
67+
<exclusions>
68+
<!-- The server supplies TLibs and its integrations. -->
69+
<exclusion><groupId>*</groupId><artifactId>*</artifactId></exclusion>
70+
</exclusions>
6771
</dependency>
6872
</dependencies>
6973

0 commit comments

Comments
 (0)