Skip to content

Commit

Permalink
Jitpack is funny 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
XyperCode committed May 6, 2024
1 parent c1265a0 commit c858dc5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ tasks.register('JUnit') {
task githubResources(type: ProcessResources) {
from 'src/main/resources', {
include '**'
project_version = project.property('version')
def channel = 'stable'
if (version.contains('pre'))
channel = 'prerelease'
Expand Down Expand Up @@ -364,7 +363,6 @@ task githubRelease(type: ShadowJar) {
task spigotResources(type: ProcessResources) {
from 'src/main/resources', {
include '**'
project_version = project.property('version')
def channel = 'stable'
if (version.contains('pre'))
channel = 'prerelease'
Expand Down Expand Up @@ -399,7 +397,7 @@ task nightlyResources(type: ProcessResources) {
from 'src/main/resources', {
include '**'
def hash = 'git rev-parse --short HEAD'.execute().text.trim()
project_version = project.property('version') + '-nightly-' + hash
project_version += '-nightly-' + hash
filter ReplaceTokens, tokens: [
'version' : project_version,
'today' : '' + LocalTime.now(),
Expand Down

0 comments on commit c858dc5

Please sign in to comment.