wooga / atlas-paket

Paket plugin for gradle
https://wooga.github.io/atlas-paket/
Apache License 2.0
0 stars 2 forks source link

Add paket-unity UPM mode [ATLAS-1273] #96

Closed Joaquimmnetto closed 1 year ago

Joaquimmnetto commented 1 year ago

Description

Paket packages can now be configured to be installed as UPM packages. This can be useful when your paket package contains an UPM one (with a package.json file), and you want it to be integrated with Unity's packages folder.

This mode sets the installation directory (paketOutputDirectoryName) to the unity project's Packages folder, and ensures that the package.jsonfile for each dependency is in the installed package root.

If an installed package is not UPM-compatible, that is, it doesn't have a package.json file, such file will be created. By default, a package.json is generated with com.wooga.nuget.${paketPackage.toLowerCase()} name, and version 0.0.0, but those can be overridden and more properties can be added on using the mappings in paketUpmPacakgeJson.

UPM mode can be enabled through the paketUpmPackageEnabled property, or using the paketUnity.enablePaketUpmPackages() extension method. It is disabled by default.

Changes