Skip to content

Commit

Permalink
attempt to fix jitpack being broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Realizedd committed May 2, 2019
1 parent 57a6808 commit 4485f7d
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,13 @@ plugins {
group 'me.realized'
version '3.2.2'

project.tasks.assemble.dependsOn project.tasks.shadowJar
jar.enabled = false
compileJava.options.encoding = 'UTF-8'
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8

shadowJar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

processResources {
def group = project.group.toString() + "." + project.name.toLowerCase() + ".shaded"

from(sourceSets.main.resources.srcDirs) {
include '**/*.yml'
filter(ReplaceTokens, tokens: [NAME: project.name, VERSION: project.version, SHADED_GROUP: group])
}
}

artifacts {
archives jar
}

clean.doFirst {
delete "$rootDir/out/"
}
Expand All @@ -49,8 +34,13 @@ tasks.withType(ShadowJar) {
destinationDir = file("$rootDir/out/")
}

tasks.withType(Jar) {
destinationDir = file("$rootDir/out/")
processResources {
def group = project.group.toString() + "." + project.name.toLowerCase() + ".shaded"

from(sourceSets.main.resources.srcDirs) {
include '**/*.yml'
filter(ReplaceTokens, tokens: [NAME: project.name, VERSION: project.version, SHADED_GROUP: group])
}
}

repositories {
Expand Down Expand Up @@ -128,4 +118,6 @@ shadowJar {
relocate 'org.slf4j', group + "slf4j"
relocate 'org.bstats', group + 'bstats'
relocate 'org.inventivetalent.update.spiget', group + 'update.spiget'
}
}

build.dependsOn(shadowJar)

0 comments on commit 4485f7d

Please sign in to comment.