mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-21 11:55:13 +01:00
Setup dependabot, cleanup build files
This commit is contained in:
parent
9111d79012
commit
d3561611d6
10
.github/dependabot.yml
vendored
Normal file
10
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "gradle"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -8,7 +8,7 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: gradle/wrapper-validation-action@v3
|
||||
uses: gradle/actions/wrapper-validation@v4
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
|
@ -1,4 +0,0 @@
|
||||
- Updated Via* projects to support 1.20.5
|
||||
- Fixed version in 1.12 mcmod.info file
|
||||
- Fixed connecting issues and other desyncs
|
||||
- Fixed pre netty versions not working on online servers
|
45
build.gradle
45
build.gradle
@ -11,7 +11,6 @@ buildscript {
|
||||
classpath "com.github.johnrengelman:shadow:7.1.2"
|
||||
classpath "net.minecraftforge.gradle:ForgeGradle:6.+"
|
||||
classpath "org.spongepowered:mixingradle:0.7-SNAPSHOT"
|
||||
classpath "me.modmuss50:mod-publish-plugin:0.5.1"
|
||||
classpath "xyz.wagyourtail.jvmdowngrader:gradle-plugin:0.6.1"
|
||||
}
|
||||
}
|
||||
@ -19,7 +18,6 @@ buildscript {
|
||||
allprojects {
|
||||
apply plugin: "java-library"
|
||||
apply plugin: "com.github.johnrengelman.shadow"
|
||||
apply plugin: "me.modmuss50.mod-publish-plugin"
|
||||
apply plugin: "xyz.wagyourtail.jvmdowngrader"
|
||||
|
||||
java {
|
||||
@ -64,19 +62,17 @@ allprojects {
|
||||
dependencies {
|
||||
compileOnly "io.netty:netty-all:4.0.20.Final"
|
||||
|
||||
library "com.viaversion:viaversion-common:${project.viaversion_version}"
|
||||
library "com.viaversion:viabackwards-common:${project.viabackwards_version}"
|
||||
library "com.viaversion:viarewind-common:${project.viarewind_version}"
|
||||
library ("net.raphimc:ViaLegacy:${project.vialegacy_version}") {
|
||||
library "com.viaversion:viaversion-common:5.0.3-SNAPSHOT"
|
||||
library "com.viaversion:viabackwards-common:5.0.3-SNAPSHOT"
|
||||
library "com.viaversion:viarewind-common:4.0.2"
|
||||
library ("net.raphimc:ViaLegacy:3.0.3-SNAPSHOT") {
|
||||
exclude group: "com.google.code.gson", module: "gson"
|
||||
}
|
||||
library "net.raphimc:viaaprilfools-common:${project.viaaprilfools_version}"
|
||||
library ("net.raphimc:ViaLoader:${project.vialoader_version}") {
|
||||
library "net.raphimc:viaaprilfools-common:3.0.2-SNAPSHOT"
|
||||
library ("net.raphimc:ViaLoader:3.0.3-SNAPSHOT") {
|
||||
exclude group: "com.google.guava"
|
||||
exclude group: "org.slf4j"
|
||||
}
|
||||
|
||||
library "org.yaml:snakeyaml:${project.snake_yml_version}"
|
||||
}
|
||||
}
|
||||
|
||||
@ -85,9 +81,11 @@ subprojects {
|
||||
apply plugin: "org.spongepowered.mixin"
|
||||
|
||||
// Define the jar output attributes for all platforms
|
||||
archivesBaseName = project.maven_name
|
||||
version = maven_version
|
||||
group = maven_group
|
||||
base {
|
||||
group = project.maven_group
|
||||
archivesName = project.maven_name
|
||||
version = project.maven_version
|
||||
}
|
||||
|
||||
// Used to execute code only for specific submodules
|
||||
def versionId = Integer.parseInt(project.mc_version.replace(".", ""))
|
||||
@ -192,27 +190,6 @@ subprojects {
|
||||
archiveFileName = jar.archiveFileName
|
||||
}
|
||||
|
||||
publishMods {
|
||||
file = shadowJar.archiveFile
|
||||
type = STABLE
|
||||
displayName = rootProject.name + ' ' + project.version
|
||||
version = project.version + "+" + project.mc_version
|
||||
modLoaders.add("forge")
|
||||
changelog = file("../CHANGELOG.md").text
|
||||
dryRun = rootProject.maven_version.contains("SNAPSHOT")
|
||||
|
||||
curseforge {
|
||||
accessToken = providers.gradleProperty("curseforge.publishing_token")
|
||||
projectId = "418933"
|
||||
minecraftVersions.addAll(project.mc_version.split(','))
|
||||
}
|
||||
modrinth {
|
||||
accessToken = providers.gradleProperty("modrinth.publishing_token")
|
||||
projectId = "Z6se2s8f"
|
||||
minecraftVersions.addAll(project.mc_version.split(','))
|
||||
}
|
||||
}
|
||||
|
||||
reobf {
|
||||
shadowJar {}
|
||||
}
|
||||
|
@ -3,19 +3,9 @@ org.gradle.jvmargs=-Xmx3G -XX:+UseG1GC
|
||||
org.gradle.daemon=false
|
||||
|
||||
# Project Details
|
||||
maven_version=3.7.1-SNAPSHOT
|
||||
maven_group=de.florianmichael
|
||||
maven_version=3.7.1-SNAPSHOT
|
||||
|
||||
# ViaVersion
|
||||
viaversion_version=5.0.2
|
||||
viabackwards_version=5.0.3-SNAPSHOT
|
||||
viarewind_version=4.0.2
|
||||
vialegacy_version=3.0.3-SNAPSHOT
|
||||
viaaprilfools_version=3.0.2-SNAPSHOT
|
||||
vialoader_version=3.0.3-SNAPSHOT
|
||||
|
||||
snake_yml_version=2.2
|
||||
|
||||
# Misc Libraries
|
||||
# Should be ignored by dependabot
|
||||
slf4j_version=2.0.7
|
||||
mixin_version=0.8.3
|
||||
|
Loading…
Reference in New Issue
Block a user