-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
90 lines (77 loc) · 2.36 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
allprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'idea'
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
repositories {
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://oss.sonatype.org/content/repositories/central' }
maven { url 'https://repo.papermc.io/repository/maven-public/' }
mavenCentral()
}
dependencies {
compileOnly 'org.jetbrains:annotations:24.1.0'
}
compileJava {
options.release = 11
options.encoding = 'UTF-8'
}
java {
withSourcesJar()
withJavadocJar()
}
javadoc {
options {
links 'https://docs.oracle.com/en/java/javase/11/docs/api/'
links 'https://hub.spigotmc.org/javadocs/spigot/'
links 'https://javadoc.io/doc/org.jetbrains/annotations/latest/'
}
}
publishing {
publications {
maven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
}
}
}
}
subprojects {
dependencies {
implementation rootProject
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.21.1-R0.1-SNAPSHOT'
compileOnly 'it.unimi.dsi:fastutil:8.5.12'
compileOnly('com.mojang:datafixerupper:4.1.27') { transitive = false }
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
test {
useJUnitPlatform()
}
def javadocProjects= [
':',
':rtag-block',
':rtag-entity',
':rtag-item'
]
tasks.register('allJavadoc', Javadoc) {
source javadocProjects.collect { project(it).sourceSets.main.allJava }
classpath = files(javadocProjects.collect { project(it).sourceSets.main.compileClasspath })
options {
links 'https://docs.oracle.com/en/java/javase/11/docs/api/'
links 'https://hub.spigotmc.org/javadocs/spigot/'
links 'https://javadoc.io/doc/org.jetbrains/annotations/latest/'
}
destinationDir = file(project.layout.buildDirectory.dir('docs/all-javadoc'))
}