Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple jar files support with jrubyJar #406

Open
xifanyan opened this issue May 21, 2020 · 0 comments
Open

multiple jar files support with jrubyJar #406

xifanyan opened this issue May 21, 2020 · 0 comments

Comments

@xifanyan
Copy link

xifanyan commented May 21, 2020

I have a bunch of scripts which based on same set of library file

root  |-->s1--> s1.rb
      |-->s2--> s2.rb
      |-->lib--> f1.rb
            |--> f2.rb

I have no problem to create one runnable jar file based on either s1 or s2, that worked perfectly, thanks for the great work. but how can I make my build.gradle to have 2 set of tasks and generate s1.jar and s2.jar seperately ?

I tried to create task based on jrubyJar, obvious it does not like the idea. and reading through the source code, that does not seem to support it as well.

any suggestion ?

build.gradle
################
plugins {
    id "com.github.jruby-gradle.jar" version "2.0.0"
}

repositories {
    jcenter()
    ruby.gems()
}

dependencies {
    jrubyJar "rubygems:???:?.?.?"
}

jrubyJar {
    jrubyVersion '9.1.17.0'
    from 'lib'
    initScript "s1/s1.rb"
}
################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant