Skip to content

Commit 61bf5fd

Browse files
committed
add: configure publishing settings for Maven publication in build.gradle
1 parent 4841f91 commit 61bf5fd

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

build.gradle

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,53 @@ tasks.withType(JavaCompile).configureEach {
3434

3535
javadoc {
3636
options.encoding = 'UTF-8'
37+
}
38+
39+
publishing {
40+
publications {
41+
mavenJava(MavenPublication) {
42+
groupId = 'io.github'
43+
artifactId = 'pluginlangcore'
44+
version = project.version
45+
from components.java
46+
47+
pom {
48+
name = 'PluginLangCore'
49+
description = 'A comprehensive language and message management library for Minecraft plugins'
50+
url = 'https://github.com/NighterDevelopment/PluginLangCore'
51+
52+
licenses {
53+
license {
54+
name = 'MIT License'
55+
url = 'https://opensource.org/licenses/MIT'
56+
}
57+
}
58+
59+
developers {
60+
developer {
61+
id = 'nighter'
62+
name = 'Nighter'
63+
email = 'notnighter@gmail.com'
64+
}
65+
}
66+
67+
scm {
68+
connection = 'scm:git:git://github.com/NighterDevelopment/PluginLangCore.git'
69+
developerConnection = 'scm:git:ssh://github.com/NighterDevelopment/PluginLangCore.git'
70+
url = 'https://github.com/NighterDevelopment/PluginLangCore'
71+
}
72+
}
73+
}
74+
}
75+
76+
repositories {
77+
maven {
78+
name = "GitHubPackages"
79+
url = uri("https://maven.pkg.github.com/NighterDevelopment/PluginLangCore")
80+
credentials {
81+
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
82+
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
83+
}
84+
}
85+
}
3786
}

0 commit comments

Comments
 (0)