代码拉取完成,页面将自动刷新
/*
* Copyright IBM Corp. 2018 All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
plugins {
id "com.github.ben-manes.versions" version "0.54.0"
id "com.diffplug.spotless" version "8.4.0"
id "com.gradleup.nmcp.aggregation" version "1.4.4"
id "com.gradleup.nmcp" version "1.4.4" apply false
}
version = '2.5.9'
// If the nightly property is set, then this is the scheduled main
// build - and we should publish this to artifactory
//
// Use the .dev.<number> format to match Maven convention
if (properties.containsKey('NIGHTLY')) {
version = version + '.dev.' + getDate()
ext.nightly = true // set property for use in subprojects
} else {
ext.nightly = false
}
nmcpAggregation {
centralPortal {
username = findProperty('mavenCentralUsername')
password = findProperty('mavenCentralPassword')
publishingType = "AUTOMATIC"
}
}
dependencies {
nmcpAggregation(project(':fabric-chaincode-shim'))
}
allprojects {
apply plugin: "com.diffplug.spotless"
repositories {
mavenCentral()
}
spotless {
format 'misc', {
target '*.gradle', '.gitattributes', '.gitignore'
trimTrailingWhitespace()
leadingTabsToSpaces()
endWithNewline()
}
}
}
subprojects {
apply plugin: 'java'
apply plugin: "maven-publish"
group = 'org.hyperledger.fabric-chaincode-java'
version = rootProject.version
compileJava {
options.release = 11
options.compilerArgs += ['-Werror', '-Xlint:all']
}
dependencies {
implementation 'commons-cli:commons-cli:1.11.0'
implementation 'commons-logging:commons-logging:1.3.6'
testImplementation platform('org.junit:junit-bom:6.0.3')
testImplementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testImplementation 'org.assertj:assertj-core:3.27.7'
testImplementation 'org.mockito:mockito-core:5.23.0'
testImplementation 'uk.org.webcompere:system-stubs-jupiter:2.1.8'
testImplementation 'org.hamcrest:hamcrest-library:3.0'
}
test {
useJUnitPlatform()
}
spotless {
java {
removeUnusedImports()
palantirJavaFormat().formatJavadoc(true)
formatAnnotations()
}
}
}
// Get the date in the reverse format for sorting
static def getDate() {
def date = new Date()
def formattedDate = date.format('yyyyMMdd')
return formattedDate
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。