forked from darkbot-reloaded/DarkBotAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (42 loc) · 1.14 KB
/
build.gradle.kts
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
plugins {
`java-library`
`maven-publish`
}
tasks.wrapper {
gradleVersion = "7.5.1"
// without gradle javadocs and sources
distributionType = Wrapper.DistributionType.BIN
}
val apiVersion = "0.6.3"
allprojects {
group = "eu.darkbot"
version = apiVersion
apply(plugin = "java-library")
java {
sourceCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
withJavadocJar()
}
apply(plugin = "maven-publish")
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
dependencies {
compileOnly("org.jetbrains:annotations:23.0.0")
}
val javadocOpts = tasks.javadoc.get().options as StandardJavadocDocletOptions
javadocOpts.addStringOption("Xdoclint:none", "-quiet") //no warnings about missing docs
tasks.withType(JavaCompile::class) {
options.isDeprecation = false // disable deprecation warnings
}
}
description = "darkbot-common"
dependencies {
api(project(":darkbot-util"))
api(project(":darkbot-api"))
api(project(":darkbot-shared"))
}