-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
106 lines (94 loc) · 3.18 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'idea'
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
repositories {
maven { url 'https://jitpack.io' }
mavenCentral()
}
dependencies {
compileOnly libs.annotations
}
compileJava {
options.encoding = 'UTF-8'
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}
if (project.name != 'module-env') {
publishing {
publications {
maven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
}
}
}
}
}
def javadocProjects= [
':common',
// Modules
'module:module-command',
'module:module-command-brigadier',
'module:module-env',
'module:module-lang',
'module:module-lang-adventure',
'module:module-script',
'module:module-script-js',
'module:module-task',
// Platforms
'platform:platform-bukkit',
'platform:platform-bungee',
'platform:platform-paper',
'platform:platform-velocity',
// Bootstrap
'bootstrap',
'bootstrap:bootstrap-annotations',
'bootstrap:bootstrap-bukkit',
'bootstrap:bootstrap-bungee',
'bootstrap:bootstrap-paper',
'bootstrap:bootstrap-velocity',
// Extensions
'extension:extension-cache',
'extension:extension-lookup'
]
task allJavadoc(type: Javadoc) {
source javadocProjects.collect { project(it).sourceSets.main.allJava }
classpath = files(javadocProjects.collect { project(it).sourceSets.main.compileClasspath })
options {
// Java
links 'https://docs.oracle.com/en/java/javase/11/docs/api/'
// Libraries
links 'https://javadoc.io/doc/com.google.code.gson/gson/latest/'
links 'https://javadoc.io/doc/com.google.guava/guava/latest/'
links 'https://javadoc.io/doc/com.github.ben-manes.caffeine/caffeine/latest/'
links 'https://javadoc.io/doc/org.jetbrains/annotations/latest/'
links 'https://jd.advntr.dev/api/latest/'
links 'https://jd.advntr.dev/text-minimessage/latest/'
links 'https://jd.advntr.dev/text-serializer-legacy/latest/'
links 'https://jd.advntr.dev/platform/bukkit/latest/'
links 'https://jd.advntr.dev/platform/bungeecord/latest/'
links 'https://javadoc.saicone.com/types/'
links 'https://javadoc.saicone.com/settings/'
links 'https://javadoc.saicone.com/delivery4j/'
links 'https://asm.ow2.io/javadoc/'
// Platforms
links 'https://hub.spigotmc.org/javadocs/bukkit/'
links 'https://javadoc.io/doc/net.md-5/bungeecord-api/latest/'
links 'https://jd.papermc.io/velocity/3.3.0/'
}
destinationDir = file(project.layout.buildDirectory.dir('docs/all-javadoc'))
}