-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
82 lines (69 loc) · 1.81 KB
/
Copy pathbuild.gradle
File metadata and controls
82 lines (69 loc) · 1.81 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
plugins {
id "java"
id "com.github.johnrengelman.shadow" version "7.1.2"
id "org.cadixdev.licenser" version "0.6.1"
id "maven-publish"
id "idea"
}
dependencies {
implementation project(path: ":spigot", configuration: "shadow")
implementation project(path: ":bungee", configuration: "shadow")
implementation project(path: ":universal", configuration: "shadow")
implementation project(path: ":chat", configuration: "shadow")
implementation project(path: ":console", configuration: "shadow")
}
allprojects {
group = "com.github.kaspiandev.kommons"
version = "1-SNAPSHOT"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "java"
apply plugin: "maven-publish"
apply plugin: "org.cadixdev.licenser"
repositories {
mavenLocal()
mavenCentral()
}
tasks {
build {
dependsOn(shadowJar)
}
}
shadowJar {
dependsOn(jar)
archiveClassifier.set("")
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
artifact sourcesJar
artifact javadocJar
}
}
}
license {
header = file("${rootProject.projectDir}/assets/HEADER")
properties {
name = "Kaspian"
year = Calendar.getInstance().get(1)
}
}
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
tasks {
build {
shouldRunAfter(allprojects.build)
}
}