Skip to content

Commit 8473a79

Browse files
committed
feat: Init
1 parent 81dc7b2 commit 8473a79

17 files changed

+678
-364
lines changed

.github/workflows/build.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ jobs:
5353
echo "STATUS=release" >> $GITHUB_ENV
5454
fi
5555
56-
- name: Publish to Xpdustry
57-
if: ${{ env.STATUS == 'release' || startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/dev') }}
58-
run: ./gradlew publish
59-
env:
60-
ORG_GRADLE_PROJECT_xpdustryUsername: "${{ secrets.XPDUSTRY_MAVEN_USERNAME }}"
61-
ORG_GRADLE_PROJECT_xpdustryPassword: "${{ secrets.XPDUSTRY_MAVEN_PASSWORD }}"
62-
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.XPDUSTRY_MAVEN_SIGNING_KEY }}"
63-
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.XPDUSTRY_MAVEN_SIGNING_PASSWORD }}"
56+
# - name: Publish to Xpdustry
57+
# if: ${{ env.STATUS == 'release' || startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/dev') }}
58+
# run: ./gradlew publish
59+
# env:
60+
# ORG_GRADLE_PROJECT_xpdustryUsername: "${{ secrets.XPDUSTRY_MAVEN_USERNAME }}"
61+
# ORG_GRADLE_PROJECT_xpdustryPassword: "${{ secrets.XPDUSTRY_MAVEN_PASSWORD }}"
62+
# ORG_GRADLE_PROJECT_signingKey: "${{ secrets.XPDUSTRY_MAVEN_SIGNING_KEY }}"
63+
# ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.XPDUSTRY_MAVEN_SIGNING_PASSWORD }}"
6464

6565
- name: Upload Artifacts to Release
6666
if: ${{ env.STATUS == 'release' && github.event_name == 'release' }}

CHANGELOG.md

-143
Original file line numberDiff line numberDiff line change
@@ -4,146 +4,3 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/),
66
and this project adheres to [Semantic Versioning](http://semver.org/).
7-
8-
## v3.5.0 - 2023-11-07
9-
10-
### Changes
11-
12-
- Complete refresh of the template to be up to date.
13-
- Made the README simpler.
14-
- Moved all configuration inside buildscript instead of being split into several files.
15-
16-
## v3.4.0 - 2023-01-07
17-
18-
### Changes
19-
20-
- Better README.
21-
22-
### Chores
23-
24-
- Bump dependencies.
25-
26-
## v3.3.0 - 2022-11-08
27-
28-
### Changes
29-
30-
- Switched the nullness annotations from jetbrains to checker (checker is better).
31-
32-
### Features
33-
34-
- Added option to enable/disable `-SNAPSHOT` suffix.
35-
36-
### Fixes
37-
38-
- Fixes a bug where java 8 is set as the project version.
39-
40-
### Chores
41-
42-
- Bumped workflow tasks.
43-
- Reworked the `README.md` to be simpler.
44-
45-
## v3.2.0 - 2022-10-08
46-
47-
### 💊 Bugfixes
48-
49-
- removed initial sha lookup in release-drafter
50-
51-
### 🧹 Chore
52-
53-
- bump dependencies
54-
- fix ci formatting
55-
- fix doc changelog
56-
57-
## v3.1.0 - 2022-05-23
58-
59-
### 🚀 New Features
60-
61-
- Release drafter is now a manual workflow
62-
63-
## v3.0.4 - 2022-05-23
64-
65-
### Changes
66-
67-
- Got rid of release-please...
68-
69-
### 💊 Bugfixes
70-
71-
- fixed missing status task in build workflow
72-
73-
## [v3.0.3](https://github.com/Xpdustry/TemplatePlugin/compare/v3.0.3-SNAPSHOT...v3.0.3) - 2022-05-22
74-
75-
### Miscellaneous Chores
76-
77-
- release 3.0.3 ([ef49fd2](https://github.com/Xpdustry/TemplatePlugin/commit/ef49fd26dc65b14449a1ca58985e8da2aaa43f62))
78-
79-
## [v3.0.2](https://github.com/Xpdustry/TemplatePlugin/compare/v3.0.1...v3.0.2) - 2022-05-21
80-
81-
### Bug Fixes
82-
83-
- fix broken release ([b6581a4](https://github.com/Xpdustry/TemplatePlugin/commit/b6581a477826d19cf62dbe632c82d3f3d20edb64))
84-
85-
## [v3.0.1](https://github.com/Xpdustry/TemplatePlugin/compare/v3.0.0...v3.0.1) - 2022-05-21
86-
87-
### Bug Fixes
88-
89-
- Added forgotten line for mindustry compile version ([e03bffc](https://github.com/Xpdustry/TemplatePlugin/commit/e03bffcb936c61fef663954a99eb1a9f696b3315))
90-
91-
## [v3.0.0](https://github.com/Xpdustry/TemplatePlugin/compare/v2.6.1...v3.0.0) - 2022-05-21
92-
93-
### ⚠ BREAKING CHANGES
94-
95-
- Move to toxopid 2.0.0
96-
97-
### Features
98-
99-
- Move to toxopid 2.0.0 ([9208e3c](https://github.com/Xpdustry/TemplatePlugin/commit/9208e3ce21b76437dccd65e510085f13c6540bbb))
100-
101-
### Bug Fixes
102-
103-
- pls release-please, work ([ed558ee](https://github.com/Xpdustry/TemplatePlugin/commit/ed558ee00ed440400be6d1b1bf32cb7af0e5f203))
104-
- remove comment in release-please.yml ([1fb8259](https://github.com/Xpdustry/TemplatePlugin/commit/1fb8259d931111371eb0f1c8f3915e97469456e1))
105-
- updated license header ([fde8c59](https://github.com/Xpdustry/TemplatePlugin/commit/fde8c594acac66768d86cf372cda8ab604b13823))
106-
107-
## [v2.6.1](https://github.com/Xpdustry/TemplatePlugin/compare/v2.6.0...v2.6.1) - 2022-05-19
108-
109-
### Bug Fixes
110-
111-
- Update changelog to follow release-please style ([9fdd102](https://github.com/Xpdustry/TemplatePlugin/commit/9fdd102941d30f3c386d6612d23ed92d3adfd968))
112-
113-
## [v2.6.0](https://github.com/Xpdustry/TemplatePlugin/compare/v2.5.1...v2.6.0) - 2022-05-19
114-
115-
### Features
116-
117-
- Test release please ([3bb5d54](https://github.com/Xpdustry/TemplatePlugin/commit/3bb5d542dc8ba77583a837b2e21b89ea4f94a658))
118-
119-
### Bug Fixes
120-
121-
- fix branch name in release-please ([ba2f978](https://github.com/Xpdustry/TemplatePlugin/commit/ba2f978c33bac4993f316eb58f062f8a18c007fa))
122-
123-
## [v2.5.1](https://github.com/Xpdustry/TemplatePlugin/compare/v2.5.0...v2.5.1) - 2022-05-17
124-
125-
### Added
126-
127-
- Information about shading in the `README.md`.
128-
129-
### Fixed
130-
131-
- Typos in the `README.md`.
132-
133-
## [v2.5.0](https://github.com/Xpdustry/TemplatePlugin/compare/v2.4.0...v2.5.0) - 2022-05-17
134-
135-
### Added
136-
137-
- Added automatic shading task.
138-
- Added `indra.license-header` for license headers in files.
139-
140-
### Changed
141-
142-
- Updated `README.md` to be more explicit.
143-
- A little bit of formatting :^).
144-
145-
## v2.4.0 - 2022-05-14
146-
147-
### Changed
148-
149-
- Improved the usability of the Template.

HEADER.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
2-
* This file is part of TemplatePlugin. A template plugin for Mindustry to get you started quickly.
2+
* This file is part of SLF4MD. A set of plugins providing various SLF4J implementations for Mindustry.
33
*
44
* MIT License
55
*
6-
* Copyright (c) 2024 Xpdustry
6+
* Copyright (c) 2024 xpdustry
77
*
88
* Permission is hereby granted, free of charge, to any person obtaining a copy
99
* of this software and associated documentation files (the "Software"), to deal

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Xpdustry
3+
Copyright (c) 2024 xpdustry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+32-38
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,56 @@
1-
# template-plugin
1+
# slf4md
22

33
[![Build status](https://github.com/xpdustry/template-plugin/actions/workflows/build.yml/badge.svg?branch=master&event=push)](https://github.com/xpdustry/template-plugin/actions/workflows/build.yml)
4-
[![Mindustry 7.0 ](https://img.shields.io/badge/Mindustry-7.0-ffd37f)](https://github.com/Anuken/Mindustry/releases)
4+
[![Mindustry 7.0](https://img.shields.io/badge/Mindustry-7.0-ffd37f)](https://github.com/Anuken/Mindustry/releases)
55

6-
Get your Mindustry plugin started with this awesome template repository, it features:
6+
## Description
77

8-
- GitHub actions for easier testing (the plugin is built for each commit and pull request).
8+
A set of plugins providing various SLF4J implementations for Mindustry.
99

10-
- [Toxopid](https://plugins.gradle.org/plugin/com.xpdustry.toxopid) Gradle plugin for faster Mindustry plugin
11-
development and testing.
10+
## Installation
1211

13-
- [Indra](https://plugins.gradle.org/plugin/net.kyori.indra) Gradle plugin for easier java development.
12+
The plugins require:
1413

15-
- Bundling and automatic relocation (isolating your dependencies to avoid class loading issues) with the
16-
[Shadow](https://imperceptiblethoughts.com/shadow/) gradle plugin.
14+
- Java 17 or above.
1715

18-
- Unused classes are removed from the final jar.
16+
- Mindustry v146 or above.
1917

20-
- A `CHANGELOG.md` file that will be updated automatically when you create a release on GitHub.
18+
## Usage
2119

22-
## How to use
20+
### For server owners
2321

24-
1. Update the `build.gradle.kts`, `settings.gradle.kts` and `plugin.json` files with your plugin data.
22+
If one of your plugins requires `slf4md`, you don't have to do anything special.
23+
Simply choose the implementation that suits your needs and install it on your server (in the `config/mods` directory):
2524

26-
2. Clear `CHANGELOG.md` and update `LICENSE.md` with your name (or completely changing the license if needed)
25+
- `slf4md-simple`: A logger that redirects to arc logger (`arc.util.Log`). No fancy stuff or invasive changes.
2726

28-
3. Start **K O D I N G**.
27+
### For plugin developers
2928

30-
4. When ready for a release, push your last changes with the release version. Then create a release on GitHub. Once published, the plugin jar will be built and added to the release and the `CHANGELOG.md` file will be updated with the release notes of the GitHub release.
29+
You only need to "compileOnly" `slf4j-api` in your `build.gradle`:
3130

32-
## Installation
31+
```gradle
32+
repositories {
33+
mavenCentral()
34+
}
3335
34-
This plugin requires :
36+
dependencies {
37+
compileOnly("org.slf4j:slf4j-api:2.0.13")
38+
}
39+
```
3540

36-
- Java 17 or above.
41+
and add `slf4md` in the dependencies of your `plugin.json`:
3742

38-
- Mindustry v146 or above.
43+
```json
44+
{
45+
"dependencies": ["slf4md"]
46+
}
47+
```
3948

4049
## Building
4150

42-
- `./gradlew shadowJar` to compile the plugin into a usable jar (will be located
51+
- `./gradlew :slf4md-{module}:shadowJar` to compile the plugin into a usable jar (will be located
4352
at `builds/libs/(plugin-name).jar`).
4453

45-
- `./gradlew runMindustryServer` to run the plugin in a local Mindustry server.
46-
47-
- `./gradlew runMindustryDesktop` to start a local Mindustry client that will let you test the plugin.
54+
- `./gradlew :slf4md-{module}:runMindustryServer` to run the plugin in a local Mindustry server.
4855

49-
## Note
50-
51-
If you are from Xpdustry, before doing anything, run this in your terminal to set the `xpdustry-master` branch as master :
52-
53-
```bash
54-
git fetch origin xpdustry-master
55-
git checkout xpdustry-master
56-
git branch -m master old-master
57-
git branch -m xpdustry-master master
58-
git branch -rD origin/master
59-
git push origin master -f
60-
git branch -D old-master
61-
git push origin --delete xpdustry-master
62-
```
56+
- `./gradlew :slf4md-{module}:runMindustryDesktop` to start a local Mindustry client that will let you test the plugin.

0 commit comments

Comments
 (0)