I have a maven package that contains multiple packages. I would like to delete subpackage in it but I can't find out how to do this.
You can delete file from package in Bintray UI or use rest api method
DELETE /content/:subject/:repo/:file_path
But what if i want to delete whole package? Why there is no support for this?
You can delete your package using the Delete Package REST API.
There are many more REST API calls in Bintray REST API page.
I am with JFrog, the company behind bintray and artifactory.
Related
How can you take an existing repository, with many branches, and split it so that some (new front end devs) have access to only parts of the code, but retain the history in the main/full repo?
We have a (huge) Laravel project with a few SPA parts, and 3 separate admin sections. It's all currently in one single repo. Assuming I set up an online dev server so that the API is retrieving the right data based on the branch/version they're working on, is it possible to split the repo so that I (and a few others) have access to the full codebase, while others only can clone/push/pull from a sub repo? The sub repo would exclude the admin sections and API. I assume I'll have to completely restructure the project directory, which is fine.
We all work remotely, and I'm aiming to hire a few new people but don't want to give access to the full code base right away.
Yes, this can be done. You can use git submodules.
In this regard you can have the smaller codebase repo in a 'submodule' which lives inside your main larger repo.
Steps you'd need to take:
Remove the relevant code from the main repo
Add it to a fresh repo
Call the following commands from the main repo:
git submodule add [URL to smaller repo]
git submodule init
Nice article on it here
In my Laravel project, I have different types of modules like employee, customer & vendor modules. Recently I split each module into a separate repository. Now if I adding a Model means, I need to duplicate it other repositories also. Is there is any possibility to overcome this?
Is there is any possibility to sync/share the Models folder with other repositories also?
Kindly help me to fix this.
FYI - I'm using Bitbucket for my repositories.
I'd make a composer package out of these models so that you can require them in the application. Recently, I found a documentation on laravel packages: https://laravelpackage.com/
I'd like to have roles in a package I'm creating. What is the best way to do this?
Should I use an existing package (Entrust, Bouncer, etc.) or should I implement a roles feature with no dependency?
Using an existing package could end in a conflict if it's already installed in another version, or if another package is already used.
Implementing the feature with no dependency is like reinventing the wheel...
Actually, the best approch is probably to not define roles or implement authorization of any kind in the package and let the user define policies in their application.
Default policies may be provided and published with artisan vendor:publish command, if the user wants to.
Models should use Gate to check user's ability to view/create/delete/etc.
I have two questions which are quite related.
1) I'm building a Laravel package which will have a package config file. It can be published using php artisan vendor:publish command. Now in the service provider class of that package, I want to know that if that file has been published by the user or not. How can I do that? By simply checking file existence or is there any Laravel specific way for that?
2) In the view file of that package, I want to include a js file which is also there in that same package. How can I do that? Do I have to publish it first into Laravel's public directory and then include it? If possible I don't want to publish it.
Let me know if anything is not clear.
Thanks
I have a Maven generated site, and I would like to include some Google Ads or similar type of publicity in the site.
GoogleAds works with a script tag in the HTML, however when using a simple Maven site with only APT files, I cannot see a way to put the publicity in the files.
Is there a way to include those script tag in order to add publicity to my site?
To put Google publicity inside a Maven generated site you can use the plugin MGAIP.
You just add this as a report
net.sf.mgaip
mgaip
1.1
And then put the googleAds as a poweredBy.
For more information please visit http://mgaip.sourceforge.net