Skip to content

Commit c1265a0

Browse files
committed
Jitpack is funny
1 parent a49bfd9 commit c1265a0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

build.gradle

+6-4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ configurations {
1414
testImplementation.extendsFrom testShadow
1515
}
1616

17+
def project_version = "3.0-base"
18+
1719
allprojects {
1820
repositories {
1921
mavenCentral()
@@ -328,7 +330,7 @@ tasks.register('JUnit') {
328330
task githubResources(type: ProcessResources) {
329331
from 'src/main/resources', {
330332
include '**'
331-
version = project.property('version')
333+
project_version = project.property('version')
332334
def channel = 'stable'
333335
if (version.contains('pre'))
334336
channel = 'prerelease'
@@ -362,7 +364,7 @@ task githubRelease(type: ShadowJar) {
362364
task spigotResources(type: ProcessResources) {
363365
from 'src/main/resources', {
364366
include '**'
365-
version = project.property('version')
367+
project_version = project.property('version')
366368
def channel = 'stable'
367369
if (version.contains('pre'))
368370
channel = 'prerelease'
@@ -397,9 +399,9 @@ task nightlyResources(type: ProcessResources) {
397399
from 'src/main/resources', {
398400
include '**'
399401
def hash = 'git rev-parse --short HEAD'.execute().text.trim()
400-
version = project.property('version') + '-nightly-' + hash
402+
project_version = project.property('version') + '-nightly-' + hash
401403
filter ReplaceTokens, tokens: [
402-
'version' : version,
404+
'version' : project_version,
403405
'today' : '' + LocalTime.now(),
404406
'release-flavor' : 'skriptlang-nightly', // SkriptLang build, automatically done by CI
405407
'release-channel' : 'prerelease', // No update checking, but these are VERY unstable

0 commit comments

Comments
 (0)