Skip to content

Commit e72ec0c

Browse files
committed
added javadoc and sources to the build script
1 parent ca66748 commit e72ec0c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,17 @@ publishing {
205205
}
206206
}
207207

208+
java {
209+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
210+
// if it is present.
211+
// If you remove this line, sources will not be generated.
212+
withSourcesJar()
213+
withJavadocJar()
214+
215+
sourceCompatibility = JavaVersion.VERSION_17
216+
targetCompatibility = JavaVersion.VERSION_17
217+
}
218+
208219
tasks.withType(JavaCompile).configureEach {
209220
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
210221
}

0 commit comments

Comments
 (0)