We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca66748 commit e72ec0cCopy full SHA for e72ec0c
build.gradle
@@ -205,6 +205,17 @@ publishing {
205
}
206
207
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
219
tasks.withType(JavaCompile).configureEach {
220
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
221
0 commit comments