xenoterracide
12/22/2017, 2:35 PMSystem.getenv("JRS_S3_URI")?.let {
val sourcesJar by tasks.creating(Jar::class) {
classifier = "sources"
from(java.sourceSets["main"].allSource)
}
publishing {
repositories {
maven {
url = uri(it)
credentials(AwsCredentials::class.java) {
accessKey = System.getenv("JRS_ACCESSKEYID")
secretKey = System.getenv("JRS_SECRETACCESSKEY")
}
}
}
(publications) {
"mavenJava"(MavenPublication::class) {
from(components["java"])
artifact(sourcesJar)
}
}
}
}
from the gradle version? I don't get why it's AwsCredentials::class.java
or even what the java is at all, or why publications is
(publications) {
"mavenJava"(MavenPublication::class) {
like literally If I hadn't copied it, I would never have figured it out from what I hadeskatos
12/23/2017, 12:24 PMeskatos
12/23/2017, 12:26 PM(publications)
, this is a workaround for an existing issue, see https://github.com/gradle/kotlin-dsl/issues/459