1 Star 7 Fork 7

yangziwen/zy-ftp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
yangziwen 提交于 2021-07-17 16:38 . 修改gradle配置
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yangziwen1227/zy-ftp.git
git@gitee.com:yangziwen1227/zy-ftp.git
yangziwen1227
zy-ftp
zy-ftp
master

搜索帮助