jvshahid / buildr-dependency-extensions Goto Github PK
View Code? Open in Web Editor NEWA Buildr extension that enables transitive dependency resolution by default.
A Buildr extension that enables transitive dependency resolution by default.
When I have a multi-module project, and depend upon a Jar artifact, I get the following.
Its because the JarTask is ActsAsArtifact
NoMethodError : undefined method `depth=' for #<Buildr::Packaging::Java::JarTask:0x7f907b196050>
/home/US/proyal/.gem/ruby/1.8/gems/buildr-dependency-extensions-0.2/lib/buildr-dependency-extensions/transitive-buildr.rb:108:in `add_dependency'
/home/US/proyal/.gem/ruby/1.8/gems/buildr-dependency-extensions-0.2/lib/buildr-dependency-extensions/transitive-buildr.rb:63:in `resolve_compile_dependencies'
/home/US/proyal/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1277:in `each'
/home/US/proyal/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1277:in `send'
/home/US/proyal/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1277:in `each'
We have a buildfile that specifies 2 child projects, lets call them foo:client and foo:server. When I do a buildr package and have specified extend PomGenerator for the child projects the artifactIds are invalid. They look like "foo:client" instead of "foo-client". The ":" is invalid as a artifactId.
The fix is probably pretty easy. In the pom_hash, you could do this instead
'artifactId' => project.name.gsub(":", "-")
For multi-module projects, it would be handy to do:
define 'foo' do
extend TransitiveDependencies
project.transitive_scopes = [:compile]
define 'bar' do
package:jar
end
define 'baz' do
compile.with project("bar")
package :jar
end
end
right now you have to specify the extension for each child module individually
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.