Skip to content

Commit

Permalink
chore: bump version to 2.17 & move it to build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
demkom58 committed Aug 23, 2024
1 parent c1f4369 commit e798ed6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins {
id 'com.gradleup.shadow' version '8.3.0'
}

version = '2.17'

repositories {
mavenCentral()
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
Expand All @@ -22,6 +24,12 @@ dependencies {
implementation 'space.arim.morepaperlib:morepaperlib:0.4.3'
}

processResources {
filesMatching('plugin.yml') {
expand(version: project.version)
}
}

shadowJar {
relocate 'space.arim.morepaperlib', 'com.demkom58.divinedrop.libs.morepaperlib'
}
Expand All @@ -40,6 +48,16 @@ tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}

shadowJar {
archiveBaseName.set("DivineDrop")
archiveClassifier.set(null)
}

jar {
archiveBaseName.set("DivineDrop")
archiveClassifier.set("thin")
}

tasks.build {
dependsOn shadowJar
}
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: DivineDrop
main: com.demkom58.divinedrop.DivineDrop
description: Awesome removal of items from the ground
website: https://www.spigotmc.org/members/98068/
version: 2.16
version: ${version}
authors:
- demkom58
- GdemkomG
Expand Down

0 comments on commit e798ed6

Please sign in to comment.