21
21
*
22
22
*/
23
23
24
- import com.vanniktech.maven.publish.SonatypeHost
25
- import gradle.kotlin.dsl.accessors._962842af322993b246b9354775ec3900.mavenPublishing
26
- import love.forte.gradle.common.core.Gpg
27
24
import love.forte.gradle.common.core.property.ofIf
28
- import love.forte.gradle.common.publication.configure.configPublishMaven
29
- import love.forte.gradle.common.publication.configure.publishingExtension
30
- import love.forte.gradle.common.publication.configure.setupPom
31
- import org.jetbrains.kotlin.com.intellij.openapi.util.text.HtmlChunk.p
32
- import utils.checkPublishConfigurable
33
25
34
26
plugins {
35
27
signing
@@ -39,57 +31,55 @@ plugins {
39
31
40
32
val p = project
41
33
42
- // checkPublishConfigurable {
43
- mavenPublishing {
44
- publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL )
45
- if (! isSimbotLocal()) {
46
- signAllPublications()
47
- }
48
- coordinates(groupId = p.group.toString(), artifactId = p.name, version = p.version.toString())
34
+ mavenPublishing {
35
+ publishToMavenCentral(automaticRelease = true )
36
+ if (! isSimbotLocal()) {
37
+ signAllPublications()
38
+ }
39
+ coordinates(groupId = p.group.toString(), artifactId = p.name, version = p.version.toString())
49
40
50
- pom {
51
- name = p.name
52
- description = p.description
53
- url = P .HOMEPAGE
54
- licenses {
55
- P .Simbot .licenses.forEach { license ->
56
- license {
57
- name ofIf license.name
58
- url ofIf license.url
59
- distribution ofIf license.distribution
60
- comments ofIf license.comments
61
- }
41
+ pom {
42
+ name = p.name
43
+ description = p.description
44
+ url = P .HOMEPAGE
45
+ licenses {
46
+ P .Simbot .licenses.forEach { license ->
47
+ license {
48
+ name ofIf license.name
49
+ url ofIf license.url
50
+ distribution ofIf license.distribution
51
+ comments ofIf license.comments
62
52
}
63
53
}
54
+ }
64
55
65
- val scm = P .Simbot .scm
66
- scm {
67
- url ofIf scm.url
68
- connection ofIf scm.connection
69
- developerConnection ofIf scm.developerConnection
70
- tag ofIf scm.tag
71
- }
56
+ val scm = P .Simbot .scm
57
+ scm {
58
+ url ofIf scm.url
59
+ connection ofIf scm.connection
60
+ developerConnection ofIf scm.developerConnection
61
+ tag ofIf scm.tag
62
+ }
72
63
73
- developers {
74
- P .Simbot .developers.forEach { developer ->
75
- developer {
76
- id ofIf developer.id
77
- name ofIf developer.name
78
- email ofIf developer.email
79
- url ofIf developer.url
80
- organization ofIf developer.organization
81
- organizationUrl ofIf developer.organizationUrl
82
- timezone ofIf developer.timezone
83
- roles.addAll(developer.roles)
84
- properties.putAll(developer.properties)
85
- }
64
+ developers {
65
+ P .Simbot .developers.forEach { developer ->
66
+ developer {
67
+ id ofIf developer.id
68
+ name ofIf developer.name
69
+ email ofIf developer.email
70
+ url ofIf developer.url
71
+ organization ofIf developer.organization
72
+ organizationUrl ofIf developer.organizationUrl
73
+ timezone ofIf developer.timezone
74
+ roles.addAll(developer.roles)
75
+ properties.putAll(developer.properties)
86
76
}
87
77
}
78
+ }
88
79
89
- issueManagement {
90
- system.set(" GitHub Issues" )
91
- url.set(" https://github.com/simple-robot/simpler-robot/issues" )
92
- }
80
+ issueManagement {
81
+ system.set(" GitHub Issues" )
82
+ url.set(" https://github.com/simple-robot/simpler-robot/issues" )
93
83
}
94
84
}
95
- // }
85
+ }
0 commit comments