Skip to content

Commit

Permalink
Updated version and build process
Browse files Browse the repository at this point in the history
  • Loading branch information
DV8FromTheWorld committed Aug 4, 2019
1 parent f57a3a0 commit ef610ea
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import org.apache.tools.ant.filters.ReplaceTokens

plugins {
id 'com.sedmelluq.jdaction' version '1.0.1'
id 'com.github.johnrengelman.shadow' version '2.0.4'
}

apply plugin: 'java'

def versionObj = new Version(major: 1, minor: 3, revision: 1)
def versionObj = new Version(major: 1, minor: 4, revision: 0)
group = 'net.dv8tion'
archivesBaseName = 'Yui'
version = "${versionObj.toString()}"
Expand All @@ -32,7 +33,7 @@ jdaction {
sourceSets = [sourceSets.main]
}

// copy the main sources and filter any '@buildVersion@' occurences.
// copy the main sources and filter any '@buildVersion@' occurrences.
task processVersion (type: Copy) {
from sourceSets.main.java
into filteredSourceDir
Expand Down Expand Up @@ -63,6 +64,10 @@ task sourcesJar(type: Jar) {
}

//create a single Jar with all dependencies
shadowJar {
classifier = 'withDependencies'
}

task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Version': version
Expand Down Expand Up @@ -131,4 +136,4 @@ compileJava.source = sourceSets.filtered.java
compileJava.dependsOn processVersion

//Creates the w/ dependencies jar.
assemble.dependsOn fatJar
assemble.dependsOn shadowJar

0 comments on commit ef610ea

Please sign in to comment.