Skip to content

Commit 4485f7d

Browse files
committed
attempt to fix jitpack being broken
1 parent 57a6808 commit 4485f7d

1 file changed

Lines changed: 10 additions & 18 deletions

File tree

build.gradle

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,13 @@ plugins {
1919
group 'me.realized'
2020
version '3.2.2'
2121

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

2725
shadowJar {
2826
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
2927
}
3028

31-
processResources {
32-
def group = project.group.toString() + "." + project.name.toLowerCase() + ".shaded"
33-
34-
from(sourceSets.main.resources.srcDirs) {
35-
include '**/*.yml'
36-
filter(ReplaceTokens, tokens: [NAME: project.name, VERSION: project.version, SHADED_GROUP: group])
37-
}
38-
}
39-
40-
artifacts {
41-
archives jar
42-
}
43-
4429
clean.doFirst {
4530
delete "$rootDir/out/"
4631
}
@@ -49,8 +34,13 @@ tasks.withType(ShadowJar) {
4934
destinationDir = file("$rootDir/out/")
5035
}
5136

52-
tasks.withType(Jar) {
53-
destinationDir = file("$rootDir/out/")
37+
processResources {
38+
def group = project.group.toString() + "." + project.name.toLowerCase() + ".shaded"
39+
40+
from(sourceSets.main.resources.srcDirs) {
41+
include '**/*.yml'
42+
filter(ReplaceTokens, tokens: [NAME: project.name, VERSION: project.version, SHADED_GROUP: group])
43+
}
5444
}
5545

5646
repositories {
@@ -128,4 +118,6 @@ shadowJar {
128118
relocate 'org.slf4j', group + "slf4j"
129119
relocate 'org.bstats', group + 'bstats'
130120
relocate 'org.inventivetalent.update.spiget', group + 'update.spiget'
131-
}
121+
}
122+
123+
build.dependsOn(shadowJar)

0 commit comments

Comments
 (0)