Skip to content

Commit

Permalink
fix fabric sources and javadoc jars
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticdrew committed Oct 7, 2024
1 parent 5d9df44 commit 5a6dc75
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ test {
useJUnitPlatform()
}

java {
toolchain.languageVersion = JavaLanguageVersion.of(21)
withSourcesJar()
withJavadocJar()
}

neoForge {
neoFormVersion = neo_form_version
// Automatically enable AccessTransformers if the file exists
Expand Down
12 changes: 12 additions & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ repositories {
}
}

java {
toolchain.languageVersion = JavaLanguageVersion.of(21)
withSourcesJar()
withJavadocJar()
}

loom {
runs {
client {
Expand Down Expand Up @@ -84,6 +90,12 @@ tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}

tasks.withType(Javadoc).configureEach {
source(project(":common").sourceSets.main.allJava)
}
tasks.named("sourcesJar", Jar) {
from(project(":common").sourceSets.main.allSource)
}
/* Add our attributes to every Jar task */
jar {
manifest {
Expand Down

0 comments on commit 5a6dc75

Please sign in to comment.