-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
81 lines (69 loc) · 1.95 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 {
id("com.jfrog.bintray") version "1.8.4"
kotlin("jvm") version "1.3.70"
id("maven-publish")
id("java-library")
java
}
group = "com.nanabell.quickstart"
version = "0.6.0"
repositories {
maven("https://dl.bintray.com/nanabell/Sponge-Minecraft")
maven("https://repo.spongepowered.org/maven/")
mavenCentral()
jcenter()
}
dependencies {
implementation("org.spongepowered:configurate-core:3.6.1")
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
compileOnly("org.slf4j:slf4j-api:1.7.25")
}
tasks {
java {
withJavadocJar()
withSourcesJar()
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}
publishing {
publications {
create<MavenPublication>("moduleloader") {
from(components["java"])
pom {
name.set("Simple Moduleloader")
description.set("A Module Loading Framework with the focus on Simplicity")
developers {
developer {
id.set("nanabell")
name.set("Nanabell")
}
}
scm {
connection.set("scm:[email protected]:Nanabell/Simple-Moduleloader.git")
developerConnection.set("scm:[email protected]:Nanabell/Simple-Moduleloader.git")
url.set("https://github.com/Nanabell/Simple-Moduleloader")
}
}
}
}
}
bintray {
user = project.findProperty("bintray.user").toString()
key = project.findProperty("bintray.key").toString()
setPublications("moduleloader")
publish = false
pkg.apply {
repo = "Sponge-Minecraft"
name = "simple-moduleloader"
version.apply {
name = "v${project.version}"
vcsTag = "v${project.version}"
}
}
}