代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。