← Back to team overview

sikuli-driver team mailing list archive

[Bug 1410072] Re: [request] Java: to support Gradle: Stop using property variables in POM

 

Interesting - thanks.

I will not fix this for 1.1.0 (the native library package is selected
this way based on the system we are running on).

The only workaround currently is to use setup to get a packed
sikulixapi.jar for your system and use this in your Gradle setup.

On Linux systems generally one will usually get problems with the stuff
from Maven, since in many cases the bundled libVisionProxy.so does not
work (wrong or missing dependencies) and has to be built and packed
using setup anyway.

So one currently has to live with that.
Version 2 will surely improve the situation, since I plan to switch to Gradle anyway and to reduce the dependencies on native libraries.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1410072

Title:
  [request] Java: to support Gradle: Stop using property variables in
  POM

Status in Sikuli:
  In Progress

Bug description:
  Gradle cannot currently resolve SikuliX 1.1.0-SNAPSHOT because of this
  line "<artifactId>${sikulix.libs}</artifactId>."

  > Could not find com.sikulix:${sikulix.libs}:1.1.0-SNAPSHOT.
    Searched in the following locations:
        http://repo1.maven.org/maven2/com/sikulix/$%7Bsikulix.libs%7D/1.1.0-SNAPSHOT/maven-metadata.xml
        http://repo1.maven.org/maven2/com/sikulix/${sikulix.libs}/1.1.0-SNAPSHOT/${sikulix.libs}-1.1.0-SNAPSHOT.pom
        http://repo1.maven.org/maven2/com/sikulix/${sikulix.libs}/1.1.0-SNAPSHOT/${sikulix.libs}-1.1.0-SNAPSHOT.jar
        https://oss.sonatype.org/content/groups/public/com/sikulix/$%7Bsikulix.libs%7D/1.1.0-SNAPSHOT/maven-metadata.xml
        https://oss.sonatype.org/content/groups/public/com/sikulix/${sikulix.libs}/1.1.0-SNAPSHOT/${sikulix.libs}-1.1.0-SNAPSHOT.pom
        https://oss.sonatype.org/content/groups/public/com/sikulix/${sikulix.libs}/1.1.0-SNAPSHOT/${sikulix.libs}-1.1.0-SNAPSHOT.jar

  Gradle does not resolve variables in POM files and discourages their
  use.
  http://forums.gradle.org/gradle/topics/handling_properties_in_maven_pom

  Sample gradle file:
  apply plugin: 'java'
  apply plugin: 'idea'

  repositories {
      mavenCentral()
      maven {
          url "http://maven2.javacpp.googlecode.com/git/";
          url "https://oss.sonatype.org/content/groups/public";
      }
  }

  dependencies {
      testCompile group: 'com.sikulix', name: 'sikulixapi', version: '1.1.0-SNAPSHOT'
  }

  
  Version used: 1.1.0-SNAPSHOT
  64-Bit Ubuntu 14.04
  Java 1.7.0_72 64-Bit
  Gradle 2.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1410072/+subscriptions


References