【仅供内部供应商使用,不提供对外解答和培训】

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

注意2:如果本地maven配置了从其他镜像,比如阿里云镜像,则要参考maven服务器镜像配置,把fanruan的私有maven服务器也配置上去。

注意2:注意3:该教程展示的从未下载过插件开发工程的步骤,如果已经下载过插件开发工程,打开IntelliJ IDEA时,选择Open打开插件开发工程所在的目录即可(也即不选择Checkout from Version Control )。

注意3:注意4:示例插件开发工程中,依赖的是10.0测试分支的快照版本,如果希望依赖特定的版本,可以自行修改report-starter-10/build.gradle中的fineVersion变量。

注意5:若是11.0的开发环境只需修改工程的build.gradlew文件即可( 特别感谢 开发者左良发现问题并提供解决方案)

Code Block
languagejs
themeEclipse
firstline1
titlebuild

...

.gradle
linenumberstrue
collapsetrue

apply plugin: 'java'

/**
 * 可以修改这个变量以依赖不同的开发版本
 * 11.0需要修改第8、11、58行需要做相应的变更
 */
def fineVersion = '11.0-RELEASE-SNAPSHOT'

group = 'com.fr.plugin'
version = '11.0'

repositories {
    mavenLocal()
    maven {
        url = uri('http://mvn.finedevelop.com/repository/maven-public/')
    }

    maven {
        url = uri('http://repo.maven.apache.org/maven2')
    }
}

task install(type: Copy) {
    into "webroot/WEB-INF/lib"
    from configurations.runtimeClasspath
}

static def isWindows() {
    return org.gradle.internal.os.OperatingSystem.current().isWindows()
}

allprojects {

    apply plugin: 'java'

    dependencies {
        implementation 'com.fr.third:fine-third:' + fineVersion
        implementation 'com.fr.activator:fine-activator:' + fineVersion
        implementation 'com.fr.core:fine-core:' + fineVersion
        implementation 'com.fr.webui:fine-webui:' + fineVersion
        implementation 'com.fr.datasource:fine-datasource:' + fineVersion
        implementation 'com.fr.decision:fine-decision:' + fineVersion
        implementation 'com.fr.decision:fine-decision-report:' + fineVersion
        implementation 'com.fr.schedule:fine-schedule:' + fineVersion
        implementation 'com.fr.schedule:fine-schedule-report:' + fineVersion
        implementation 'com.fr.intelligence:fine-swift:' + fineVersion
        implementation 'com.fr.intelligence:fine-accumulator:' + fineVersion
        implementation 'com.fr.report:fine-report-engine:' + fineVersion
        implementation 'com.fr.report:fine-report-designer:' + fineVersion
        implementation 'io.socket:socket.io-client:0.7.0'
        implementation 'org.aspectj:aspectjrt:1.6.9'
        implementation 'org.swingexplorer:swexpl:2.0'
        implementation 'org.swingexplorer:swag:1.0'
        implementation 'org.apache.tomcat:tomcat-catalina:8.5.32'
        implementation 'org.apache.tomcat:tomcat-jasper:8.5.32'
        //11.0 需要添加websocket包的依赖
        implementation 'org.apache.tomcat.embed:tomcat-embed-websocket:8.5.32'
        implementation 'mysql:mysql-connector-java:5.1.44'
        implementation 'com.fr.third:jxbrowser:6.23.1'
        implementation group:"com.fr.third", name: isWindows() ? "jxbrowser-win64" :"jxbrowser-mac",version:"6.23.1"
        implementation 'org.slf4j:slf4j-api:1.7.30'
        implementation 'org.slf4j:slf4j-simple:1.7.30'
        testImplementation 'junit:junit:4.12'
        testImplementation 'org.easymock:easymock:3.5.1'
    }

}

dependencies {
    implementation files("${System.getProperty('java.home')}/../lib/tools.jar")
}
sourceCompatibility = '1.8'


版本说明
10.0-RELEASE-SNAPSHOT10.0的测试版本快照

10.0-FEATURE-SNAPSHOT

10.0的新功能版本快照
10.0-PERSIST-SNAPSHOT10.0的正式版本快照
10.0.2019.07.16发布的正式版本,其中的2019.07.16是会变化的 ,已发布版本列表参见:发布版本

...