forked from DevSrSouza/Bukkript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
67 lines (61 loc) · 2.17 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 {
kotlin("jvm") version "1.4.10"
id("maven-publish")
id("me.bristermitten.pdm")
}
subprojects {
plugins.apply("org.jetbrains.kotlin.jvm")
plugins.apply("maven-publish")
plugins.apply("me.bristermitten.pdm")
group = "br.com.devsrsouza.bukkript"
version = "0.2.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
maven ("https://dl.bintray.com/kotlin/kotlin-eap")
maven("http://nexus.devsrsouza.com.br/repository/maven-public/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
}
tasks {
compileKotlin {
kotlinOptions{
jvmTarget = "1.8"
freeCompilerArgs += "-Xno-optimized-callable-references"
}
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor(120, "seconds")
}
afterEvaluate {
publishing.publications.forEach {
(it as? MavenPublication)?.pom {
name.set("Bukkript")
description.set("Bukkript is a Bukkit plugin that allows server admins to customize their server easily with the power of **Kotlin** language and **KotlinBukkitAPI**.")
url.set("https://github.com/DevSrSouza/Bukkript")
licenses {
license {
name.set("MIT License")
url.set("https://github.com/DevSrSouza/Bukkript/blob/master/LICENSE")
distribution.set("repo")
}
}
developers {
developer {
id.set("DevSrSouza")
name.set("Gabriel Souza")
email.set("devsrsouza@gmail.com")
}
}
scm {
url.set("https://github.com/DevSrSouza/Bukkript/tree/master/" +
project.path.removePrefix(":").replace(":", "/"))
}
}
}
}
}