I work on a project from two locations and I pulled the project from Git now I work at home.
At work I see android.jar and jfx.jar(don't know the exact name) inside the external libraries in IntelliJ and the classes are available. At home however, the jars are not visible and the android classes and JFXActivity classes are not recognized as a consequence.
I don't now why Gradle doesn't load it, the build.gradle is the same.
build.gradle:
buildscript {
repositories {
jcenter()
maven {
url 'http://xxxx.com:8080/artifactory/plugins-release'
}
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.0.8'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:+"
}
}
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'org.javafxports.jfxmobile'
artifactory {
contextUrl = "${artifactory_contextUrl}"
publish {
repository {
repoKey = 'libs-release-local'
maven = true
}
}
resolve {
repository {
repoKey = 'libs-release'
maven = true
}
}
}
repositories {
jcenter()
mavenLocal()
maven {
url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'
}
}
mainClassName = 'com.xxxx.scan.application.gluon.MainApplication'
dependencies {
compile 'com.gluonhq:charm:2.1.1'
compile 'com.airhacks:afterburner.mfx:1.6.2'
androidRuntime 'com.gluonhq:charm-android:2.1.1'
iosRuntime 'com.gluonhq:charm-ios:2.1.1'
desktopRuntime 'com.gluonhq:charm-desktop:2.1.1'
compile(group: 'com.essers.pxl2016', name: 'scan-server-definition', version: '0.0.1-SNAPSHOT')
compile(group: 'com.essers.pxl2016', name: 'client', version: '1.0-SNAPSHOT')
compile(group: 'com.essers.pxl2016', name: 'configuration', version: '1.0-SNAPSHOT')
compile('com.google.code.gson:gson:2.2.4')
testCompile "junit:junit:4.12"
}
task print << {
println("$System.env.ANDROID_HOME")
}
jfxmobile {
android {
androidSdk = "$System.env.ANDROID_HOME"
manifest = 'src/android/AndroidManifest.xml'
compileSdkVersion = 21
}
ios {
infoPList = file('src/ios/Default-Info.plist')
forceLinkClasses = [
'com.xxxx.scan.application.gluon.**.*',
'com.gluonhq.**.*',
'io.datafx.**.*',
'javax.annotations.**.*',
'javax.inject.**.*',
'javax.json.**.*',
'org.glassfish.json.**.*'
]
}
}
test {
exclude 'com/xxxx/scan/application/gluon/**'
}