mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2026-06-07 02:47:11 +00:00
Compare commits
6 Commits
d1c5cd043b
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e32ee1cd60 | ||
|
|
1025ae6787 | ||
|
|
94b4bfde8f | ||
|
|
3f1de03514 | ||
|
|
bd7faa9c80 | ||
|
|
2df9ecb4e5 |
41
.forgejo/workflows/renovate.yml
Normal file
41
.forgejo/workflows/renovate.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Renovate
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '@daily'
|
||||
push:
|
||||
branches: [master]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-fat
|
||||
container: ghcr.io/renovatebot/renovate:latest
|
||||
steps:
|
||||
- name: Checkout renovate-config repo
|
||||
run: |
|
||||
git clone https://codeberg.org/hyperdefined/renovate-config.git renovate-config
|
||||
|
||||
- name: Show workspace (debug)
|
||||
run: |
|
||||
echo "WORKSPACE: $GITHUB_WORKSPACE"
|
||||
ls -la "$GITHUB_WORKSPACE"
|
||||
ls -la "$GITHUB_WORKSPACE/renovate-config"
|
||||
test -f "$GITHUB_WORKSPACE/renovate-config/config.js" || (echo "config.js missing" && exit 1)
|
||||
|
||||
- name: Run Renovate
|
||||
run: renovate
|
||||
env:
|
||||
RENOVATE_CONFIG_FILE: renovate-config/config.js
|
||||
LOG_LEVEL: debug
|
||||
RENOVATE_GIT_PRIVATE_KEY: ${{ secrets.WOLF_BOT_KEY }}
|
||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||
GITHUB_COM_TOKEN: ${{ secrets.CODEBERG_PAT }}
|
||||
GIT_AUTHOR_NAME: 'wolf-bot'
|
||||
GIT_AUTHOR_EMAIL: 'wolf@hyper.lol'
|
||||
GIT_COMMITTER_NAME: 'wolf-bot'
|
||||
GIT_COMMITTER_EMAIL: 'wolf@hyper.lol'
|
||||
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@@ -1 +0,0 @@
|
||||
buy_me_a_coffee: hyperdefined
|
||||
8
.github/dependabot.yml
vendored
8
.github/dependabot.yml
vendored
@@ -1,8 +0,0 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: gradle
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: daily
|
||||
time: "11:00"
|
||||
open-pull-requests-limit: 10
|
||||
@@ -15,8 +15,8 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
compileOnly("io.papermc.paper:paper-api:26.1.1.build.+")
|
||||
compileOnly("dev.rosewood:rosestacker:1.5.39")
|
||||
compileOnly("com.github.hyperdefined:hyperlib:1.0.14:all")
|
||||
compileOnly("dev.rosewood:rosestacker:1.5.40")
|
||||
compileOnly("org.codeber.hyperdefined:hyperlib:1.0.15:all")
|
||||
}
|
||||
|
||||
group = "lol.hyper"
|
||||
|
||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,7 +1,9 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
|
||||
networkTimeout=10000
|
||||
retries=0
|
||||
retryBackOffMs=500
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
||||
2
gradlew
vendored
2
gradlew
vendored
@@ -57,7 +57,7 @@
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/2d6327017519d23b96af35865dc997fcb544fb40/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
|
||||
31
gradlew.bat
vendored
31
gradlew.bat
vendored
@@ -23,8 +23,8 @@
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
@rem Set local scope for the variables, and ensure extensions are enabled
|
||||
setlocal EnableExtensions
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%"=="" set DIRNAME=.
|
||||
@@ -51,7 +51,7 @@ echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
"%COMSPEC%" /c exit 1
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
@@ -65,7 +65,7 @@ echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
"%COMSPEC%" /c exit 1
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
@@ -73,21 +73,10 @@ goto fail
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
|
||||
@rem which allows us to clear the local environment before executing the java command
|
||||
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
set EXIT_CODE=%ERRORLEVEL%
|
||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||
exit /b %EXIT_CODE%
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
:exitWithErrorLevel
|
||||
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
|
||||
"%COMSPEC%" /c exit %ERRORLEVEL%
|
||||
|
||||
6
renovate.json
Normal file
6
renovate.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"enabled": true,
|
||||
"extends": ["config:base"],
|
||||
"osvVulnerabilityAlerts": true
|
||||
}
|
||||
@@ -161,7 +161,7 @@ public final class ToolStats extends JavaPlugin {
|
||||
registerCommand("toolstats", commandToolStats);
|
||||
|
||||
HyperUpdater updater = new HyperUpdater(hyperLib);
|
||||
updater.setGitHub("hyperdefined", "ToolStats");
|
||||
updater.setRepository("hyperdefined", "ToolStats");
|
||||
updater.setModrinth("oBZj9E15");
|
||||
updater.setHangar("ToolStats", "paper");
|
||||
updater.check();
|
||||
|
||||
@@ -30,7 +30,7 @@ public class ToolStatsLoader implements PluginLoader {
|
||||
MavenLibraryResolver resolver = new MavenLibraryResolver();
|
||||
|
||||
resolver.addRepository(new RemoteRepository.Builder("jitpack", "default", "https://jitpack.io").build());
|
||||
resolver.addDependency(new Dependency(new DefaultArtifact("com.github.hyperdefined:hyperlib:jar:all:1.0.14"), null));
|
||||
resolver.addDependency(new Dependency(new DefaultArtifact("org.codeberg.hyperdefined:hyperlib:jar:all:1.0.15"), null));
|
||||
|
||||
classpathBuilder.addLibrary(resolver);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user