KTSで社内ライブラリを配信する / Distribute a company local library with KTS

KTSで社内ライブラリを配信する / Distribute a company local library with KTS

E505897a79eede1a676f92740261e8f8?s=128

Masatoshi Kubode

December 18, 2018
Tweet

Transcript

  1. ©2018 Wantedly, Inc. ,54Ͱࣾ಺ϥΠϒϥϦΛ഑৴͢Δ QPUBUPUJQT ٱอग़խढ़ 2018/12/18 -

  2. ©2018 Wantedly, Inc. ٱอग़խढ़ 8BOUFEMZ ओʹ8BOUFEMZ7JTJUͷ"OESPJEΞϓϦΛ։ൃ͍ͯ͠·͢ɻ ࠷ۙJ04΋൒೥΄Ͳ΍ͬͯ·ͨ͠ɻ ,PUMJO 1PLFNPO(P NFUP4USJOH

    5XJUUFS !TXJ[@BSE (JU)VC !LVCPEF
  3. ©2018 Wantedly, Inc.  ͳΜͰࣾ಺഑৴͢Δͷ͔  ࣮૷  ഑৴ͷํ๏ ࿩͢͜ͱ

  4. ©2018 Wantedly, Inc. 8IZ ͳͥࣾ಺ϥΠϒϥϦ഑৴͢Δͷ͔

  5. ©2018 Wantedly, Inc. w σβΠϯγεςϜͷͨΊ w ""3ϥΠϒϥϦԽͯ͠NBWFOͰ഑৴ w 7JTJUͱ1FPQMFͷ྆ΞϓϦͰར༻͢ΔͨΊ w

    ࣗࣾ.BUFSJBM$PNQPOFOUTͷΑ͏ͳ΋ͷ Why
  6. ©2018 Wantedly, Inc. σβΠϯγεςϜ

  7. ©2018 Wantedly, Inc. w σβΠϯͷݪଇɺίϯϙʔωϯτ܈ w ৭ɺςΩετελΠϧɺΞΠίϯͳͲ w ϘλϯɺςΩετϑΟʔϧυͳͲͷίϯϙʔωϯτ w

    σβΠϯͱ࣮૷ͷίετ࡟ݮ σβΠϯγεςϜ
  8. ©2018 Wantedly, Inc. ࣮૷ σβΠϯγεςϜͷ"OESPJE࣮૷

  9. ©2018 Wantedly, Inc. w σβΠϯγεςϜͷઃܭख๏ͷҰͭ Atomic Design ݪࢠ(atom) ෼ࢠ(molecule) ༗ػମ(organism)

  10. ©2018 Wantedly, Inc. Atomic Design Ϟδϡʔϧߏ੒

  11. ©2018 Wantedly, Inc. Ͳ͏഑৴͢Δ͔ NBWFOͷߏ੒

  12. ©2018 Wantedly, Inc. w (SBEMF͸4ͷ63*Λαϙʔτ͍ͯ͠Δ w ೝূ͋Γ΋αϙʔτ w ͱ͍͏͜ͱͰ4ʹͨ͠ mavenϦϙδτϦΛͲ͏͢Δ͔

    repositories { maven { url = uri("s3://foo-bar") } }
  13. ©2018 Wantedly, Inc. ഑৴ͷߏ੒

  14. ©2018 Wantedly, Inc. ഑৴͢Δ "OESPJEϞδϡʔϧͷNBWFOରԠ

  15. ©2018 Wantedly, Inc. w "OESPJE͸ͦͷ··Ͱ͸ΞοϓϩʔυͰ͖ͳ͍ w QPNYNMͷઃఆΛେྔʹॻ͘ඞཁ͕͋Δ AndroidͰͷmaven

  16. ©2018 Wantedly, Inc. w QPNYNMͷ໘౗ࣄΛղܾͯ͘͠ΕΔ w ϚϧνϞδϡʔϧରԠ android-maven-gradle-plugin

  17. ©2018 Wantedly, Inc. build.gradle.kts // $projectRoot/build.gradle.kts allprojects { repositories {

    google() jcenter() } group = "com.wantedly.design" // artifactId = module name version = "0.0.1" }
  18. ϖʔδλΠτϧ ϖʔδαϒλΠτϧ ©2018 Wantedly, Inc. HSBEMFXVQMPBE"SDIJWFT

  19. ϖʔδλΠτϧ ϖʔδαϒλΠτϧ ©2018 Wantedly, Inc. ಈ࡞ͤͣ

  20. ©2018 Wantedly, Inc. w (SBEMFʹ͸NBWFO഑৴ϓϥάΠϯ͕ͭ͋Δ w ݹ͍ϏϧτΠϯ w ৽͍͠NBWFOQVCMJTIϓϥάΠϯ w

    BOESPJENBWFOHSBEMFQMVHJO͸ݹ͍ํΛ࢖͏ w ݹ͍ํ͸4΁ͷ഑৴͕αϙʔτ͞Ε͍ͯͳ͍ ͳΜͰʁ
  21. ϖʔδλΠτϧ ϖʔδαϒλΠτϧ ©2018 Wantedly, Inc. ৽͍͠ํʹରԠͨ͠ ϓϥάΠϯ͸ͳ͍͔ʁ

  22. ©2018 Wantedly, Inc. w NBWFOQVCMJTI༻ͷ"OESPJE޲͚ϓϥάΠϯ w QPNYNMͷ໘౗ࣄΛ͢΂ͯղܾͯ͘͠ΕΔ w ϚϧνϞδϡʔϧରԠ android-maven-publish

  23. ©2018 Wantedly, Inc. maven.gradle.kts apply(plugin = "digital.wup.android-maven-publish") configure<PublishingExtension> { publications

    { register("mavenAar", MavenPublication::class) { from(components["android"]) } } repositories { maven { url = uri("s3://foo-bar") credentials(AwsCredentials::class) { setAccessKey(wtdMavenAccessKey) setSecretKey(wtdMavenSecretKey) } } } }
  24. ϖʔδλΠτϧ ϖʔδαϒλΠτϧ ©2018 Wantedly, Inc. HSBEMFXQVCMJTI

  25. ϖʔδλΠτϧ ϖʔδαϒλΠτϧ ©2018 Wantedly, Inc.

  26. ©2018 Wantedly, Inc. w ,54͸໰୊ͳ͘࢖͑Δ w DPOpHVSFϒϩοΫͱ͔஌Βͳ͍ͱϋϚΔ w ϥΠϒϥϦ഑৴͸ҙ֎ͱ؆୯ʹͰ͖ͨ w

    BOESPJENBWFOQVCMJTI͕͓͢͢Ί ·ͱΊ
  27. ©2018 Wantedly, Inc. BOESPJENBWFOHSBEMFQMVHJO IUUQTHJUIVCDPNEDFOEFOUTBOESPJENBWFOHSBEMFQMVHJO BOESPJENBWFOQVCMJTI IUUQTHJUIVCDPNXVQEJHJUBMBOESPJENBWFOQVCMJTI ϦϯΫ