auto versioning!

This commit is contained in:
alterNERDtive 2023-06-20 10:54:37 +02:00
parent 2d9e0ad926
commit 976880f42e
Signed by: alterNERDtive
GPG key ID: 547787A4FE6533F1
2 changed files with 20 additions and 2 deletions

3
.gitignore vendored
View file

@ -26,4 +26,5 @@ forge*changelog.txt
.vscode .vscode
libs libs
version.properties

View file

@ -3,11 +3,13 @@ buildscript {
// These repositories are only for Gradle plugins, put any other repositories in the repository block further below // These repositories are only for Gradle plugins, put any other repositories in the repository block further below
maven { url = 'https://maven.minecraftforge.net' } maven { url = 'https://maven.minecraftforge.net' }
maven { url = 'https://repo.spongepowered.org/maven' } maven { url = 'https://repo.spongepowered.org/maven' }
maven { url = "https://plugins.gradle.org/m2/" }
mavenCentral() mavenCentral()
} }
dependencies { dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT' classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
classpath "eu.davidea:grabver:2.0.2"
} }
} }
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
@ -17,8 +19,23 @@ plugins {
} }
apply plugin: 'net.minecraftforge.gradle' apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.spongepowered.mixin' apply plugin: 'org.spongepowered.mixin'
apply plugin: 'eu.davidea.grabver'
version = '1.18.2-3.10.1.1+devel' versioning {
// Required (number)
major 3
minor 10
// Optional, force custom patch (number)
patch 1
// Optional (any string)
//preRelease "RC1"
// Optional, custom task name to trigger the increase of the version
//incrementOn "<task-name>"
// Optional, custom task name for which you want to save the versioning file
//saveOn "<task-name>"
}
version = '1.18.2-' + versioning.name + '.' + versioning.build
group = 'tv.alternerd.vault_tweaks' // http://maven.apache.org/guides/mini/guide-naming-conventions.html group = 'tv.alternerd.vault_tweaks' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'the_vault-tweaks' archivesBaseName = 'the_vault-tweaks'