-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
81 lines (63 loc) · 2.64 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
plugins {
kotlin("jvm") version "1.3.71"
id("net.minecrell.plugin-yml.bukkit") version "0.3.0"
id("com.github.johnrengelman.shadow") version "5.2.0"
kotlin("plugin.serialization") version "1.3.71"
}
group = "com.yourname"
version = "0.1.0-SNAPSHOT"
val spigot_version = "1.8.8-R0.1-SNAPSHOT"
val kotlinbukkitapi_version = "0.1.0-SNAPSHOT"
//val hikaricp_version = "3.4.1" // optional dependency
//val exposed_version = "0.21.1" // optional dependency
repositories {
jcenter()
// Spigot
maven { url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") }
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
// KotlinBukkitAPI
maven { url = uri("http://nexus.devsrsouza.com.br/repository/maven-public/")}
// Backup KotlinBukkitAPI repoistory, in case the above one is not working
// maven("https://oss.jfrog.org/oss-snapshot-local/")
// maven("http://nexus.okkero.com/repository/maven-releases/") //skedule
// maven("https://repo.codemc.org/repository/maven-public") //bstats
}
dependencies {
val changing = Action<ExternalModuleDependency> { isChanging = true }
compileOnly(kotlin("stdlib-jdk8")) // embedded in KotlinBukkitAPI
compileOnly("org.spigotmc:spigot-api:$spigot_version")
// KotlinBukkitAPI
compileOnly("br.com.devsrsouza.kotlinbukkitapi:core:$kotlinbukkitapi_version", changing)
compileOnly("br.com.devsrsouza.kotlinbukkitapi:architecture:$kotlinbukkitapi_version", changing)
compileOnly("br.com.devsrsouza.kotlinbukkitapi:serialization:$kotlinbukkitapi_version", changing)
//compileOnly("br.com.devsrsouza.kotlinbukkitapi:exposed:$kotlinbukkitapi_version", changing)
//compileOnly("br.com.devsrsouza.kotlinbukkitapi:plugins:$kotlinbukkitapi_version", changing)
// OPTIONAL EXTRA DEPENDENCIES
// hikaricp
//implementation("com.zaxxer:HikariCP:$hikaricp_version")
// exposed
//implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
//implementation("org.jetbrains.exposed:exposed-java-jdbc:$exposed_version")
//implementation("org.jetbrains.exposed:exposed-dao:$exposed_version")
}
bukkit {
main = "${project.group}.${project.name.toLowerCase()}.${project.name}Plugin"
author = "Your Name"
website = "yourwebsite.com"
depend = listOf("KotlinBukkitAPI")
description = "The plugin description."
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
shadowJar {
classifier = null
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor(120, "seconds")
}