0 Star 0 Fork 0

风雨bu改/PDCache

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 3.41 KB
一键复制 编辑 原始数据 按行查看 历史
风雨bu改 提交于 2024-03-18 19:49 . 更新打包方式到 gradle
plugins {
id 'java'
id 'idea'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
group 'fybug.nulll'
version = '0.0.2 expand 2'
sourceCompatibility = '14'
targetCompatibility = '14'
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
maven { url "https://maven.aliyun.com/repository/spring" }
maven { url "https://maven.aliyun.com/repository/spring-plugin" }
maven { url "https://maven.aliyun.com/repository/grails-core" }
maven { url "https://maven.aliyun.com/repository/apache-snapshots" }
maven { url "http://repo.spring.io/milestone" }
}
dependencies {
implementation fileTree(dir: 'lib', includes: ['*.jar'])
compileClasspath "org.jetbrains:annotations:17.0.0"
compileClasspath "org.projectlombok:lombok:1.18.10"
annotationProcessor "org.projectlombok:lombok:1.18.10"
testCompile "junit:junit:4.12"
testCompile "org.jetbrains:annotations:17.0.0"
testCompile "org.projectlombok:lombok:1.18.10"
}
task PDCache(type: Jar) {
destinationDirectory = file('jar')
manifest {
attributes(
'Manifest-Version': '1.0',
'Built-By': 'fybug/风雨bu改',
'Created-By': 'IntelliJ IDEA'
)
}
archiveFileName = 'PDCache.jar'
// 打包编译输出
from sourceSets.main.output
}
task PDCache_bin(type: Jar) {
destinationDirectory = file('jar')
manifest {
attributes(
'Manifest-Version': '1.0',
'Built-By': 'fybug/风雨bu改',
'Created-By': 'IntelliJ IDEA'
)
}
archiveFileName = 'PDCache_bin.jar'
// 打包编译输出
from sourceSets.main.output
from {
// implementation 相关的引入解压并打包入新的jar中
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task PDCache_all(type: Jar) {
destinationDirectory = file('jar')
manifest {
attributes(
'Manifest-Version': '1.0',
'Built-By': 'fybug/风雨bu改',
'Created-By': 'IntelliJ IDEA'
)
}
archiveFileName = 'PDCache_all.jar'
// 打包编译输出
from sourceSets.main.output
// 打包源码
from sourceSets.main.allSource
from {
// implementation 相关的引入解压并打包入新的jar中
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task PDCache_sources(type: Jar) {
destinationDirectory = file('jar')
manifest {
attributes(
'Manifest-Version': '1.0',
'Built-By': 'fybug/风雨bu改',
'Created-By': 'IntelliJ IDEA'
)
}
archiveFileName = 'PDCache_sources.jar'
// 打包源码
from sourceSets.main.allSource
}
task release {
dependsOn clean
dependsOn PDCache_all
dependsOn PDCache_bin
dependsOn PDCache
dependsOn PDCache_sources
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/fybug/PDCache.git
[email protected]:fybug/PDCache.git
fybug
PDCache
PDCache
master

搜索帮助