シスアーキ in はてな

シスアーキ(自称)の技術ブログ

移管完了おめ!Eclipse Collections!!(((o(*゚▽゚*)o)))

この記事は続・AndroidでJavaFXを動かしてみたよ! - シスアーキ in はてなの追記です!
kozake.hatenablog.com
12/24 に Eclipse Collectionsが移管されました!!
クリスマスプレゼントに間に合いましたね!
早速試してみましょう!!

dependenciesをeclipse-collectionsに修正して、

subprojects {
            :
            :
    dependencies {
//        compile 'com.goldmansachs:gs-collections:7.0.0'
        compile 'org.eclipse.collections:eclipse-collections:7.0.0'
    }
}

HelloWorld:androidInstallタスクをターン*1

ビルドエラーぁ。。orz

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':HelloWorld:apkDebug'.
 com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK LICENSE-EDL-1.0.txt
       :
       :

なんか踏んだみたいです。
javafxports / javafxmobile-plugin / issues / #6 - Building a android apk with maven dependencies seams to add them more than once — Bitbucket

packagingOptionsを追加しましょう!

jfxmobile {
    ios {
        forceLinkClasses = [ 'org.javafxports.**.*' ]
    }
    // ここにandroidの環境を定義
    android {
        packagingOptions {
            exclude 'LICENSE-EDL-1.0.txt'
            exclude 'LICENSE-EPL-1.0.txt'
        }
        applicationPackage = 
            "org.javafxports.${project.name.toLowerCase()}"
        androidSdk = '/Applications/adt-bundle-mac-x86/sdk'
    }
}

HelloWorld:androidInstallタスクをぽちっと(恐る恐る

おお!ビルドが成功しました!もちろん、きちんと動きましたよ!!
移管完了おめでとうございます!!(((o(*゚▽゚*)o)))

*1:かっこよくエンターキーを押そうな!