@@ -62,12 +62,17 @@ publishing {
62
62
publications {
63
63
create<MavenPublication >(" mavenCentral" ) {
64
64
from(components[" java" ])
65
+ pom {
66
+ scm {
67
+
68
+ }
69
+ }
65
70
}
66
71
}
67
72
68
73
repositories {
69
74
maven {
70
- name = " external "
75
+ name = " mavenCentral "
71
76
url = uri(" https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" )
72
77
credentials(PasswordCredentials ::class )
73
78
}
@@ -80,49 +85,3 @@ signing {
80
85
useInMemoryPgpKeys(signingKey, signingPassword)
81
86
sign(publishing.publications)
82
87
}
83
-
84
- // uploadArchives {
85
- // repositories {
86
- // mavenDeployer {
87
- // beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
88
- //
89
- // repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {
90
- // authentication(userName: ossrhUsername, password: ossrhPassword)
91
- // }
92
- //
93
- // snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") {
94
- // authentication(userName: ossrhUsername, password: ossrhPassword)
95
- // }
96
- //
97
- // pom.project {
98
- // name 'Example Application'
99
- // packaging 'jar'
100
- // // optionally artifactId can be defined here
101
- // description 'A application used as an example on how to set up
102
- // pushing its components to the Central Repository.'
103
- // url 'http://www.example.com/example-application'
104
- //
105
- // scm {
106
- // connection 'scm:svn:http://foo.googlecode.com/svn/trunk/'
107
- // developerConnection 'scm:svn:https://foo.googlecode.com/svn/trunk/'
108
- // url 'http://foo.googlecode.com/svn/trunk/'
109
- // }
110
- //
111
- // licenses {
112
- // license {
113
- // name 'The Apache License, Version 2.0'
114
- // url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
115
- // }
116
- // }
117
- //
118
- // developers {
119
- // developer {
120
- // id 'manfred'
121
- // name 'Manfred Moser'
122
-
123
- // }
124
- // }
125
- // }
126
- // }
127
- // }
128
- // }
0 commit comments