Commit ebd603b 1 parent 1ba5430 commit ebd603b Copy full SHA for ebd603b
File tree 1 file changed +20
-4
lines changed
1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change
1
+ import org.gradle.jvm.toolchain.JavaLanguageVersion
2
+
1
3
plugins {
2
4
id ' java-library'
3
5
id ' eclipse'
@@ -46,10 +48,22 @@ repositories {
46
48
base {
47
49
archivesName = mod_name
48
50
}
49
-
51
+ javadoc {
52
+ options. addStringOption(" tag" , " date:a:Date:" )
53
+ options. addStringOption(" charset" , " UTF-8" )
54
+ options. addStringOption(" encoding" , " UTF-8" )
55
+ if (JavaVersion . current(). isJava9Compatible()) {
56
+ options. addBooleanOption(' html5' , true )
57
+ }
58
+ }
50
59
// Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17.
51
- java. toolchain. languageVersion = JavaLanguageVersion . of(project. targetJavaVersion)
52
- java. withSourcesJar()
60
+ java {
61
+ toolchain{
62
+ languageVersion = JavaLanguageVersion . of(project. targetJavaVersion)
63
+ }
64
+ withSourcesJar()
65
+ // withJavadocJar()
66
+ }
53
67
54
68
jarJar. enable()
55
69
tasks. named(' jarJar' ) {
@@ -190,7 +204,9 @@ publishing {
190
204
artifactId project. mod_name
191
205
groupId maven_group
192
206
version version
193
- from components. java
207
+ // from components.java
208
+ artifact jar
209
+ artifact sourcesJar
194
210
pom {
195
211
name = project. mod_name
196
212
description = ' A Minecraft Mod Which Could Show Image In Chat Line'
You can’t perform that action at this time.
0 commit comments