-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
97 lines (84 loc) · 2.55 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
plugins {
id 'java-library'
id 'maven-publish'
}
group = 'su.demands'
version = '0.2.6-SNAPSHOT'
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.24'
compileOnly 'org.projectlombok:lombok:1.18.24'
api 'org.jetbrains:annotations:24.0.0'
api 'ch.qos.logback:logback-classic:1.2.9'
api 'com.discord4j:discord4j-core:3.3.0-SNAPSHOT'
implementation 'com.github.drapostolos:type-parser:0.8.1'
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 60, 'seconds'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.incremental = true
sourceCompatibility = "16"
targetCompatibility = "16"
}
/*tasks.withType(Javadoc).all {
enabled = false
}*/
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifactId = 'd4j-dframework'
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'D4J-DFramework'
description = 'A JVM-based Discord4J wrapper for the official Discord Bot API'
url = 'https://github.com/Demandss/D4J-DFramework'
issueManagement {
system = 'GitHub'
url = 'https://github.com/Demandss/D4J-DFramework/issues'
}
licenses {
license {
name = 'LGPL-3.0'
url = 'https://github.com/Demandss/D4J-DFramework/blob/master/LICENSE.md'
distribution = 'repo'
}
}
developers {
developer {
name = 'Demands'
}
}
scm {
url = 'https://github.com/Demandss/D4J-DFramework/'
connection = 'scm:git:git://Demandss/D4J-DFramework.git'
developerConnection = 'scm:git:ssh://Demandss/D4J-DFramework.git'
}
}
}
}
repositories {
maven {
url = layout.buildDirectory.dir('repos/snapshots')
}
}
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
}