Due to a security issue with org.codehaus.groovy:groovy-all i need to update it within a grails project. the issue is that it is being used by org.grails:grails-bootstrap and i am unable to update that, because it is never explicitly imported in my buildconfig.groovy file.
grails-bootstrap is currently importing org.codehaus.groovy:groovy-all:2.3.6 and i need it to use org.codehaus.groovy:groovy-all:2.4.13
is there any way to update only the sub-dependency? is there any way to force a new version of org.grails:grails-bootstrap.
any help would be appreciated.
edit: i am on grails version 2.4.3 and dont want to make the upgrade to 3.x.x
You can add an explicit dependency in BuildConfig.groovy.
Related
Similar to how you get your apps version kCFBundleVersionKey how does one get the version of the package you are working in?
I don't think it's possible at the moment to get the value easily.
You can either read the Package.resolved file or you can set up a public constant where you would define the version of your library.
public let version = "0.0.1"
import MyLibrary
print(MyLibrary.version)
There isn't a standard way how to do this, every package could have a different constant (or not have it at all)
You can check package version rules in project package dependencies tab. Check screenshot below. Propably it would be sufficient for most use cases.
Edit: The context has changed, the question was to get the version of MyPackage I'm working on via code. There isn't any documented or recommended method as of now. Though this can be achieved by a hack through reading the Package.resolved file as mentioned by Malcolm.
I'm not deleting this answer for any future users who are looking for answer on how to get the exact latest version of a Package.
You can give the same major version number and give Update to latest package version option on Xcode. eg: If current version is 2.4.5 you just need to provide 2.0.0 and update. There is also an option to provide the exact version of swift package you need.
I am developing an app using nativescript with AppBuilder and Visual Studio. I am using a plugin called nativescript-pdf-view (https://github.com/Merott/nativescript-pdf-view). Everything worked fine until Apple changed one of their methods in xCode 8. See http://fluentreports.com/blog/?p=401 for details.
I have submitted a question to the author of the plugin 5 days ago, but have not received an answer yet, so I decided to make the change in the plugin code myself. The change is very simple, but after the update when I load the app to my test device, I still get the same error.
My question is: How does AppBuilder build plugins? Is it enough to update source code of the plugin to update it? How can I force the AppBuilder to rebuild this plugin?
I have a feeling the the plugin is cached somewhere because I get the same error message and stack trace even though the source code is changed.
Any suggestions are greatly appreciated.
In order to use a custom plugin in your project you have to update the reference in your package.json. For example in your case, you can:
Get the source code of nativescript-pdf-view.
Fix the issue you've noticed.
Build a .tgz from your modified source code (npm pack command should help you to create a .tgz).
Include the .tgz in your project (for example at the root level, right next to package.json).
Reference the .tgz in your package.json, so instead of having "nativescript-pdf-view": "1.0.0", you should have "nativescript-pdf-view": "file:nativescrip-pdf-view.tgz".
Build your project.
This way the custom plugin will be used instead of the one from npm.
There's no caching of plugins in the cloud builds. The process uses your package.json to install required dependencies.
I am trying to update an old plugin i found. My Objective C skills are close to null and i was wondering if somebody could point me to a suitable guide to update this plugin. I have made a plugin.xml and installed it in my app succesfully but but the native code is way to old (phonegap 1.5)and does not work.
Would be even better if someone could help me .
This is the plugin i wanted to update for use in phonegap 3.0
https://github.com/phonegap/phonegap-plugins/tree/DEPRECATED/iOS/AudioRecord
Thanks in advance for taking out time to check this out
I'm installing and configuring Polymer and i get to this:
Unable to find a suitable version for polymer, please choose one:
1) polymer#master which resolved to ced408df76 and is required by core-component-page#a431519835, highlightjs-element#a2c5fc08d0, marked-element#761922b4a2
2) polymer#0.2.4 which resolved to 0.2.4 and is required by core-ajax#0.2.4, core-bind#0.2.4, core-collapse#0.2.4, core-doc-viewer#0.2.4, core-elements#0.2.4, core-firebase#0.2.4, core-icon#0.2.4, core-icons#0.2.4, core-iconset#0.2.4, core-iconset-svg#0.2.4, core-input#0.2.4, core-layout#0.2.4, core-layout-grid#0.2.4, core-layout-trbl#0.2.4, core-list#0.2.4, core-localstorage#0.2.4, core-media-query#0.2.4, core-menu-button#0.2.4, core-meta#0.2.4, core-overlay#0.2.4, core-range#0.2.4, core-selection#0.2.4, core-selector#0.2.4, core-theme-aware#0.2.4, core-tooltip#0.2.4, core-transition#0.2.4
3) polymer#~0.2.4 which resolved to 0.2.4 and is required by project
Prefix the choice with ! to persist it to bower.json
I'm still learning about and i dont know which one i should choose and why this problem happend. Can anyone explain me this tree options?
Thanks..
The recommended way to install Polymer 0.2.4 is through Bower. We’ve
chosen Bower because it removes the hassle of dependency management
when developing or consuming elements.
from http://www.polymer-project.org/docs/start/getting-the-code.html
I'd go with
2) polymer#0.2.4 which resolved to 0.2.4 and is required by
...
This happened because when bower went to install a version of polymer it was presented with three options and didnt know which one to choose from. Many packages have a stable release and a development version, which you want is up to yourself. You can usually check up the packages on github or there websites to find which package might suit you best
well I have to update from cordova 2.5.0 to cordova 2.9.0 - so I have to update first from 2.5. to 2.6 to...2.9.0
I'm always having troubles with these upgrades, because I'm not a native speaker and might get the documentation on cordova.apache.org wrong
Ok here is where I'm stuck right now:
I have to run the create command with the following parameters:
- Path to your new Cordova iOS project
- Package name, following reverse-domain style convention
- Project name
2 questions:
- is the command-line-tool the terminal
- what is meant by package-name? Is is important, that this new project should have the same package-name and reverse-domain-style like my real project i want to upgrade from 2.5 to 2.x?
Sorry if this is a ridicolous question, but I'm really desperate right now :(
Hope someone could help me.
Here is the link which will help you to upgrade your existing PhoneGap application.
http://docs.phonegap.com/en/2.9.0/guide_upgrading_android_index.md.html
Yes you need to use the terminal for using command line tool.
Package name is used for unique identification for your app. So it is important as the same package name you also need to declare in your provisioning certificate for iOS . So you need to give the same package name as in your existing project.