Skip to content

Commit dbb88f4

Browse files
committed
Setting up the Kotlin Library stuff
1 parent ef85c74 commit dbb88f4

File tree

1 file changed

+6
-47
lines changed

1 file changed

+6
-47
lines changed

build.gradle.kts

+6-47
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,17 @@ publishing {
6262
publications {
6363
create<MavenPublication>("mavenCentral") {
6464
from(components["java"])
65+
pom {
66+
scm {
67+
68+
}
69+
}
6570
}
6671
}
6772

6873
repositories {
6974
maven {
70-
name = "external"
75+
name = "mavenCentral"
7176
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
7277
credentials(PasswordCredentials::class)
7378
}
@@ -80,49 +85,3 @@ signing {
8085
useInMemoryPgpKeys(signingKey, signingPassword)
8186
sign(publishing.publications)
8287
}
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

Comments
 (0)