Skip to content

Commit

Permalink
修改gradle配置
Browse files Browse the repository at this point in the history
  • Loading branch information
yangziwen committed Jul 17, 2021
1 parent 96194a6 commit 8cb598e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
runner.run();
```
* 基于jar包运行
1. 打包代码:`mvn package -Pstandalone` or `gradle build`
1. 打包代码:`mvn package -Pstandalone` or `sh gradlew build`
2. 启动服务:`java -jar zy-ftp.jar -c ${config_file_path}`
* 基于docker运行
1. 制作镜像:`mvn package dockerfile:build -Pstandalone` or `gradle dockerBuild`
1. 制作镜像:`mvn package dockerfile:build -Pstandalone` or `sh gradlew dockerBuild`
2. 启动容器:
```
docker run -d \
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies {

jar {
manifest {
attributes "Main-Class": "io.github.yangziwen.zyftp.main.Main"
attributes "Main-Class": "io.github.yangziwen.zyftp.run.FtpRunner"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
Expand Down

0 comments on commit 8cb598e

Please sign in to comment.