okhttp icon indicating copy to clipboard operation
okhttp copied to clipboard

Update snapshot and release publishing after gradle 7 upgrade

Open yschimke opened this issue 4 years ago • 7 comments

Need to use similar approach to okio, replacing uploadArchives with publish. Currently blocked on signing key.

See okio for modern config https://github.com/square/okio/blob/079c09ea4c5b7dea947596debc478efd26d36922/buildSrc/src/main/kotlin/okio-publishing.gradle.kts

yschimke avatar Aug 03 '21 09:08 yschimke

I think we can upgrade Dokka 1.5.0 with this change.

Goooler avatar Aug 11 '21 19:08 Goooler

I'm not sure these are related, think they can land separately.

Previous exploration which was blocked at the time, hopefully we can crib the config from similar square projects

https://github.com/square/okhttp/issues/6450 https://github.com/Kotlin/dokka/issues/1592 (fixed) https://github.com/square/okhttp/pull/6342

yschimke avatar Aug 12 '21 06:08 yschimke

I've converted all gradle files to kts but root build.gradle, hopefullly to convert it after this.

Goooler avatar Aug 12 '21 06:08 Goooler

May we should refer to kotlinpoet (with latest gradle-maven-publish-plugin and Dokka), which I think it's better than okio.

Goooler avatar Aug 16 '21 15:08 Goooler

@Goooler whats the current best advice for this? You seem to have a clearer idea than I do.

yschimke avatar Nov 28 '21 11:11 yschimke

It seems like publishing to mavenLocal is ok.

image

Goooler avatar Nov 29 '21 04:11 Goooler

@yschimke Should we add github cache actions on CI? See https://github.com/actions/cache

Goooler avatar Feb 15 '22 04:02 Goooler