Skip to content

Commit 3d0e6c2

Browse files
Artemyev VyacheslavArtemyev Vyacheslav
Artemyev Vyacheslav
authored and
Artemyev Vyacheslav
committed
Add publishing step
1 parent d6cae6b commit 3d0e6c2

File tree

1 file changed

+49
-1
lines changed

1 file changed

+49
-1
lines changed

build.gradle

+49-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ allprojects {
7070
}
7171

7272
configure(rootProject) {
73-
version = "0.0.6"
73+
version = "0.0.7"
7474

7575
apply plugin: "com.adarshr.test-logger"
7676

@@ -134,3 +134,51 @@ project(":benchmarks") {
134134
jmhCompileGeneratedClasses.finalizedBy deleteEmptyBmList
135135
}
136136

137+
publishing {
138+
repositories {
139+
maven {
140+
name = "MavenCentral"
141+
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
142+
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
143+
url = version.toString().endsWith("SNAPSHOT") ? uri(snapshotsRepoUrl) : uri(releasesRepoUrl)
144+
credentials {
145+
username = System.getenv("MAVEN_USERNAME")
146+
password = System.getenv("MAVEN_PASSWORD")
147+
}
148+
}
149+
}
150+
publications {
151+
maven(MavenPublication) {
152+
from(components["java"])
153+
artifact(tasks["sourcesJar"])
154+
artifact(tasks["javadocJar"])
155+
groupId = "com.github.viartemev"
156+
artifactId = "rabbitmq-kotlin"
157+
version = "0.7.0"
158+
pom {
159+
name.set("RabbitMQ Kotlin")
160+
description.set("Kotlin library for RabbitMQ")
161+
url.set("https://github.com/viartemev/rabbitmq-kotlin")
162+
licenses {
163+
license {
164+
name.set("MIT License")
165+
url.set("https://github.com/viartemev/rabbitmq-kotlin/blob/master/LICENSE")
166+
}
167+
}
168+
developers {
169+
developer {
170+
id.set("https://github.com/viartemev")
171+
name.set("Vyacheslav Artemyev")
172+
email.set("[email protected]")
173+
}
174+
}
175+
scm {
176+
connection.set("scm:git:https://github.com/viartemev/rabbitmq-kotlin.git")
177+
developerConnection.set("scm:git:https://github.com/viartemev/rabbitmq-kotlin.git")
178+
url.set("https://github.com/viartemev/rabbitmq-kotlin")
179+
}
180+
181+
}
182+
}
183+
}
184+
}

0 commit comments

Comments
 (0)