-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (77 loc) · 2.63 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'io.github.mineflash07'
version project.hasProperty("library.version") ? project.findProperty("library.version") : 'HEAD-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
compileJava.options.encoding = "UTF-8"
repositories {
mavenCentral()
}
dependencies {
api 'com.google.code.gson:gson:2.8.6'
testImplementation group: 'junit', name: 'junit', version: '4.12'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'discord-webhook'
from components.java
pom {
name = project.getName()
description = "Discord Webhook sending library"
url = "https://github.com/MineFlash07/Discord-Webhook"
issueManagement {
system = "GitHub"
url = "https://github.com/MineFlash07/Discord-Webhook/issues"
}
licenses {
license {
name = "MIT"
url = "https://github.com/MineFlash07/Discord-Webhook/blob/master/LICENSE.md"
}
}
scm {
url = "https://github.com/MineFlash07/Discord-Webhook"
connection = "scm:git:git://github.com/MineFlash07/Discord-Webhook.git"
developerConnection = "scm:git:ssh://github.com/MineFlash07/Discord-Webhook.git"
}
developers {
developer {
id = "raik"
name = "Raik"
email = "[email protected]"
}
}
}
}
}
repositories {
maven {
name = "MavenCentral"
url = version.endsWith('SNAPSHOT') ? "https://oss.sonatype.org/content/repositories/snapshots/" : "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = project.findProperty("maven.username")
password = project.findProperty("maven.password")
}
}
maven {
name = "GithubMavenPackage"
url = "https://maven.pkg.github.com/mineFlash07/discord-Webhook"
credentials {
username = project.findProperty("github.actor")
password = project.findProperty("github.token")
}
}
}
}
signing {
sign publishing.publications.mavenJava
}