-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
85 lines (71 loc) · 1.82 KB
/
build.gradle
File metadata and controls
85 lines (71 loc) · 1.82 KB
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 {
id 'maven-publish'
id 'java-library'
id 'eclipse'
id 'signing'
alias(libs.plugins.versions)
alias(libs.plugins.licenser)
alias(libs.plugins.lombok)
}
wrapper {
gradleVersion = '8.1.1'
}
def baseVersion = "4.0.8"
def isSnapshot = false
version = (isSnapshot) ? baseVersion + '-SNAPSHOT' : baseVersion
group = 'io.github.readonly'
archivesBaseName = 'JDATools'
dependencyUpdates.gradleReleaseChannel="current"
java {
withJavadocJar()
withSourcesJar()
toolchain.languageVersion = JavaLanguageVersion.of(17)
}
repositories {
mavenCentral()
}
dependencies {
api(libs.jda) { exclude module: 'opus-java' }
implementation libs.json
compileOnly libs.slf4j
api libs.guava
api libs.guice
api libs.commons.lang3
api libs.jackson.databind
}
license {
header = rootProject.file("HEADER.txt")
include '**/*.java'
}
tasks.withType(JavaCompile).configureEach {
classpath += sourceSets.main.compileClasspath
options.deprecation = true
options.encoding = 'UTF-8'
}
javadoc {
options.addBooleanOption('html5', true)
options.addStringOption('Xdoclint:none', '-quiet')
options.setWindowTitle(archivesBaseName + ' | ' + version)
options.setDocTitle(archivesBaseName + ' | ' + version)
options.setEncoding('UTF-8')
options.tags 'apiNote:a:API Note:', 'implSpec:a:Implementation Requirements:', 'implNote:a:Implementation Note:'
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId = 'com.github.ReadOnlyDevelopment'
}
mavenSnapshot(MavenPublication) {
from components.java
version = "master-SNAPSHOT"
groupId = 'com.github.ReadOnlyDevelopment'
}
}
}
checkLicenseMain.dependsOn licenseFormat