mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-01-31 04:21:40 +01:00
fix: version number is now set correctly, was 1.0.0
This commit is contained in:
parent
ca75e526a9
commit
837faa5bcd
17
build.gradle
17
build.gradle
@ -23,6 +23,9 @@ plugins {
|
||||
id 'org.jetbrains.gradle.plugin.idea-ext' version '1.1.7'
|
||||
}
|
||||
|
||||
apply from: 'env-variables.gradle'
|
||||
apply from: 'changelog-util.gradle'
|
||||
|
||||
allprojects {
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'idea'
|
||||
@ -48,13 +51,17 @@ allprojects {
|
||||
sourceCompatibility = JavaVersion.VERSION_16
|
||||
targetCompatibility = JavaVersion.VERSION_16
|
||||
|
||||
ext.branch = rootProject.ext.branch
|
||||
ext.snapshotName = rootProject.ext.snapshotName
|
||||
ext.githubSha = rootProject.ext.githubSha
|
||||
ext.shaRef = rootProject.ext.shaRef
|
||||
ext.isRelease = rootProject.ext.isRelease
|
||||
|
||||
def versionString = (rootProject.file('./version.txt').text + (isRelease ? "" : "-${snapshotName}${shaRef}")).replaceAll('\n', '').replaceAll('\r', '')
|
||||
setVersion(versionString)
|
||||
}
|
||||
|
||||
|
||||
apply from: 'env-variables.gradle'
|
||||
apply from: 'changelog-util.gradle'
|
||||
|
||||
|
||||
println("Branch ${ext.branch}${ext.shaRef} isRelease: '${ext.isRelease}'")
|
||||
println("Snapshot Name: ${ext.snapshotName}")
|
||||
println("Github SHA: ${ext.githubSha}")
|
||||
@ -62,8 +69,6 @@ println("Sha Ref: ${ext.shaRef}")
|
||||
|
||||
archivesBaseName = "Advanced-Portals"
|
||||
group = 'com.sekwah.advancedportals'
|
||||
def versionString = (file('./version.txt').text + (isRelease ? "" : "-${snapshotName}${shaRef}")).replaceAll('\n', '').replaceAll('\r', '')
|
||||
setVersion(versionString)
|
||||
println "Version: ${getVersion()}"
|
||||
|
||||
description = ""
|
||||
|
@ -1,4 +1,4 @@
|
||||
z# https://docs.gradle.org/current/userguide/build_environment.html
|
||||
# https://docs.gradle.org/current/userguide/build_environment.html
|
||||
# Disable with --no-build-cache
|
||||
org.gradle.caching=true
|
||||
version=1.0.0
|
||||
|
Loading…
Reference in New Issue
Block a user