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