forked from Project-X-MMORPG/influencers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
67 lines (60 loc) · 2.11 KB
/
build.gradle.kts
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
plugins {
`java-library`
id("com.github.johnrengelman.shadow") version "5.1.0"
id("net.minecrell.plugin-yml.bungee") version "0.3.0"
id("net.minecrell.plugin-yml.bukkit") version "0.3.0"
}
plugins.apply("java-library")
plugins.apply("com.github.johnrengelman.shadow")
group = "dev.jaqobb"
version = "1.0.6"
description = "Minecraft plugin that allows players to link their YouTube accounts and receive rewards based on their influence"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
defaultTasks("clean", "build", "shadowJar")
tasks {
shadowJar {
relocate("kong.unirest", "dev.jaqobb.influencers.api.library.kong.unirest")
relocate("org.apache.commons.codec", "dev.jaqobb.influencers.api.library.org.apache.commons.codec")
relocate("org.apache.commons.logging", "dev.jaqobb.influencers.api.library.org.apache.commons.logging")
relocate("org.apache.http", "dev.jaqobb.influencers.api.library.org.apache.http")
relocate("org.json", "dev.jaqobb.influencers.api.library.org.json")
}
bungee {
name = project.name
main = "${project.group}.influencers.bungee.InfluencersBungeePlugin"
version = project.version as String
description = project.description
author = "jaqobb"
}
bukkit {
name = project.name
main = "${project.group}.influencers.spigot.InfluencersSpigotPlugin"
version = project.version as String
description = project.description
author = "jaqobb"
website = "https://jaqobb.dev"
commands {
create("influencers") {
description = "Shows help and basic information regarding Influencers plugin"
}
create("youtube") {
description = "Allows to view, link, unlink or verify a YouTube channel"
aliases = listOf("yt")
}
}
}
}
repositories {
jcenter()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven("https://repo.codemc.org/repository/maven-public/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
dependencies {
implementation("com.konghq:unirest-java:2.3.11")
compileOnly("net.md-5:bungeecord-api:1.14-SNAPSHOT")
compileOnly("org.spigotmc:spigot-api:1.14.4-R0.1-SNAPSHOT")
}