-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
59 lines (48 loc) · 1.22 KB
/
build.gradle
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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '6.1.0'
id 'maven'
}
group 'me.sunstorm'
version '2.1.0'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains:annotations:22.0.0'
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
}
shadowJar {
archiveClassifier.set('')
}
jar.enabled = false
assemble.dependsOn(shadowJar)
task sourcesJar(type: Jar, dependsOn: classes) {
classifier('sources')
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier('javadoc')
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'GNU General Public License 3.0'
url 'https://www.gnu.org/licenses/gpl-3.0.txt'
distribution 'repo'
}
}
}
}
}
install.dependsOn(shadowJar)