1 Star 1 Fork 4

Apexsoft/live-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
Apexsoft 提交于 2022-12-24 17:45 . 更新版本
subprojects {
buildscript {
repositories {
maven {
url "https://maven.aliyun.com/repository/public"
}
}
}
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
ext {
springBootVersion = "2.7.7"
springDependencyManagement = "1.0.11.RELEASE"
springCloudVersion = "2021.0.5"
liveVersion = "2.4.0-SNAPSHOT"
}
group = 'com.demo'
version = '1.0.0-SNAPSHOT'
sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
compileJava {
options.compilerArgs << '-parameters'
}
compileTestJava {
options.compilerArgs << '-parameters'
}
repositories {
maven {
url "https://maven.aliyun.com/repository/public"
}
maven {
credentials {
username = "${NEXUS_USER}"
password = "${NEXUS_PASSWORD}"
}
url "https://oss.apexsoft.com.cn/repository/maven-public/"
}
}
//依赖缓存时间
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
// 上传source
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
publishing {
publications {
library(MavenPublication) {
from components.java
artifact sourcesJar
}
}
repositories {
maven {
credentials {
username = "${NEXUS_USER}"
password = "${NEXUS_PASSWORD}"
}
if (project.version.endsWith('-SNAPSHOT')) {
url "https://oss.apexsoft.com.cn/repository/maven-snapshots/"
} else {
url "https://oss.apexsoft.com.cn/repository/maven-releases/"
}
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/ApexsoftSourcecode/live-demo.git
[email protected]:ApexsoftSourcecode/live-demo.git
ApexsoftSourcecode
live-demo
live-demo
master

搜索帮助