11plugins {
22 id ' java-library'
3+ id ' maven-publish'
4+ id ' signing'
35}
46
57dependencies {
6- api(project( ' :loom.messaging.contract' ))
8+ api ' io.github.loom :loom.messaging.contract:[0.0.1, 0.1.0) '
79}
810
911java {
@@ -14,3 +16,69 @@ java {
1416test {
1517 dependsOn(' editorconfigCheck' , ' checkstyleMain' )
1618}
19+
20+ group = ' io.github.loom'
21+ version = artifactVersion
22+
23+ jar {
24+ manifest {
25+ attributes(
26+ ' Specification-Title' : artifactName,
27+ ' Specification-Version' : artifactVersion,
28+ ' Specification-Vendor' : ' io.github.loom' ,
29+ ' Implementation-Title' : artifactName,
30+ ' Implementation-Version' : artifactVersion,
31+ ' Implementation-Vendor' : ' io.github.loom'
32+ )
33+ }
34+ }
35+
36+ publishing {
37+ repositories {
38+ maven {
39+ name " OSSRH"
40+ url " https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
41+ credentials {
42+ username System . getenv(" MAVEN_USERNAME" )
43+ password System . getenv(" MAVEN_PASSWORD" )
44+ }
45+ }
46+ }
47+
48+ publications {
49+ maven(MavenPublication ) {
50+ artifactId artifactId
51+ from components. java
52+ pom {
53+ name = artifactName
54+ description = artifactDescription
55+ url = " https://github.com/loom/loom-java"
56+ licenses {
57+ license {
58+ name = " MIT License"
59+ url = " https://github.com/loom/loom-java/blob/main/LICENSE"
60+ }
61+ }
62+ developers {
63+ developer {
64+ id = " gyuwon"
65+ name = " Gyuwon Yi"
66+ email = " gyuwon@live.com"
67+ }
68+ }
69+ scm {
70+ connection = " https://github.com/loom/loom-java.git"
71+ developerConnection = " https://github.com/loom/loom-java.git"
72+ url = " https://github.com/loom/loom-java"
73+ }
74+ }
75+ }
76+ }
77+ }
78+
79+ signing {
80+ def signingKey = System . getenv(" SIGNING_KEY" )
81+ def signingPassword = System . getenv(" SIGNING_PASSWORD" )
82+ useInMemoryPgpKeys(signingKey, signingPassword)
83+ sign publishing. publications. maven
84+ }
0 commit comments