Skip to content

Commit

Permalink
Don't generate sources
Browse files Browse the repository at this point in the history
  • Loading branch information
RedVortexDev committed Mar 4, 2023
1 parent dfaaadf commit a37a307
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
prerelease: true
files: |
LICENSE
./build/libs/CodeClient.jar
./build/libs/
19 changes: 7 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,6 @@ tasks.withType(JavaCompile).configureEach {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
it.options.release = targetJavaVersion
}
shadowJar {
dependsOn(relocate)
configurations = listOf(shade)
destinationDirectory.set(file("build/devlibs"))
archiveClassifier.set("dev")
from("LICENSE")
}

remapJar {
inputFile.value(shadowJar.get().archiveFile)
}
}

java {
Expand All @@ -75,7 +64,13 @@ java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
// withSourcesJar()
}

jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}

// configure the maven publication
Expand Down

0 comments on commit a37a307

Please sign in to comment.