# wjee-gradle **Repository Path**: listening/wjee-gradle ## Basic Information - **Project Name**: wjee-gradle - **Description**: Gradle插件 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-08 - **Last Updated**: 2024-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 1. publishFlink Plugin > the plugin used to publish flink job to the flink platform. ## Setup add the plugin to your build.gradle apply plugin: "cn.wjee.gradle.flink" flink { # flink Host host = "127.0.0.1" # Flink Rest Port restPort = 8081 # Flink Rpc Port rpcPort = 6123 # JobName jobName = "xxx-job-dev" # JobJar Location jobJar = "${project.rootDir}/build/libs/xxx-all.jar" # Default Parallelism for the job parallelism = 1 # SavePoint for Job savePoint = "/var/data/savepoint" # Job Run Args jobArgs = ["--profile", "${profile}"] } ## ShadowJar pack flink job to shadowJar ## Run gradlew clean shadowJar publishFlink # 2. publishOss Plugin the plugin used to publish VersionJar to Oss(Qiniu Yun). Used Publish Packed File to Oss, And generate the version Txt File to record the latest Version. when App Start can direct check resource version by oss. ## Setup add plugin to your project, config the `oss` in build.gradle. apply plugin: "cn.wjee.gradle.oss" oss { # The Oss Access Key/Secret accessKey = "xxx" accessSecret = "xxxx" # Oss Access Url endpoint = "http://xxx.com.cn" # Oss Bucket bucket = "xxx" # JarFile And Version version = "1.0.0" jarFile = "${project.rootDir}/app/build/libs/xxx-all.jar" # Oss Save Info ossVersionJar = "xxx/1.0.0/xxx.jar" ossVersionTxt = "xxx/version.txt" } ## Run gradlew publishOss