Skip to content

Commit 7ec5755

Browse files
Yuriy ElistratovTopHlop
authored andcommitted
publishing: Update logic of publishing
1 parent 4cc068d commit 7ec5755

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
import com.redmadrobot.build.dsl.*
22

33
plugins {
4-
id("com.redmadrobot.publish-config")
5-
id("com.redmadrobot.publish")
4+
id("com.vanniktech.maven.publish")
65
}
76

8-
redmadrobot {
9-
publishing {
10-
signArtifacts = !isRunningOnCi
11-
pom {
12-
setGitHubProject("RedMadRobot/TextValue")
7+
mavenPublishing {
8+
publishToMavenCentral(automaticRelease = true)
9+
signAllPublications()
1310

14-
licenses {
15-
mit()
16-
}
11+
pom {
12+
name.convention(project.name)
13+
description.convention(project.description)
1714

18-
developers {
19-
developer(id = "osipxd", name = "Osip Fatkullin", email = "o.fatkullin@redmadrobot.com")
20-
developer(id = "sonulen", name = "Andrey Tolmachev", email = "sonulen@gmail.com")
21-
}
15+
setGitHubProject("RedMadRobot/TextValue")
16+
17+
licenses {
18+
mit()
19+
}
20+
21+
developers {
22+
developer(id = "osipxd", name = "Osip Fatkullin", email = "o.fatkullin@redmadrobot.com")
23+
developer(id = "sonulen", name = "Andrey Tolmachev", email = "sonulen@gmail.com")
2224
}
2325
}
2426
}
2527

2628
publishing {
2729
repositories {
2830
if (isRunningOnCi) githubPackages("RedMadRobot/TextValue")
29-
if (isReleaseVersion && credentialsExist("ossrh")) ossrh()
3031
}
3132
}

0 commit comments

Comments
 (0)