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

Doesn't support multiple jars in directory #13

Open
ghost opened this issue May 20, 2015 · 2 comments
Open

Doesn't support multiple jars in directory #13

ghost opened this issue May 20, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented May 20, 2015

Now this plugin applies the gradle jar as default jar input. When I have lots of jars need to be complied into dll.
How can I do for that?

@gluck
Copy link
Contributor

gluck commented May 21, 2015

As of today you can't. This plugin is (slightly) opinionated towards making a dll out of a java project.

It'd require some (not much) work which could be along the way of:

  • extract a IkvmBase task that won't be linked to the java task and could be used to ikvm-ize anything
  • leverage IkvmBase into Ikvm one, which would glue it to java conventions

In your case you'd use IkvmBase task then.

Open for contribution on this one if you feel like hacking this plugin.

@Vad1mo
Copy link
Contributor

Vad1mo commented Jun 4, 2015

I do this

plugins {
   id 'com.github.johnrengelman.shadow' version '1.2.1'
   id "com.ullink.ikvm" version "2.3"
}

apply plugin:'ikvm'

repositories {
   mavenLocal()
   mavenCentral()

   maven { url "http://oss.sonatype.org/content/repositories/snapshots" }
   maven { url "https://repository.apache.org/content/repositories/snapshots/" }
}

sourceCompatibility = 1.6
version = '1.0.3.0'

shadowJar {
    baseName = 'myDLL'
    classifier = ''
}


jar {
    doLast { shadowJar.execute() }
}

What is happening here:

  1. Shadow all jars into one
  2. Create the dll with the ikvm plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants