Rohan Maity
06/01/2019, 9:49 AMDominaezzz
06/01/2019, 11:10 AMadev_one
06/01/2019, 11:28 AMmaven-publish
plugin
plugins {
id("org.jetbrains.kotlin.multiplatform")
id("maven-publish")
}
Then set up publishing info
project.name = "artifact-name" // default is module name
group = "com.example"
version = "0.1.0"
publishing {
repositories {
maven {
url = REPO_URL + '/' + REPO_KEY
credentials {
username REPO_USERNAME
password REPO_ENCRYPTED_PASSWORD
}
}
}
}
And in terminal:
./gradlew :artifact-name:publish
Native artifact will be published as com.example:artifact-name.native:0.1.0
Rohan Maity
06/01/2019, 11:38 AMcommonMain
, jvamMain
, linuxMain
. How would I do for this. Do I have replace artifact-name
with each of theseDominaezzz
06/01/2019, 12:56 PMartifact-name
with the name of your project. All the targets (main) will be published.Rohan Maity
06/01/2019, 1:33 PMTobi
06/02/2019, 6:02 AMRohan Maity
06/02/2019, 11:37 AMaddamsson
06/02/2019, 11:45 AMRohan Maity
06/02/2019, 11:45 AMaddamsson
06/02/2019, 11:46 AMRohan Maity
06/02/2019, 11:47 AMaddamsson
06/02/2019, 11:47 AMRohan Maity
06/02/2019, 11:48 AMinstall
do i have to write it on my own ?Tobi
06/02/2019, 11:57 AMmavenPublish bintrayUpload
this will first generate the publications and then upload them to bintray.
Just make sure to apply both plugins maven-publish
and bintray
.
You can also first perform a dryRun
(https://github.com/bintray/gradle-bintray-plugin/blob/master/README.md#Plugin_DSL) to see whether all artifacts are included and all names are correct.Rohan Maity
06/02/2019, 12:45 PM* What went wrong:
Some problems were found with the configuration of task ':bintrayUpload'.
> No value has been specified for property 'apiKey'.
> No value has been specified for property 'packageName'.
> No value has been specified for property 'repoName'.
> No value has been specified for property 'user'.
I am facing this issue even though I gave tthe user and key'Tobi
06/02/2019, 2:10 PMRohan Maity
06/02/2019, 2:26 PMrusshwolf
06/02/2019, 3:13 PMmaven { url '<https://dl.bintray.com/jetbrains/kotlin-native-dependencies>' }
as well as the dependency classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4-jetbrains-3"
keys.properties
which isn’t checked in but has the format
bintrayUser=...
bintrayKey=...
Rohan Maity
06/02/2019, 3:38 PMrusshwolf
06/02/2019, 3:56 PMRohan Maity
06/02/2019, 6:24 PMbintrayUpload
task ran successfully But I recieved this skipping message. I think none of files uplafed > Task :KParser:bintrayUpload
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/libs/KParser-js-0.0.1-sources.jar'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/libs/KParser-js-0.0.1.jar'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/publications/js/module.json'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/publications/js/pom-default.xml'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/libs/KParser-jvm-0.0.1-sources.jar'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/libs/KParser-jvm-0.0.1.jar'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/publications/jvm/module.json'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/publications/jvm/pom-default.xml'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/publications/kotlinMultiplatform/module.json'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/publications/kotlinMultiplatform/pom-default.xml'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/libs/KParser-linux-0.0.1-sources.jar'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/classes/kotlin/linux/main/KParser.klib'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/publications/linux/module.json'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/publications/linux/pom-default.xml'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/libs/KParser-metadata-0.0.1-sources.jar'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/libs/KParser-metadata-0.0.1.jar'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/publications/metadata/module.json'.
Skipping upload for missing file '/home/thelimitbreaker/KParser/KParser/build/publications/metadata/pom-default.xml'.
serebit
06/03/2019, 11:57 AMaddamsson
06/03/2019, 11:58 AMserebit
06/03/2019, 12:01 PMUpdate 2: Bintray has now published a full incident report detailing the events, their remediation efforts, and apologizing for the incident again.
addamsson
06/03/2019, 1:02 PM