-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
52 lines (45 loc) · 1.27 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val diskordVersion: String by project
plugins {
kotlin("jvm") version "1.5.31"
`maven-publish`
}
group = "com.github.myraBot"
val id = "Bunyeokga"
version = "1.8"
repositories {
mavenCentral()
maven(url = "https://systems.myra.bot/releases/") {
credentials {
username = System.getenv("REPO_NAME")
password = System.getenv("REPO_SECRET")
}
}
}
dependencies {
compileOnly(group = "com.github.myraBot", name = "Diskord", version = diskordVersion) // Discord Wrapper
}
publishing {
repositories {
publications {
create<MavenPublication>("repo") {
group = project.group as String
version = project.version as String
artifactId = id
from(components["java"])
}
}
maven {
url = uri( "https://systems.myra.bot/releases/")
name = "repo"
credentials {
username = System.getenv("REPO_NAME")
password = System.getenv("REPO_SECRET")
}
authentication { create<BasicAuthentication>("basic") }
}
}
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}