1 Star 1 Fork 0

梁大帅/jtransc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
includeCommon.gradle 2.03 KB
一键复制 编辑 原始数据 按行查看 历史
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'signing'
apply plugin: 'jacoco'
def props = rootProject.extensions.getExtraProperties()
if (!props.has("gitVersion")) {
try {
props.set("gitVersion", "git describe".execute().text.trim())
} catch (Throwable) {
props.set("gitVersion", "${jtranscVersion}")
}
}
def publicationVersion = (("$project.version".endsWith("-SNAPSHOT")) ? (props.get("gitVersion") ?: "git describe".execute().text.trim()) : "$project.version") ?: "$project.version" ?: "unknown"
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId project.group
artifactId project.name
version publicationVersion
}
}
}
bintray {
user = System.getenv("BINTRAY_USER") ?: properties['BINTRAY_USER'] ?: rootProject.properties['BINTRAY_USER']
key = System.getenv("BINTRAY_KEY") ?: properties['BINTRAY_USER'] ?: rootProject.properties['BINTRAY_KEY']
publications = ['MyPublication']
dryRun = false
publish = true
if ("$project.version".endsWith("-SNAPSHOT")) {
override = true
}
pkg {
userOrg = 'jtransc'
repo = 'jtransc'
name = 'jtransc'
//name = rootProject.name
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/jtransc/jtransc.git'
}
}
jacocoTestReport {
//excludes: ["com/jtransc/integrationtests/**" + "/" + "*"]
//afterEvaluate {
// classDirectories = files(classDirectories.files.collect {
// println("jacocoTestReport.afterEvaluate.classDirectories: " + it)
// fileTree(dir: it,
// // @TODO: Move all integration tests to a single package to simplify this
// exclude: [
// 'android/*',
// 'as3/*',
// 'big/*',
// 'issues/*',
// 'javatest/*',
// 'big/*',
// 'jtransc/*',
// 'testservice/*',
// 'threading/*',
// 'java/*',
// 'javax/*',
// ])
// })
//
// for (file in classDirectories.files) {
// println(file)
// }
//}
reports {
xml.enabled true
html.enabled false
csv.enabled false
}
}
check.dependsOn jacocoTestReport
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liangdas/jtransc.git
[email protected]:liangdas/jtransc.git
liangdas
jtransc
jtransc
master

搜索帮助