Skip to content

Commit

Permalink
Fixed release didnt contain version
Browse files Browse the repository at this point in the history
  • Loading branch information
timokueck committed Dec 23, 2023
1 parent 6c0dfea commit b87ff75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def artifactId = 'GradleBasePlugin'
// /---> Major Version - Increment this when you make a breaking change
// | /---> Patch Version - Increment this when you add a new feature
// | | /---> Minor Version - Increment this when you make a bug fix
def versionNum = '3.1.1'
def versionNum = '3.1.2'

group = groupId
version = versionNum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void apply(Project project) {

// Setting up Shadow Plugin
project.getPlugins().apply("com.github.johnrengelman.shadow");
getShadowJar(project).getArchiveFileName().set(project.getName() + "-" + project.getVersion() + ".jar");
getShadowJar(project).getArchiveFileName().set(project.getName() + "-" + meta.pluginVersion + ".jar");
getShadowJar(project).setProperty("destinationDir", project.file(meta.localDeploymentPath));
getShadowJar(project).dependsOn("generateMetaFiles");

Expand Down Expand Up @@ -179,7 +179,7 @@ else if (response == ResourceResponse.NOT_FETCH) {
/* After the build prcoess is completed, the file will be uploaded to all remotes */
private void uploadToRemotes(Task buildTask) {
File file = new File(meta.localDeploymentPath + '/'
+ buildTask.getProject().getName() + "-" + buildTask.getProject().getVersion() + ".jar");
+ buildTask.getProject().getName() + "-" + meta.pluginVersion + ".jar");

meta.remotes.stream().filter(Remote::isEnabled)
.forEach(all -> all.uploadFile(file));
Expand Down

0 comments on commit b87ff75

Please sign in to comment.