-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
76 lines (60 loc) · 1.57 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
group 'org.krobot'
version '3.0.0-ALPHA-10'
apply plugin: 'java'
apply plugin: 'maven-publish'
sourceCompatibility = 1.8
targetCompatibility = 1.8
archivesBaseName = 'krobot-framework'
compileJava.options.encoding = 'UTF-8'
repositories {
jcenter()
maven {
url 'http://wytrem.github.io/maven/'
}
}
dependencies {
implementation 'org.apache.commons:commons-lang3:3.11'
implementation 'net.dv8tion:JDA:4.2.0_204'
implementation 'com.google.inject:guice:4.2.3'
implementation 'org.apache.logging.log4j:log4j-api:2.13.3'
implementation 'org.apache.logging.log4j:log4j-core:2.13.3'
implementation 'org.jetbrains:annotations:20.1.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'org.fusesource.jansi:jansi:1.18'
implementation 'org.jline:jline:3.16.0'
implementation 'org.json:json:20200518'
implementation 'org.apache.commons:commons-collections4:4.4'
}
jar {
from 'LICENSE'
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
publishing {
publications {
maven(MavenPublication) {
groupId group
artifactId archivesBaseName
version = version
from components.java
artifact sourcesJar {
classifier 'sources'
}
artifact javadocJar
}
}
repositories {
maven {
url "$buildDir/repo"
}
}
}