``` System.getenv("JRS_S3_URI")?.let { publish...
# gradle
x
Copy code
System.getenv("JRS_S3_URI")?.let {
    publishing {
        repositories {
            maven {
                url = uri(it)
                credentials(AwsCredentials::class.java) {
                    setAccessKey(System.getenv("JRS_ACCESSKEYID"))
                    setSecretKey(System.getenv("JRS_SECRETACCESSKEY"))
                }
            }
        }
        (publications) {
            "mavenJava"(MavenPublication::class) {
                from(file("$project.name-$project.version"))
            }
        }
    }
}
can anyone tell me how to correct the
from
to DWIM? the jar already exists, I simply need to generate a pom for it and publish both