Skip to content

Commit a37a307

Browse files
committed
Don't generate sources
1 parent dfaaadf commit a37a307

2 files changed

Lines changed: 8 additions & 13 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
prerelease: true
3535
files: |
3636
LICENSE
37-
./build/libs/CodeClient.jar
37+
./build/libs/

build.gradle

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,6 @@ tasks.withType(JavaCompile).configureEach {
5353
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
5454
it.options.release = targetJavaVersion
5555
}
56-
shadowJar {
57-
dependsOn(relocate)
58-
configurations = listOf(shade)
59-
destinationDirectory.set(file("build/devlibs"))
60-
archiveClassifier.set("dev")
61-
from("LICENSE")
62-
}
63-
64-
remapJar {
65-
inputFile.value(shadowJar.get().archiveFile)
66-
}
6756
}
6857

6958
java {
@@ -75,7 +64,13 @@ java {
7564
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
7665
// if it is present.
7766
// If you remove this line, sources will not be generated.
78-
withSourcesJar()
67+
// withSourcesJar()
68+
}
69+
70+
jar {
71+
from("LICENSE") {
72+
rename { "${it}_${project.archivesBaseName}" }
73+
}
7974
}
8075

8176
// configure the maven publication

0 commit comments

Comments
 (0)