Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Manage jar dependencies similar to how bundler manages gem dependencies:
differences compared to bundler
bundle install
first if any of the gems have jar dependencies.jbundle
, see jbundle help
on the possible options and how to update a single jar, etc.Install JBundler with:
jruby -S gem install jbundler
First, create a Jarfile, something like:
jar 'org.yaml:snakeyaml', '1.14'
jar 'org.slf4j:slf4j-simple', '>1.1'
Install jar dependencies
jruby -S jbundle install
Loading the jar files
require 'jbundler'
It will add all the jar dependencies in the java classpath from the Jarfile.lock
.
More info about the Jarfile and about versions.
For adding a maven repository see Jarfile.
Running the integration test
./mvnw verify
./mvnw clean verify
or a single integration test
./mvnw verify -Dinvoker.test=running_rspec_via_rake
./mvnw clean verify -Dinvoker.test=running_rspec_via_rake
Building the gem (see ./pkg)
./mvnw package -Dinvoker.skip
Or just
gem build jbundler.gemspec
Here is an example usage of the AliasEvent class from the snakeyaml package
#test_file.rb
require 'jbundler'
require 'java'
java_import 'org.yaml.snakeyaml.events.AliasEvent'
class TestClass
def my_method
puts AliasEvent.methods
end
end
TestClass.new.my_method
Since the version resolution happens in two steps - first the gems, and then the jars/poms - it is possible in case of a failure that there is a valid gems/jars version resolution which satisfies all version contraints. So there is plenty of space for improvements (like maven could resolve the gems as well, etc).
The whole project actually started with a controversial discussion on a pull request on bundler. This very same pull request were the starting point of that project here. Probably by now there is not much left of the original code, but many thanks to ANithian for giving the seed of that project.
Almost all code is under the MIT license but the java class (AetherSettings.java)[https://github.com/mkristian/jbundler/blob/master/src/main/java/jbundler/AetherSettings.java] which was derived from EPL licensed code.
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)enjoy :)
FAQs
Unknown package
We found that jbundler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.