代码拉取完成,页面将自动刷新
plugins {
id "java"
id "org.sglahn.gradle-dockerfile-plugin" version "0.5"
}
repositories {
mavenCentral()
}
version = "0.0.2"
sourceCompatibility = 1.8
dependencies {
compile "org.slf4j:slf4j-api:1.7.13"
compile "ch.qos.logback:logback-classic:1.2.3"
compile "io.netty:netty-all:4.1.42.Final"
compile "com.alibaba:fastjson:1.2.25.sec10"
compile "org.apache.commons:commons-lang3:3.3.2"
compile "org.apache.commons:commons-collections4:4.1"
compile "commons-io:commons-io:2.7"
compile "commons-codec:commons-codec:1.11"
compile "com.google.guava:guava:30.0-jre"
compile "com.beust:jcommander:1.72"
compile "com.typesafe:config:1.3.1"
compile "org.freemarker:freemarker:2.3.28"
compileOnly "org.projectlombok:lombok:1.18.2"
testCompile "junit:junit:4.13.1"
}
jar {
manifest {
attributes "Main-Class": "io.github.yangziwen.zyftp.run.FtpRunner"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task copyJar(type: Copy, dependsOn: build) {
from "$buildDir/libs/zy-ftp-${version}.jar"
into "$projectDir/target"
rename("zy-ftp-${version}.jar", "zy-ftp.jar")
}
docker {
tags = [version]
}
build.finalizedBy copyJar
dockerBuild.dependsOn copyJar
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。