-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build refactor and bintray plugin replacement #145
Conversation
# Conflicts: # build.gradle.kts
Also out of curiosity, why did you undo your |
The current upstream build already contains a different way to generify the build. So I decided to keep the upstream version. |
Fair enough, I'm just more used to the "default" (as in, the one that comes with a newly generated MPP lib) one. |
Thanks for the PR. As for the deployment, I guess snapshot releases are the same, how do I perform regular releases? manually? |
I do regular releases manually from gradle, but you can trigger the deploy process from CI. Exactly the same way, you were doing for bintray plugin. The only difference is that you have to use |
The difference is in naming and tests. I am not sure that native tests are running correctly in this variant. On the bright side, source set naming is the same for different OS. |
@altavir, don't know if you saw what I wrote above, what's all the |
Oops. Forgot to clear it out. I will fix it right away. Those are parts of our deploy plugin, I used at first. |
Yeah, I thought so, that's why I was asking just to make sure. :) |
My bad, didn't realise I needed to press "start review" for my comment to be submitted so I didn't actually "write" anything above. :') |
@oshai, if you make a snapshot version for testing let me know and I'll give it a go. |
@nunocastromartins you can use this one: https://bintray.com/mipt-npm/dev/kotlin-logging/1.11.5-npm. It is exactly the same, only with a different repository name. |
Ah, thanks, it works fine! I mean, I was already using another version of your fork for testing IR stuff, so I had no doubts that yours would work. My offer was mostly to check that @oshai got the publishing to work correctly on his end. |
I will create a snapshot to test ASAP. |
The snapshot is here: http://oss.jfrog.org/webapp/builds/kotlin-logging/553 |
Everything seems to be working. :) Just one question, are you planning to release this as a minor version or version 2.0? I noticed that you named it 1.11.5-SNAPSHOT. |
It will be version 2.0, thanks for pointing out! |
@altavir - Thank you very much for the PR! |
You are welcome. Sadly, I will have to use my fork for now since I work on Windows and I need both mingw and Linux native targets (windows generates them both). |
Snapshot for 2.0.0 is here: http://oss.jfrog.org/webapp/builds/kotlin-logging/555 |
@altavir I wonder if I can build windows version using travis: https://docs.travis-ci.com/user/reference/windows/ |
@oshai I think that running deploy script from multiple virtual machines with different OSes should do the trick. The build script deploys artifact relevant to the system you are currently using. On windows (at least with WSL installed) it is possible to generate artifacts both for windows and for Linux, so I am deploying everything from the local machine right now. I will play around with multi-system deployment as soon as we finish adding native targets to our libraries. |
Created #149 we will see how it goes. |
Btw @oshai, forgot to report, build |
@altavir trying to publish I get the following error:
Any idea what is missing? |
@oshai I think that the problem is with project properties. This line ensures that bintray repository publication is not registered unless |
Thanks, that seems to work! |
I released 2.0.2 to bintray and maven central. Will update docs soon. |
@altavir do you know if maven central has similar api to the bintray one so the publish plugin can be used for that as well? |
@oshai Yes, it should work exactly the same way for maven central, just with a different repository definition. Though maven central has more strict rules about artifact preparation and I never tried that. There are a lot of examples though. Like the official one. |
Fix fo #126 #130 #144 and partially #45