opened
Kevin-Lee
username_0
# Issue #145 - Publish to Maven Central
* Publish tagged artifacts to maven central
* Fix bintrayRepository in build.sbt and made it use ENV var first
* Add compulsory environment variable validation to the release script (`BINTRAY_USER` and `BINTRAY_PASS`)
* Use more environment variables for easy customization
* Now it publishes to only maven repo (no more generic one with ivy and maven styles)
* Add cache setup for Travis
* sbt 1.2.8 => 1.3.10
Publish to Maven Central
issue
created
Kevin-Lee
username_0
@username_1 
* I wanted to test it by publishing it to my personal repo but I couldn't as its org name is different from my personal one.
* I really think that Hedgehog is deployed to only one repository (i.e. Maven). It looks confusing when there are two repos and two different style (i.e. ivy and maven). Since sbt never uses ivy style unless it's set explicitly, I don't think it's necessary at all to have ivy style artifacts.
comment
created
charleso
username_1
Sorry Kevin, even though I agree it's cleaner, it means people who already have those ivy settings will be very confused. I'm happy to "deprecate" it, but is there any reason to not keep publishing to the old locations for now?
comment
created
charleso
username_1
@username_0 Thanks heaps for that. If you don't mind adding back in the old publish set, and maybe verify whether/what you need to set in env vs sbt setting then I'm definitely happy/keen to merge this.
comment
created
Kevin-Lee
username_0
Once we have Hedgehog published to Maven, we don't need to worry about having this extra resolver in `build.sbt` and that's why I removed it. Whether others have ivy setting or not, it will work as it's available in Maven Central.

Oh... It's important because of non-tagged release? I wasn't sure if you want to keep non-tagged release after this Maven Central release. 

Anyway, I will put it back.
comment
created
Kevin-Lee
username_0
I needed them for test deploy to my repo (e.g. https://bintray.com/kevinlee/maven/hedgehog-core). After I finished it, I thought that it didn't harm anything but useful so left it there. Though I'm not sure if you're talking about all ENV vars in the `.travis.yml` and release script or the ones in `build.sbt` or both. 

Anyway, I can put the old ones back if you want. What do you think?
comment
created
Kevin-Lee
username_0
@username_1 I did fixup commit and am waiting for the answers to the remaining issues above. Please let me know and when I get the final answer, I will do `autosquash`.
comment
created
Kevin-Lee
username_0
@username_1 I'll do some test commits and let you know once it's ready for reviewing again. I'd like to test it with my repo.
comment
created
Kevin-Lee
username_0
@username_1 I created my personal generic repo for testing. 
https://bintray.com/kevinlee/scala-hedgehog

and these are maven ones.
* https://bintray.com/kevinlee/maven/hedgehog-core
* https://bintray.com/kevinlee/maven/hedgehog-runner
* https://bintray.com/kevinlee/maven/hedgehog-sbt

As I already mentioned, I can't do a test for publishing to the Maven Central.
comment