-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
88 lines (75 loc) · 2.28 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
82
83
84
85
86
87
88
plugins {
id("java")
id("maven-publish")
id("io.deepmedia.tools.deployer") version "0.16.0"
`java-library`
}
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven("https://repo.kryptonmc.org/releases")
maven("https://repo.spongepowered.org/maven/")
}
java {
withJavadocJar()
withSourcesJar()
}
deployer {
signing {
key.set(secret("winterSigningKey"))
password.set(secret("winterSigningPassphrase"))
}
// 1. Artifact definition.
// https://opensource.deepmedia.io/deployer/artifacts
content {
component {
fromJava() // shorthand for fromSoftwareComponent("java")
}
}
// 2. Project details.
// https://opensource.deepmedia.io/deployer/configuration
projectInfo {
description.set("The framework to make plugin creation easier than ever.")
url.set("https://github.com/thewinterframework/command")
license(MIT)
groupId.set(group.toString())
scm.fromGithub("thewinterframework", "command")
developer("Diego Cardenas", "diego.cardenas.v06@gmail.com")
artifactId.set(project.name)
}
// 3. Central Portal configuration.
// https://opensource.deepmedia.io/deployer/repos/central-portal
centralPortalSpec {
signing.key.set(secret("winterSigningKey"))
signing.password.set(secret("winterSigningPassphrase"))
auth.user.set(secret("winterRepositoryUsername"))
auth.password.set(secret("winterRepositoryPassword"))
}
}
dependencies {
// Core
compileOnlyApi("com.thewinterframework:core:1.0.1")
annotationProcessor("com.thewinterframework:core:1.0.1")
// Paper platform
compileOnlyApi("com.thewinterframework:paper:1.0.1")
// External Command Framework
api("org.incendo:cloud-paper:2.0.0-beta.10")
api("org.incendo:cloud-annotations:2.0.0")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-parameters")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}