Giter Site home page Giter Site logo

Comments (4)

prokod avatar prokod commented on May 30, 2024

Hi Alex,

I do not see any repositories block defined in the example. Did you define it ?
Something like:

repositories {
   mavenCentral()
}

Please provide other helpful info like version of plugin you use.

If you have some time and you can create an archive from your project or a look alike project it will be most helpful also to try and address the issue.

from gradle-crossbuild-scala.

SimY4 avatar SimY4 commented on May 30, 2024

Hi, thank you for your answer.

Yes, I did define repositories in my parent gradle module so it's there. In fact, all dependencies except for the ones with scala version wildcard are resolving fine.

I can show you the result of ./gradlew dependency task for this module. As you can see not everywhere dependencies where resolved propertly, mostly they stayed as is.

annotationProcessor - Annotation processors and their dependencies for source set 'main'.
No dependencies

api - API dependencies for source set 'main'. (n)
No dependencies

apiElements - API elements for main. (n)
No dependencies

archives - Configuration for archive artifacts.
No dependencies

compile - Dependencies for source set 'main' (deprecated, use 'implementation' instead).
No dependencies

compileClasspath - Compile classpath for source set 'main'.
+--- org.scala-lang:scala-library:2.12.+ -> 2.12.8
\--- org.scala-lang.modules:scala-xml_?:[1.0, 2.0[ -> org.scala-lang.modules:scala-xml_2.12:1.1.1
     \--- org.scala-lang:scala-library:2.12.6 -> 2.12.8

compileOnly - Compile only dependencies for source set 'main'.
No dependencies

crossBuild210AnnotationProcessor - Annotation processors and their dependencies for source set 'cross build210'.
No dependencies

crossBuild210Compile - Dependencies for source set 'cross build210' (deprecated, use 'crossBuild210Implementation' instead).
No dependencies

crossBuild210CompileClasspath - Compile classpath for source set 'cross build210'.
No dependencies

crossBuild210CompileOnly - Compile only dependencies for source set 'cross build210'.
No dependencies

crossBuild210Implementation - Implementation only dependencies for source set 'cross build210'. (n)
No dependencies

crossBuild210Runtime - Runtime dependencies for source set 'cross build210' (deprecated, use 'crossBuild210RuntimeOnly' instead).
No dependencies

crossBuild210RuntimeClasspath - Runtime classpath of source set 'cross build210'.
No dependencies

crossBuild210RuntimeOnly - Runtime only dependencies for source set 'cross build210'. (n)
No dependencies

crossBuild211AnnotationProcessor - Annotation processors and their dependencies for source set 'cross build211'.
No dependencies

crossBuild211Compile - Dependencies for source set 'cross build211' (deprecated, use 'crossBuild211Implementation' instead).
\--- org.scala-lang:scala-library:2.11.12

crossBuild211CompileClasspath - Compile classpath for source set 'cross build211'.
+--- org.scala-lang:scala-library:2.11.12
+--- org.scala-lang:scala-library:2.12.+ -> 2.11.12
\--- org.scala-lang.modules:scala-xml_?:[1.0, 2.0[ -> org.scala-lang.modules:scala-xml_2.11:1.1.1
     \--- org.scala-lang:scala-library:2.11.12

crossBuild211CompileOnly - Compile only dependencies for source set 'cross build211'.
No dependencies

crossBuild211Implementation - Implementation only dependencies for source set 'cross build211'. (n)
No dependencies

crossBuild211MavenCOMPILEScope
\--- org.scala-lang:scala-library:2.11.12

crossBuild211MavenPROVIDEDScope
No dependencies

crossBuild211Runtime - Runtime dependencies for source set 'cross build211' (deprecated, use 'crossBuild211RuntimeOnly' instead).
\--- org.scala-lang:scala-library:2.11.12

crossBuild211RuntimeClasspath - Runtime classpath of source set 'cross build211'.
\--- org.scala-lang:scala-library:2.11.12

crossBuild211RuntimeOnly - Runtime only dependencies for source set 'cross build211'. (n)
No dependencies

crossBuild212AnnotationProcessor - Annotation processors and their dependencies for source set 'cross build212'.
No dependencies

crossBuild212Compile - Dependencies for source set 'cross build212' (deprecated, use 'crossBuild212Implementation' instead).
\--- org.scala-lang:scala-library:2.12.8

crossBuild212CompileClasspath - Compile classpath for source set 'cross build212'.
+--- org.scala-lang:scala-library:2.12.8
+--- org.scala-lang:scala-library:2.12.+ -> 2.12.8
\--- org.scala-lang.modules:scala-xml_?:[1.0, 2.0[ -> org.scala-lang.modules:scala-xml_2.12:1.1.1
     \--- org.scala-lang:scala-library:2.12.6 -> 2.12.8

crossBuild212CompileOnly - Compile only dependencies for source set 'cross build212'.
No dependencies

crossBuild212Implementation - Implementation only dependencies for source set 'cross build212'. (n)
No dependencies

crossBuild212MavenCOMPILEScope
\--- org.scala-lang:scala-library:2.12.8

crossBuild212MavenPROVIDEDScope
No dependencies

crossBuild212Runtime - Runtime dependencies for source set 'cross build212' (deprecated, use 'crossBuild212RuntimeOnly' instead).
\--- org.scala-lang:scala-library:2.12.8

crossBuild212RuntimeClasspath - Runtime classpath of source set 'cross build212'.
\--- org.scala-lang:scala-library:2.12.8

crossBuild212RuntimeOnly - Runtime only dependencies for source set 'cross build212'. (n)
No dependencies

crossBuild293AnnotationProcessor - Annotation processors and their dependencies for source set 'cross build293'.
No dependencies

crossBuild293Compile - Dependencies for source set 'cross build293' (deprecated, use 'crossBuild293Implementation' instead).
No dependencies

crossBuild293CompileClasspath - Compile classpath for source set 'cross build293'.
No dependencies

crossBuild293CompileOnly - Compile only dependencies for source set 'cross build293'.
No dependencies

crossBuild293Implementation - Implementation only dependencies for source set 'cross build293'. (n)
No dependencies

crossBuild293Runtime - Runtime dependencies for source set 'cross build293' (deprecated, use 'crossBuild293RuntimeOnly' instead).
No dependencies

crossBuild293RuntimeClasspath - Runtime classpath of source set 'cross build293'.
No dependencies

crossBuild293RuntimeOnly - Runtime only dependencies for source set 'cross build293'. (n)
No dependencies

default - Configuration for default artifacts.
+--- org.scala-lang:scala-library:2.12.+ -> 2.12.8
\--- org.scala-lang.modules:scala-xml_?:[1.0, 2.0[ FAILED

implementation - Implementation only dependencies for source set 'main'. (n)
+--- org.scala-lang:scala-library:2.12.+ (n)
\--- org.scala-lang.modules:scala-xml_?:[1.0, 2.0[ (n)

incrementalScalaAnalysisElements - Incremental compilation analysis files (n)
No dependencies

incrementalScalaAnalysisForcrossBuild210 - Incremental compilation analysis files for cross build210
No dependencies

incrementalScalaAnalysisForcrossBuild211 - Incremental compilation analysis files for cross build211
\--- org.scala-lang:scala-library:2.11.12

incrementalScalaAnalysisForcrossBuild212 - Incremental compilation analysis files for cross build212
\--- org.scala-lang:scala-library:2.12.8

incrementalScalaAnalysisForcrossBuild293 - Incremental compilation analysis files for cross build293
No dependencies

incrementalScalaAnalysisForjmh - Incremental compilation analysis files for jmh
No dependencies

incrementalScalaAnalysisFormain - Incremental compilation analysis files for main
+--- org.scala-lang:scala-library:2.12.+ -> 2.12.8
\--- org.scala-lang.modules:scala-xml_?:[1.0, 2.0[ FAILED

incrementalScalaAnalysisFortest - Incremental compilation analysis files for test
+--- org.scala-lang:scala-library:2.12.+ -> 2.12.8
+--- org.scala-lang.modules:scala-xml_?:[1.0, 2.0[ FAILED
+--- org.scala-lang.modules:scala-java8-compat_?:[0.9,1.0[ FAILED
+--- org.junit.jupiter:junit-jupiter-api:5.3.2
|    +--- org.apiguardian:apiguardian-api:1.0.0
|    +--- org.opentest4j:opentest4j:1.1.1
|    \--- org.junit.platform:junit-platform-commons:1.3.2
|         \--- org.apiguardian:apiguardian-api:1.0.0
+--- org.junit.jupiter:junit-jupiter-params:5.3.2
|    +--- org.apiguardian:apiguardian-api:1.0.0
|    \--- org.junit.jupiter:junit-jupiter-api:5.3.2 (*)
+--- org.mockito:mockito-core:2.23.4
|    +--- net.bytebuddy:byte-buddy:1.9.3
|    +--- net.bytebuddy:byte-buddy-agent:1.9.3
|    \--- org.objenesis:objenesis:2.6
+--- org.mockito:mockito-junit-jupiter:2.23.4
|    +--- org.mockito:mockito-core:2.23.4 (*)
|    \--- org.junit.jupiter:junit-jupiter-api:5.1.1 -> 5.3.2 (*)
\--- org.assertj:assertj-core:3.11.1

runtime - Runtime dependencies for source set 'main' (deprecated, use 'runtimeOnly' instead).
No dependencies

runtimeClasspath - Runtime classpath of source set 'main'.
+--- org.scala-lang:scala-library:2.12.+ -> 2.12.8
\--- org.scala-lang.modules:scala-xml_?:[1.0, 2.0[ FAILED

runtimeElements - Elements of runtime for main. (n)
No dependencies

runtimeOnly - Runtime only dependencies for source set 'main'. (n)
No dependencies

testAnnotationProcessor - Annotation processors and their dependencies for source set 'test'.
No dependencies

testCompile - Dependencies for source set 'test' (deprecated, use 'testImplementation' instead).
No dependencies

testCompileClasspath - Compile classpath for source set 'test'.
+--- org.scala-lang:scala-library:2.12.+ -> 2.12.8
+--- org.scala-lang.modules:scala-xml_?:[1.0, 2.0[ FAILED
+--- org.scala-lang.modules:scala-java8-compat_?:[0.9,1.0[ FAILED
+--- org.junit.jupiter:junit-jupiter-api:5.3.2
|    +--- org.apiguardian:apiguardian-api:1.0.0
|    +--- org.opentest4j:opentest4j:1.1.1
|    \--- org.junit.platform:junit-platform-commons:1.3.2
|         \--- org.apiguardian:apiguardian-api:1.0.0
+--- org.junit.jupiter:junit-jupiter-params:5.3.2
|    +--- org.apiguardian:apiguardian-api:1.0.0
|    \--- org.junit.jupiter:junit-jupiter-api:5.3.2 (*)
+--- org.mockito:mockito-core:2.23.4
|    +--- net.bytebuddy:byte-buddy:1.9.3
|    +--- net.bytebuddy:byte-buddy-agent:1.9.3
|    \--- org.objenesis:objenesis:2.6
+--- org.mockito:mockito-junit-jupiter:2.23.4
|    +--- org.mockito:mockito-core:2.23.4 (*)
|    \--- org.junit.jupiter:junit-jupiter-api:5.1.1 -> 5.3.2 (*)
\--- org.assertj:assertj-core:3.11.1

testCompileOnly - Compile only dependencies for source set 'test'.
No dependencies

testImplementation - Implementation only dependencies for source set 'test'. (n)
+--- org.scala-lang.modules:scala-java8-compat_?:[0.9,1.0[ (n)
+--- org.junit.jupiter:junit-jupiter-api:5.3.2 (n)
+--- org.junit.jupiter:junit-jupiter-params:5.3.2 (n)
+--- org.mockito:mockito-core:2.23.4 (n)
+--- org.mockito:mockito-junit-jupiter:2.23.4 (n)
\--- org.assertj:assertj-core:3.11.1 (n)

testRuntime - Runtime dependencies for source set 'test' (deprecated, use 'testRuntimeOnly' instead).
No dependencies

testRuntimeClasspath - Runtime classpath of source set 'test'.
+--- org.scala-lang:scala-library:2.12.+ -> 2.12.8
+--- org.scala-lang.modules:scala-xml_?:[1.0, 2.0[ FAILED
+--- org.scala-lang.modules:scala-java8-compat_?:[0.9,1.0[ FAILED
+--- org.junit.jupiter:junit-jupiter-api:5.3.2
|    +--- org.apiguardian:apiguardian-api:1.0.0
|    +--- org.opentest4j:opentest4j:1.1.1
|    \--- org.junit.platform:junit-platform-commons:1.3.2
|         \--- org.apiguardian:apiguardian-api:1.0.0
+--- org.junit.jupiter:junit-jupiter-params:5.3.2
|    +--- org.apiguardian:apiguardian-api:1.0.0
|    \--- org.junit.jupiter:junit-jupiter-api:5.3.2 (*)
+--- org.mockito:mockito-core:2.23.4
|    +--- net.bytebuddy:byte-buddy:1.9.3
|    +--- net.bytebuddy:byte-buddy-agent:1.9.3
|    \--- org.objenesis:objenesis:2.6
+--- org.mockito:mockito-junit-jupiter:2.23.4
|    +--- org.mockito:mockito-core:2.23.4 (*)
|    \--- org.junit.jupiter:junit-jupiter-api:5.1.1 -> 5.3.2 (*)
+--- org.assertj:assertj-core:3.11.1
\--- org.junit.jupiter:junit-jupiter-engine:5.3.2
     +--- org.apiguardian:apiguardian-api:1.0.0
     +--- org.junit.platform:junit-platform-engine:1.3.2
     |    +--- org.apiguardian:apiguardian-api:1.0.0
     |    +--- org.junit.platform:junit-platform-commons:1.3.2 (*)
     |    \--- org.opentest4j:opentest4j:1.1.1
     \--- org.junit.jupiter:junit-jupiter-api:5.3.2 (*)

testRuntimeOnly - Runtime only dependencies for source set 'test'. (n)
\--- org.junit.jupiter:junit-jupiter-engine:5.3.2 (n)

zinc - The Zinc incremental compiler to be used for this Scala project.
\--- com.typesafe.zinc:zinc:0.3.15
     +--- org.scala-lang:scala-library:2.10.6
     +--- com.typesafe.sbt:incremental-compiler:0.13.15
     |    +--- org.scala-lang:scala-compiler:2.10.6
     |    |    +--- org.scala-lang:scala-library:2.10.6
     |    |    \--- org.scala-lang:scala-reflect:2.10.6
     |    |         \--- org.scala-lang:scala-library:2.10.6
     |    +--- org.scala-lang:scala-library:2.10.6
     |    \--- com.typesafe.sbt:sbt-interface:0.13.15
     |         \--- org.scala-lang:scala-library:2.10.6
     \--- com.typesafe.sbt:compiler-interface:0.13.15
          \--- org.scala-lang:scala-library:2.10.6

from gradle-crossbuild-scala.

prokod avatar prokod commented on May 30, 2024

Hi Alex,

Can you try version 0.4.4 please ? It should solve the test* configuration scala ? lib dependencies.

About the other occurrences from the dependencies report, it seems you havn't applied the plugin for all the modules that needs it. The way I would recommend to go about this is to add the plugin to each of the modules that needs cross compilation or depend on another module that has cross compilation.

Now that I think about it, It is not written in the readme explicitly anywhere - I will add that though.

Thank you you for you feedback - most valuable!

from gradle-crossbuild-scala.

SimY4 avatar SimY4 commented on May 30, 2024

Hi, @prokod

It seems that it's working now.

Thank you!

from gradle-crossbuild-scala.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.