代码拉取完成,页面将自动刷新
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven'
id 'jacoco'
id 'signing'
id 'maven-publish'
id 'net.researchgate.release' version '2.8.1'
}
repositories {
mavenLocal()
maven {
url = uri('https://maven.aliyun.com/repository/central')
}
maven {
url = uri('https://maven.aliyun.com/repository/spring')
}
maven {
url = uri('https://maven.aliyun.com/repository/jcenter')
}
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
testImplementation 'junit:junit:4.12'
}
group = group
version = version
description = 'rsql'
ext {
release = !version.endsWith('SNAPSHOT')
println('release version: ' + release)
}
def ossrhUsername = System.getenv('SONATYPE_NEXUS_USERNAME')
def ossrhPassword = System.getenv('SONATYPE_NEXUS_PASSWORD')
def manifestAttr = {
attributes(
"Implementation-Title": project.name,
"Implementation-Version": project.version,
"Created-By": "Gradle Archiver 6.7.1",
"Build-Jdk-Spec": "1.8",
)
}
jar {
manifest manifestAttr
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
manifest manifestAttr
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
manifest manifestAttr
}
artifacts {
archives javadocJar, sourcesJar
}
if (release) {
signing {
sign configurations.archives
}
}
def signInit() {
if (release) {
Properties properties = new Properties()
properties.load(new File('sign.properties').newDataInputStream())
print('key id: ' + properties.get('signing.keyId'))
ext.'signing.keyId' = properties.get('signing.keyId');
ext.'signing.password' = properties.get('signing.password');
ext.'signing.secretKeyRingFile' = properties.get('signing.secretKeyRingFile');
}
}
uploadArchives {
repositories {
mavenDeployer {
if (release) {
signInit()
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
} else {
println('skip upload archives')
return
}
println('upload archives')
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots/') {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
version version
name 'rsql'
packaging 'jar'
description 'rsql parser'
url 'https://github.com/suxil/rsql'
scm {
connection 'scm:git:git://github.com/suxil/rsql.git'
developerConnection 'scm:git:ssh://git@github.com/suxil/rsql.git'
url 'https://github.com/suxil/rsql/'
}
licenses {
license {
name 'MIT License'
url 'http://www.opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id 'suxil'
name 'suxil'
email 'lu_it_work@163.com'
}
}
}
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
allprojects {
group = group
java.sourceCompatibility = JavaVersion.VERSION_1_8
}
task codeCoverageReport(type: JacocoReport) {
executionData fileTree(project.rootDir.absolutePath).include('**/build/jacoco/*.exec')
subprojects.each {
sourceSets it.sourceSets.main
}
reports {
xml.enabled true
xml.destination file('${buildDir}/reports/jacoco/report.xml')
html.enabled false
csv.enabled false
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。