jruby-maven-plugins
jruby-maven-plugins copied to clipboard
support for Ruby 2.x?
I am getting errors like this while doing maven build:
...
Downloading: http://rubygems-proxy.torquebox.org/releases/rubygems/swagger-diff/1.0.1/swagger-diff-1.0.1.pom
Downloaded: http://rubygems-proxy.torquebox.org/releases/rubygems/swagger-diff/1.0.1/swagger-diff-1.0.1.pom (4 KB at 4.5 KB/sec)
Downloading: http://rubygems-proxy.torquebox.org/releases/rubygems/swagger-diff/1.0.1/swagger-diff-1.0.1.gem
Downloaded: http://rubygems-proxy.torquebox.org/releases/rubygems/swagger-diff/1.0.1/swagger-diff-1.0.1.gem (84 KB at 96.9 KB/sec)
[INFO] Successfully installed swagger-diff-1.0.1
[INFO] ERROR: Error installing /Users/zolotov/.m2/repository/rubygems/addressable/2.5.0/addressable-2.5.0.gem:
[INFO] addressable requires Ruby version >= 2.0.
[INFO] 1 gem installed
[INFO] ERROR: Error installing /Users/zolotov/.m2/repository/rubygems/public_suffix/2.0.5/public_suffix-2.0.5.gem:
[INFO] public_suffix requires Ruby version >= 2.0.
...
pom.xml snippet:
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
<version>${gem-maven.version}</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
<phase>compile</phase>
<configuration>
<execArgs>${project.build.directory}/rubygems/bin/swagger-diff -i ${old} ${new}</execArgs>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>rubygems</groupId>
<artifactId>swagger-diff</artifactId>
<version>${swagger-diff.version}</version>
<type>gem</type>
</dependency>
</dependencies>
</plugin>
Unfortunately there's no version of swagger-diff
that would work with Ruby <2.0. Is there a way to make this work? I believe jruby supports ruby 2.2 now.