-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
68 lines (54 loc) · 1.88 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
plugins {
id("java-library")
id("maven-publish")
}
group = "com.jaoow"
version = "1.9.1"
allprojects {
plugins.apply("java")
plugins.apply("maven-publish")
repositories {
mavenCentral()
mavenLocal()
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
groupId = rootProject.group.toString()
version = rootProject.version.toString()
}
}
}
dependencies {
val lombokVersion = "1.18.22"
val annotationsVersion = "21.0.1"
val hikariVersion = "4.0.3"
val slf4jVersion = "1.7.32"
val sqliteVersion = "3.45.1.0"
val mysqlVersion = "8.0.33"
val mariaDBVersion = "3.3.2";
// Lombok
annotationProcessor("org.projectlombok:lombok:$lombokVersion")
compileOnly("org.projectlombok:lombok:$lombokVersion")
// Jetbrains Annotations
compileOnly("org.jetbrains:annotations-java5:$annotationsVersion")
// HikariCP
implementation("com.zaxxer:HikariCP:$hikariVersion")
implementation("org.slf4j:slf4j-api:$slf4jVersion")
implementation("org.slf4j:slf4j-simple:$slf4jVersion")
// Databases
implementation("org.xerial:sqlite-jdbc:$sqliteVersion")
implementation("mysql:mysql-connector-java:$mysqlVersion")
implementation("org.mariadb.jdbc:mariadb-java-client:$mariaDBVersion")
}
}
tasks.withType<Javadoc> {
setDependsOn(setOf("clean"))
source(subprojects.flatMap { it.sourceSets.main.get().allJava })
setDestinationDir(file("${layout.buildDirectory.get()}/docs/javadoc"))
options.header("").apply {
links("https://docs.oracle.com/javase/8/docs/api/")
linksOffline("https://javadoc.io/doc/org.jetbrains/annotations/latest/", "${projectDir}/javadoc")
}
}