-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
79 lines (73 loc) · 1.94 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
plugins {
id('java')
id('application')
id('maven-publish')
id('com.github.johnrengelman.shadow') version('7.1.2')
}
group 'eu.koboo'
version "$reposiliteVersion"
application {
mainClass.set("eu.koboo.reposilite.discord.webhook.DiscordWebhookPlugin")
}
repositories {
mavenCentral()
maven {
name('reposilite-repo')
url('https://maven.reposilite.com/releases/')
}
maven {
name('reposilite-snapshots')
url('https://maven.reposilite.com/snapshots/')
}
maven {
name('koboo-repo')
url('https://reposilite.koboo.eu/releases')
}
}
dependencies {
implementation("club.minnced:discord-webhooks:0.8.2")
compileOnly("com.reposilite:reposilite:$reposiliteVersion")
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier.set('sources')
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier.set('javadoc')
}
publishing {
repositories {
maven {
name('koboo-releases')
url('https://reposilite.koboo.eu/releases')
credentials {
username(System.getenv('REPO_USER'))
password(System.getenv('REPO_TOKEN'))
}
}
maven {
name('reposilite-release')
url('https://maven.reposilite.com/releases')
credentials {
username(System.getenv('REPOSILITE_USER'))
password(System.getenv('REPOSILITE_TOKEN'))
}
}
maven {
name('reposilite-snapshots')
url('https://maven.reposilite.com/snapshots')
credentials {
username(System.getenv('REPOSILITE_USER'))
password(System.getenv('REPOSILITE_TOKEN'))
}
}
}
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}