1 Star 0 Fork 0

yeluod/JenkinsSharedLibrary

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
yeluo 提交于 2022-11-26 15:01 . 测试libraryResource
plugins {
id 'groovy'
}
configurations {
integTestCompile.extendsFrom testCompile
integTestRuntime.extendsFrom testRuntime
}
allprojects {
repositories {
mavenLocal()
maven { name "alibaba"; url "https://maven.aliyun.com/repository/public" }
maven { name "jenkins-ci"; url 'https://repo.jenkins-ci.org/releases/' }
mavenCentral()
}
buildscript {
repositories {
maven { name "alibaba"; url 'https://maven.aliyun.com/repository/public' }
}
}
}
apply from: 'gradleInit/version.gradle'
group 'com.deploy'
version "${projectVersion}"
description 'JenkinsSharedLibrary'
sourceCompatibility = "${javaVersion}"
targetCompatibility = "${javaVersion}"
tasks.withType(JavaCompile) {
options.encoding = "${encoding}"
}
dependencies {
implementation "org.apache.groovy:groovy:${dv.groovy}"
implementation "cn.hutool:hutool-all:${dv.hutool}"
//noinspection VulnerableLibrariesLocal
implementation "org.yaml:snakeyaml:${dv.snakeyaml}"
//noinspection VulnerableLibrariesLocal
testImplementation "com.lesfurets:jenkins-pipeline-unit:${dv.jenkinsPipelineUnit}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${dv.junit}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${dv.junit}"
}
test {
useJUnitPlatform()
}
sourceSets {
main {
groovy {
srcDirs = ['src', 'vars']
}
resources {
srcDirs = ['resources']
}
}
test {
groovy {
srcDirs = ['test']
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Groovy
1
https://gitee.com/zhiao/JenkinsSharedLibrary.git
git@gitee.com:zhiao/JenkinsSharedLibrary.git
zhiao
JenkinsSharedLibrary
JenkinsSharedLibrary
main

搜索帮助