Gradle problem

------------------------------------------------------------
Root project 'lemur'
------------------------------------------------------------

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. (n)
No dependencies

compileClasspath - Compile classpath for source set 'main'.
+--- org.jmonkeyengine:jme3-core:3.5.2-stable
+--- org.jmonkeyengine:jme3-android:$jmeVersion FAILED
+--- com.github.stephengold:jme-ttf:2.2.4
|    +--- org.jmonkeyengine:jme3-core:3.4.0-stable -> 3.5.2-stable
|    \--- com.jaredrummler:sfntly:1.0.1
+--- com.google.guava:guava:19.0
\--- org.slf4j:slf4j-api:1.7.32

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

compileOnlyApi - Compile only API dependencies for source set 'main'. (n)
No dependencies

default - Configuration for default artifacts. (n)
No dependencies

implementation - Implementation only dependencies for source set 'main'. (n)
+--- org.jmonkeyengine:jme3-core:3.5.2-stable (n)
+--- org.jmonkeyengine:jme3-android:$jmeVersion (n)
+--- com.github.stephengold:jme-ttf:2.2.4 (n)
+--- com.google.guava:guava:19.0 (n)
\--- org.slf4j:slf4j-api:1.7.32 (n)

javadocElements - javadoc elements for main. (n)
No dependencies

mainSourceElements - List of source directories contained in the Main SourceSet. (n)
No dependencies

runtimeClasspath - Runtime classpath of source set 'main'.
+--- org.jmonkeyengine:jme3-core:3.5.2-stable
+--- org.jmonkeyengine:jme3-android:$jmeVersion FAILED
+--- com.github.stephengold:jme-ttf:2.2.4
|    +--- org.jmonkeyengine:jme3-core:3.4.0-stable -> 3.5.2-stable
|    \--- com.jaredrummler:sfntly:1.0.1
+--- com.google.guava:guava:19.0
\--- org.slf4j:slf4j-api:1.7.32

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

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

signatures
No dependencies

sourcesElements - sources elements for main. (n)
No dependencies

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

testCompileClasspath - Compile classpath for source set 'test'.
+--- org.jmonkeyengine:jme3-core:3.5.2-stable
+--- org.jmonkeyengine:jme3-android:$jmeVersion FAILED
+--- com.github.stephengold:jme-ttf:2.2.4
|    +--- org.jmonkeyengine:jme3-core:3.4.0-stable -> 3.5.2-stable
|    \--- com.jaredrummler:sfntly:1.0.1
+--- com.google.guava:guava:19.0
\--- org.slf4j:slf4j-api:1.7.32

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

testImplementation - Implementation only dependencies for source set 'test'. (n)
No dependencies

testResultsElementsForTest - Directory containing binary results of running tests for the test Test Suite's test target. (n)
No dependencies

testRuntimeClasspath - Runtime classpath of source set 'test'.
+--- org.jmonkeyengine:jme3-core:3.5.2-stable
+--- org.jmonkeyengine:jme3-android:$jmeVersion FAILED
+--- com.github.stephengold:jme-ttf:2.2.4
|    +--- org.jmonkeyengine:jme3-core:3.4.0-stable -> 3.5.2-stable
|    \--- com.jaredrummler:sfntly:1.0.1
+--- com.google.guava:guava:19.0
\--- org.slf4j:slf4j-api:1.7.32

testRuntimeOnly - Runtime only dependencies for source set 'test'. (n)
No dependencies

(*) - dependencies omitted (listed previously)

(n) - Not resolved (configuration is not meant to be resolved)

A web-based, searchable dependency report is available by adding the --scan option.

BUILD SUCCESSFUL in 1s
10 actionable tasks: 1 executed, 9 up-to-date

org.jmonkeyengine:jme3-android:$jmeVersion FAILED
It seems that Gradle has not downloaded JME-Andorid
This is the build.gradle file

/**
 *  Root-level Lemur build script for the main Lemur library.
 */

plugins {
    id 'lemur.published-library'
}
repositories {
    maven { url 'https://jcenter.bintray.com' }
}
version='1.16.1-SNAPSHOT'

ext.jmeVersion='3.5.2-stable'
ext.slf4jVersion = '1.7.32'

// Set this module's maven pom description
publishing.publications.library(MavenPublication).pom {
    description = 'A 2D/3D toolkit for jMonkeyEngine.'
}

dependencies {
    implementation "org.jmonkeyengine:jme3-core:$jmeVersion"
    implementation 'org.jmonkeyengine:jme3-android:$jmeVersion'
    implementation 'com.github.stephengold:jme-ttf:2.2.4'
    implementation 'com.google.guava:guava:19.0'
    implementation "org.slf4j:slf4j-api:$slf4jVersion"
}

compileJava.doLast {
    def buildDate = new Date().format('yyyyMMdd')
    println "Writing lemur.build.date:" + buildDate
    new File(destinationDir, 'lemur.build.date').text = buildDate
}


Note the differeent types of quotes. " quotes will evaluate expressions (like $jmeVersion) while ’ quotes will not. Change your quotes to " and it should work

2 Likes

Thank you for pointing it out

1 Like