代码拉取完成,页面将自动刷新
同步操作将从 WeBank/WeCross 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
plugins {
id 'com.github.sherter.google-java-format' version '0.8'
}
// Apply the java-library plugin to add support for Java Library
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
//apply plugin: 'war'
apply plugin: 'jacoco'
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url 'https://dl.bintray.com/ethereum/maven/' }
}
sourceCompatibility = '1.8'
version = '1.0.0-rc2'
task stubSourceJar(type: Jar) {
into 'com/webank/wecross/stub', { from 'src/main/java/com/webank/wecross/stub' }
into 'com/webank/wecross/exception', { from 'src/main/java/com/webank/wecross/exception' }
classifier = 'sources'
}
task stubJar(type: Jar) {
into 'com/webank/wecross/stub', { from 'build/classes/java/main/com/webank/wecross/stub' }
into 'com/webank/wecross/exception', { from 'build/classes/java/main/com/webank/wecross/exception' }
}
task javadocJar(type: Jar) {
// from javadoc
classifier = 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.webank'
artifactId = 'wecross-java-stub'
from components.java
artifacts = [stubJar, stubSourceJar, javadocJar]
// https://docs.gradle.org/current/dsl/org.gradle.api.publish.maven.MavenPublication.html
pom {
name = "WeCross-Stub"
description = "Stub interface for WeCross"
url = "https://github.com/WeBankFinTech/WeCross"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "Shareong"
name = "Shareong"
email = "740310627@qq.com"
}
}
scm {
connection = "scm:git:git://github.com/WeBankFinTech/WeCross.git"
developerConnection = "scm:git:ssh://github.com/WeBankFinTech/WeCross.git"
url = "https://github.com/WeBankFinTech/WeCross"
}
}
}
}
repositories {
maven {
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
//*
def NEXUS_USERNAME = ''
def NEXUS_PASSWORD = ''
//*/
credentials {
username = NEXUS_USERNAME
password = NEXUS_PASSWORD
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
googleJavaFormat {
options style: 'AOSP'
source = sourceSets*.allJava
include '**/*.java'
exclude '**/temp/*.java'
}
verifyGoogleJavaFormat {
source = sourceSets*.allJava
include '**/*.java'
exclude '**/temp/*.java'
}
configurations.all {
exclude module: "spring-boot-starter-logging"
}
dependencies {
compile 'org.quartz-scheduler:quartz:2.3.2'
compile 'com.moandjiezana.toml:toml4j:0.7.2'
compile 'org.springframework.boot:spring-boot-starter-log4j2:2.1.13.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-actuator:2.1.13.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-web:2.1.13.RELEASE'
compile 'org.springframework.boot:spring-boot-configuration-processor:2.1.4.RELEASE'
compile 'org.rocksdb:rocksdbjni:6.6.4'
compile 'io.netty:netty-all:4.1.47.Final'
compile 'org.bouncycastle:bcprov-jdk15on:1.60'
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.1.13.RELEASE'
}
sourceSets {
main {
resources {
exclude '/*'
}
}
}
jar {
destinationDir file('dist/apps')
archiveName project.name + '.jar'
exclude '**/*.toml'
exclude '**/*.xml'
exclude '**/*.properties'
exclude '**/*.yml'
exclude '**/*.crt'
exclude '**/*.key'
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'com.webank.wecross.Application'
)
}
doLast {
copy {
from file('src/main/resources/')
into 'dist/conf'
}
copy {
from configurations.runtime
into 'dist/lib'
}
copy {
from file('.').listFiles().findAll { File f -> (f.name.endsWith('.sh') || f.name.endsWith('.env')) }
into 'dist'
}
copy {
from file('scripts/')
into 'dist'
}
mkdir 'dist/plugin'
}
}
task makeStubJAR(type: org.gradle.api.tasks.bundling.Jar) {
baseName 'stub'
from 'build/classes/java/main/com/webank/wecross/stub'
from 'src/main/java/com/webank/wecross/stub'
into 'com/webank/wecross/stub/'
destinationDir file('dist/stub/')
}
test {
testLogging.showStandardStreams = true
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。