当前位置:网站首页>gradle 打包排除依赖 排除文件
gradle 打包排除依赖 排除文件
2022-07-15 13:08:00 【Meta39】
都是在build.gradle进行操作的
打包排除依赖
打包排除依赖根据下面的参数进行配置即可
dependencies {
implementation 'groupId:artifactId:version'//Gradle4.1新增的依赖方式,该依赖方式不会产生传递依赖
compileOnly 'groupId:artifactId:version'//仅编译时使用,不参与打包,如:lombok只在编译时使用,编译后不需要用到
annotationProcessor 'groupId:artifactId:version'//注解注释器,不参与打包,如:lombok使用的注解需要用到
runtimeClasspath 'groupId:artifactId:version'//仅运行时使用,不参与编译,参与打包,如:mysql-connector-java驱动
testCompileClasspath 'groupId:artifactId:version'//仅测试时使用,参与测试时编译,运行,不参与打包
testRuntimeClasspath 'groupId:artifactId:version'//仅测试运行时使用,不参与编译、打包
}
打包排除文件
//打包排除的文件
sourceSets{
main{
//排除java文件夹下面的文件
java{
exclude 'com/fu/gradledemo/JApiDocs.java'
}
//排除resources静态资源文件夹里面的文件
resources{
// exclude 'application.yml'
}
}
}
边栏推荐
- It's time to upgrade your JUnit, junit5 super detailed actual combat
- JGG (if 5.733) special issue solicitation: Human Microbiome
- MySQL passes in list < string > to query
- ant-desgin 打開pdf增加認證參數據
- Processes in Oracle
- Seize the new track, and the number of groups vigorously layout the "meta universe" industry
- 网络基础学习系列二(socket编程)
- [Vuforia] 关于Vuforia插件(3D物体识别和地面识别)的一些测试记录
- Bitmap sign in
- Unity engineering manages Pico and oculus projects in a unified manner
猜你喜欢

Is it true that double non undergraduate students cannot enter the big factory? Ali technology four sides + cross face +hr face, successfully got the offer!!

ArkUI常见问题汇总【系列1】

360预计上半年扣非净亏4.5亿至6.3亿 广告投放预算不及预期

OSPF - irregular area, LSA
![[chart component kit development] Shanghai daoning provides developers with steema download, trial and tutorial](/img/9b/ea9197f18bbe81f80b4d26ceef47ce.png)
[chart component kit development] Shanghai daoning provides developers with steema download, trial and tutorial
![[vuforia] some test records of vuforia plug-ins (3D object recognition and ground recognition)](/img/20/6c4fb7fb465577b61f62e29e9a8055.png)
[vuforia] some test records of vuforia plug-ins (3D object recognition and ground recognition)

101.(cesium篇)cesium粒子系统-下雪

Good news | the scores of candidates in this area can be queried

Unit MySQL appears in MySQL Solution of service could not be found

std::unique_ The use of PTR as a formal parameter
随机推荐
Leetcode brush questions
General business general waste packaging cases
【OpenFOAM学前预备3——安装OpenFOAM-v8】
Zcmu--1098: find elements
Is it true that double non undergraduate students cannot enter the big factory? Ali technology four sides + cross face +hr face, successfully got the offer!!
Ant desgin Open PDF to add Authentication Parameter Data
MySQL passes in list < string > to query
ORACLE中各个进程
Flock's yarn clustering mode (1)
LeetCode刷题
Flowable end eventendevent custom attribute
Upload pictures / files
It can be understood as follows: polardb for PostgreSQL is automatically integrated without installing PostgreSQL
MGRE and OSPF
ZCMU--1098: 查找元素
vulnhub Funbox: Easy (funbox3)
新汇成通过注册:年营收8亿 实控人郑瑞俊有超3亿负债
光速募资超70亿美元 宓群:加大绿色科技与硬科技投资比重
tab加swiper长列表滚动
布局元宇宙社交,数字经济将迎来发展新机遇