Skip to content

Commit 6d1031a

Browse files
committed
0.0.2
1 parent e49957d commit 6d1031a

5 files changed

Lines changed: 147 additions & 2 deletions

File tree

loom.json.abstraction/build.gradle

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
plugins {
22
id 'java-library'
3+
id 'maven-publish'
4+
id 'signing'
35
}
46

57
dependencies {
6-
api(project(':loom.type'))
8+
api 'io.github.loom:loom.type:[0.0.1, 0.1.0)'
79
}
810

911
java {
@@ -14,3 +16,69 @@ java {
1416
test {
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+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
artifactId=loom-json-abstraction
2+
artifactName=Loom Json Abstraction
3+
artifactVersion=0.0.2
4+
artifactDescription=Abstraction layer for JSON serialization.

loom.messaging.abstraction/build.gradle

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
plugins {
22
id 'java-library'
3+
id 'maven-publish'
4+
id 'signing'
35
}
46

57
dependencies {
6-
api(project(':loom.messaging.contract'))
8+
api 'io.github.loom:loom.messaging.contract:[0.0.1, 0.1.0)'
79
}
810

911
java {
@@ -14,3 +16,69 @@ java {
1416
test {
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+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
artifactId=loom-messaging-abstraction
2+
artifactName=Loom Messaging Abstraction
3+
artifactVersion=0.0.2
4+
artifactDescription=Abstraction layer for asynchronous messaging.

loom.unittest/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies {
1515
testImplementation(project(':loom.type'))
1616
testImplementation(project(':loom.json.abstraction'))
1717
testImplementation(project(':loom.json.jackson'))
18+
testImplementation(project(':loom.messaging.contract'))
1819
testImplementation(project(':loom.messaging.abstraction'))
1920
testImplementation(project(':loom.eventsourcing.contract'))
2021
testImplementation(project(':loom.eventsourcing.abstraction'))

0 commit comments

Comments
 (0)