This repository was archived by the owner on Feb 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
121 lines (105 loc) · 3.35 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
buildscript {
ext.proj_version = '1.0.2'
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+'
}
}
plugins {
id 'com.jfrog.bintray' version '1.8.1'
}
group 'xyz.discordboats'
version proj_version
allprojects {
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'java-library'
apply plugin: 'java'
dependencies {
api 'org.apache.commons:commons-math3:3.6.1'
api 'org.slf4j:slf4j-api:1.7.25'
compile 'net.dv8tion:JDA:3.8.0_427'
implementation 'com.google.guava:guava:23.0'
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
testImplementation 'junit:junit:4.12'
}
repositories {
jcenter()
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
maven(MavenPublication) {
from components.java
groupId 'xyz.discordboats'
artifactId 'Boats4J'
version proj_version
artifact sourcesJar
artifact javadocJar
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name 'Boats4J'
description 'Boats4J is the official Java API Wrapper of Discord Boats\' API.'
url 'https://github.com/DiscordBoats/Boats4J'
scm {
url 'https://github.com/DiscordBoats/Boats4J'
connection 'scm:git:git://github.com/DiscordBoats/Boats4J.git'
developerConnection "scm:git:ssh:git@github.com:DiscordBoats/Boats4J.git"
}
licenses {
license {
name 'MIT'
url 'https://opensource.org/licenses/MIT'
distribution 'repo'
}
}
developers {
developer {
id 'dondish'
name 'Oded Shapira'
email 'odedshapira1@gmail.com'
}
}
}
}
}
}
}
bintray {
try {
user = property('user')
key = property('key')
publications = ['maven']
pkg {
repo = 'Boats4J'
name = 'Boats4J'
userOrg = 'discordboats'
licenses = ['MIT']
websiteUrl = 'https://github.com/DiscordBoats/Boats4J'
issueTrackerUrl = 'https://github.com/DiscordBoats/Boats4J/issues'
vcsUrl = 'https://github.com/DiscordBoats/Boats4J.git'
githubRepo = 'DiscordBoats/Boats4J'
version {
name = proj_version
released = new Date()
vcsTag = proj_version
gpg {
sign = true
}
attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
}
}
} catch (MissingPropertyException ignored) {
}
}