npm-publish

Gradle plugin for NPM package publishing. Allows for arbitrary publishing as well as seamless integration with Kotlin JS/MPP plugins.

APACHE-2.0 License

Stars
121

Bot releases are hidden (Show)

npm-publish - 3.4.3 Latest Release

Published by mpetuska 4 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/mpetuska/npm-publish/compare/3.4.2...3.4.3

npm-publish - 3.4.2

Published by mpetuska 10 months ago

This is a maintenance release with a few minor bugfixes.

Verified Versions

  • Kotlin: 1.9.22
  • Gradle: 8.5
  • JDK: 11

Added

Changed

  • Upgraded dependencies
  • Switched out com.netflix.nebula.node plugin hook for node autoconfig to com.github.node-gradle.node plugin which
    it depends on
  • Implemented a patch for older KGP users to remedy https://youtrack.jetbrains.com/issue/KT-59523 when using ESM

Removed


What's Changed

Full Changelog: https://github.com/mpetuska/npm-publish/compare/3.4.1...3.4.2

npm-publish - 3.4.1

Published by mpetuska about 1 year ago

Verified Versions

  • Kotlin: 1.9.0
  • Gradle: 8.2.1
  • JDK: 11

Added

  • Utility DSL to set NpmRegistry::uri via Provider

Changed

  • Added trailing slashes to npmjs and github registry convenience DSL URIs
  • Fixed configuration cache issues with Boolean property chains

Removed


What's Changed

Full Changelog: https://github.com/mpetuska/npm-publish/compare/3.4.0...3.4.1

npm-publish - 3.4.0

Published by mpetuska about 1 year ago

Verified Versions

  • Kotlin: 1.9.0
  • Gradle: 8.2.1
  • JDK: 11

Added

Changed

  • All sandbox modules and samples have been migrated away from deprecated kotlin/js plugin.
  • Upgraded dependency versions
  • Deprecated kotlin/js plugin integration

Removed


What's Changed

Full Changelog: https://github.com/mpetuska/npm-publish/compare/3.3.1...3.4.0

npm-publish - 3.4.0

Published by mpetuska about 1 year ago

Verified Versions

  • Kotlin: 1.9.0
  • Gradle: 8.2.1
  • JDK: 11

Added

Changed

  • All sandbox modules and samples have been migrated away from deprecated kotlin/js plugin.
  • Upgraded dependency versions
  • Deprecated kotlin/js plugin integration

Removed


What's Changed

Full Changelog: https://github.com/mpetuska/npm-publish/compare/3.3.1...3.4.0

npm-publish - 3.3.1

Published by mpetuska over 1 year ago

Verified Versions

  • Kotlin: 1.8.21
  • Gradle: 8.1.1
  • JDK: 11

Added

Changed

  • Fixed gradle provider chain for nebula node plugin integration
  • Fixed incorrect NodeExec task command line builds and expanded logging

Removed


What's Changed

Full Changelog: https://github.com/mpetuska/npm-publish/compare/3.3.0...3.3.1

npm-publish - 3.3.0

Published by mpetuska over 1 year ago

Verified Versions

  • Kotlin: 1.8.21
  • Gradle: 8.1.1
  • JDK: 11

Added

  • New tag option for NpmPublishTask
  • Integration with com.netflix.nebula:nebula-node-plugin to allow publishing without having NodeJS installed when
    kotlin plugin is not being used

Changed

  • Modified KDoc of properties affected by gradle 8.1.1 new resolution strategy. tl;dr; they now require explicit this
    receiver
  • Replaced refreshVersions plugin with gradle catalogs
  • Upgraded internal dependencies
  • Fixed otp option not being properly propagated to npm executable

Removed


What's Changed

Full Changelog: https://github.com/mpetuska/npm-publish/compare/3.2.1...3.3.0

npm-publish - 3.2.1

Published by mpetuska over 1 year ago

Verified Versions

  • Kotlin: 1.8.10
  • Gradle: 7.6
  • JDK: 11

Added

Changed

  • Pegged plugin compile kotlin version against gradle's embeddedKotlinVersion
  • Removed gson dependency and replaced usages with groovy's JsonSlurper

Removed


What's Changed

New Contributors

Full Changelog: https://github.com/mpetuska/npm-publish/compare/3.2.0...3.2.1

npm-publish - 3.2.0

Published by mpetuska almost 2 years ago

Verified Versions

  • Kotlin: 1.8.0
  • Gradle: 7.5.1
  • JDK: 11

Added

  • New samples project containing examples of various use-cases the plugin is able to cover.
  • @DslMarkers to plugin's DSL to prevent incorrect nested property usage.
  • Pull transitive npm dependencies from project dependencies via publicPackageJson
  • New accessors for assemble and pack tasks inside package DSL
  • KGP 1.8.0 support.

Changed

  • Fix #73: nodeHome override not working when used with kotlin plugin

Removed

  • Support for KGP < 1.8.0!!! DO NOT UPGRADE IF YOU'RE ON OLDER KOTLIN VERSION

Full Changelog: https://github.com/mpetuska/npm-publish/compare/3.1.0...3.2.0

npm-publish - 3.1.0

Published by mpetuska almost 2 years ago

Verified Versions

  • Kotlin: 1.6.21
  • Gradle: 7.5.1
  • JDK: 11

Added

Changed

  • Updated dependency versions
  • Configuration cache support

Removed


What's Changed

New Contributors

Full Changelog: https://github.com/mpetuska/npm-publish/compare/3.0.3...3.1.0

npm-publish - 3.0.3

Published by mpetuska about 2 years ago

Workaround for ListProperty::addAllLater #55

What's Changed

Full Changelog: https://github.com/mpetuska/npm-publish/compare/3.0.2...3.0.3

npm-publish - 3.0.2

Published by mpetuska about 2 years ago

npm-publish - 3.0.1

Published by mpetuska over 2 years ago

Verified Versions

  • Kotlin: 1.7.0
  • Gradle: 7.4.2
  • JDK: 11

Added

Changed

  • Kotlin version bumped to 1.7.0
  • Downgraded language version to 1.4 for better gradle support

Removed


What's Changed

New Contributors

Full Changelog: https://github.com/mpetuska/npm-publish/compare/3.0.0...3.0.1

npm-publish - 3.0.0

Published by mpetuska over 2 years ago

Verified Versions

  • Kotlin: 1.6.21
  • Gradle: 7.4.2
  • JDK: 11

Added

  • New documentation site
  • Functional and Integration test coverage
  • Gradle caching support for configuration, NpmAssembleTask and NpmPackTask (including remote caches)
  • Detekt analyser and formatter

Changed

  • Kotlin plugin version bumped to 1.6.20
  • npmPublishing extension renamed to npmPublish
  • Default packaging directories changed from build/publications/npm to build/packages
  • publication and repository DSLs removed. Use regular gradle's register DSL
  • All API reworked to use gradle provider API. Replace all = assignments with proper .set() invocation.
  • NpmPackageAssembleTask renamed to NpmAssembleTask
  • NpmPackage::moduleName renamed to NpmPackage::packageName
  • NpmPackage::nodeJsDir renamed to nodeHome and moved to NpmPublishExtension. It is now shared across all
    publications.
  • NpmPackage::destinationDir moved to NpmAssembleTask.
  • NpmRegistry::dry propagated to NpmPackTask and NpmPublishTask with --dry cli option added. Both still default
    to NpmPublishExtension::dry
  • All plugin tasks made a lot more abstract and reusable. Especially NodeExecTask and NpmExecTask allowing for
    custom npm script execution on your packages or any other generic tooling.

Removed

  • Support for LEGACY compiler. Stick with 2.1.x if you still depend on it.
  • All eager configuration
  • Custom kotlin delegates for gradle lazy api
  • dev.petuska:kon dependency
  • dev.petuska:gradle-lazy-delegates dependency
  • dev.petuska:klip dependency
  • All kotest dependencies
  • Spotless plugin

PRs

Full Changelog: https://github.com/mpetuska/npm-publish/compare/2.1.2...3.0.0

npm-publish - 2.1.2

Published by mpetuska over 2 years ago

Build Versions

  • Kotlin: 1.4.31
  • Gradle: 7.3.3
  • JDK: 11

Changes

  • Kotlin plugin version bumped to 1.6.10
  • Simplified JsonObject DSL builders by rebasing it onto dev.petuska:kon
  • Implemented proper nested package.json template merging
  • Rolled back to good old ktlint formatting

What's Changed

New Contributors

Full Changelog: https://github.com/mpetuska/npm-publish/compare/v2.1.1...2.1.2

npm-publish - v2.1.1

Published by mpetuska about 3 years ago

Build Versions

  • Kotlin: 1.5.21
  • Gradle: 7.2.0
  • JDK: 11

Changes

  • Kotlin version bumped to 1.5.30
  • Sample GH action introduced to showcase CI publishing
  • Reworked ts-consumer to showcase module inter-dependencies
npm-publish - v2.1.0

Published by mpetuska about 3 years ago

Versions

  • Kotlin: 1.5.21
  • Gradle: 7.2.0
  • JDK: 11

Changes

  • Fixed #24: types configuration property was ignored
  • Added support for setting configuration properties via environment variables too
  • Kotlin version bumped to 1.5.21
npm-publish - v2.0.4

Published by mpetuska about 3 years ago

Versions

  • Kotlin: 1.5.21
  • Gradle: 7.1.1
  • JDK: 11

Changes

  • Updated versions
  • Dynamic version ranges for increased compatibility
  • Fixed a bug that always expected version to be a string
  • Removed some duplicated code in sandbox
  • New sandbox module to check that plugin can work with both, nodejs() and browser() flavours at the same time
  • New ts-consumer module in the sandbox to showcase how to include packed K/JS modules into plain TS module
npm-publish - v2.0.3

Published by mpetuska over 3 years ago

Versions

  • Kotlin 1.5.10
  • Gradle 7.0.2
  • JVM 11+

Changes

  • #19 licence field typo fix to get it working with npm (big thanks to @gaebel)
npm-publish - v2.0.2

Published by mpetuska over 3 years ago

Releases #16

Versions

Kotlin 1.5.10
Gradle 7.0.2
JVM 11+