forked from tebexio/BuycraftX
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
86 lines (72 loc) · 1.81 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
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
plugins {
`java-library`
idea
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "net.buycraft"
version = "2.0.0"
repositories {
mavenCentral()
maven("https://plugins.gradle.org/m2/")
mavenLocal()
}
// Do not build this root project, this is only used as a control submodule
tasks.forEach {
it.enabled = false
}
idea {
module {
isDownloadSources = true
isDownloadJavadoc = false
}
}
// Enable gradle wrapper update task
tasks.wrapper {
enabled = true
gradleVersion = GradleVersion.current().version
}
tasks.prepareKotlinBuildScriptModel {
enabled = true
}
subprojects {
apply(plugin = "java-library")
apply(plugin = "maven-publish")
apply(plugin = "com.github.johnrengelman.shadow")
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17
repositories {
mavenLocal()
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
maven {
url = uri("https://www.jitpack.io")
}
maven {
url = uri("https://repo.opencollab.dev/maven-releases")
}
maven {
url = uri("https://repo.opencollab.dev/maven-snapshots")
}
}
tasks.build {
dependsOn("shadowJar")
}
dependencies {
api("org.jetbrains:annotations:16.0.2")
}
java {
withJavadocJar()
withSourcesJar()
}
tasks.withType<Javadoc> {
options.encoding = "utf-8"
val javadocOptions = options as CoreJavadocOptions
javadocOptions.addStringOption(
"source",
java.sourceCompatibility.toString()
)
// Suppress some meaningless warnings
javadocOptions.addStringOption("Xdoclint:none", "-quiet")
}
}