Victor Harlan Lacson
06/13/2020, 6:57 AMVictor Harlan Lacson
06/13/2020, 9:44 AMpublishing {
publications {
create<MavenPublication>("kotlin-proj") {
pom {
name.set("My Library")
description.set("A concise description of my library")
url.set("<http://www.example.com/library>")
properties.set(mapOf(
"myProp" to "value",
"prop.with.dots" to "anotherValue"
))
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("<http://www.apache.org/licenses/LICENSE-2.0.txt>")
}
}
developers {
developer {
id.set("johnd")
name.set("John Doe")
email.set("<mailto:john.doe@example.com|john.doe@example.com>")
}
}
scm {
connection.set("scm:git:<git://example.com/my-library.git%22|git://example.com/my-library.git">)
developerConnection.set("scm:git:<ssh://example.com/my-library.git%22|ssh://example.com/my-library.git">)
url.set("<http://example.com/my-library/>")
}
}
}
}
}
bintray {
user = "user"
key = "key
pkg(delegateClosureOf<BintrayExtension.PackageConfig> {
repo = "libraries"
name = "kotlin-proj"
userOrg = "userx123"
setPublications("kotlin-proj")
})
}
when i execute gradle bintrayUpload
it was only uploading pom.xml and not my jar file. What am I missing here?
I read about fileSpec
but dont know how to use it in gradle kts.
can someone help me out on this?