0

我该如何配置这个插件?我试过这个:

<plugin>
    <groupId>com.gluonhq</groupId>
    <artifactId>charm</artifactId>
    <version>6.0.3</version>
    <configuration>
        <mainClass>hello.HelloWorld</mainClass>
    </configuration>
</plugin>

但是该插件带有红色下划线并且不可用。

迎接 MatsG23

PS 我想将此自动创建的 Gradle 移植到 Maven,因为我可以更好地处理这个 - 想添加 Packager for Windows

buildscript {
    repositories {
        jcenter()
        google()
        maven {
            url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'
        }
    }
    dependencies {
        classpath 'org.javafxports:jfxmobile-plugin:1.3.17'
    }
}

apply plugin: 'org.javafxports.jfxmobile'

repositories {
    jcenter()
    maven {
        url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'
    }
}

mainClassName = 'mats.app.NIMSpiel.Main'

dependencies {
    compile 'com.gluonhq:charm:5.0.2'
}

jfxmobile {
    downConfig {
        version = '3.8.6'
        // Do not edit the line below. Use Gluon Mobile Settings in your project context menu instead
        plugins 'display', 'lifecycle', 'statusbar', 'storage'
    }
    android {
        manifest = 'src/android/AndroidManifest.xml'
        compileSdkVersion = '29'
    }
}


4

0 回答 0