tasks.register('publishToCentralPortal', Exec) {commandLine 'curl', '-u', "${sonatype_username}:${sonatype_password}",'-X', 'POST','https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/com.bbossgroups'}configure(allprojects) { project ->group = PROJ_GROUPversion = PROJ_VERSIONext.bboss_version = BBOSS_PROJ_VERSIONext.mongodbversion = mongodbversionapply plugin: "java"apply plugin: "maven-publish"apply plugin: "eclipse"apply plugin: "idea"apply plugin: "signing"apply plugin: "java-library"if(project.getProperty('skipTest')){tasks.withType(Test) {enabled = false}}eclipse {jdt {//if you want to alter the java versions (by default they are configured with gradle java plugin settings):sourceCompatibility = SOURCE_COMPILER_LEVELtargetCompatibility = TARGET_COMPILER_LEVELjavaRuntimeName = "../../org.eclipse.jdt.launching.JRE_CONTAINER"}}tasks.withType(JavaCompile) {sourceCompatibility = SOURCE_COMPILER_LEVELtargetCompatibility = TARGET_COMPILER_LEVELoptions.encoding = 'UTF-8'}tasks.withType(Javadoc) {options.encoding = 'UTF-8'// disable the crazy super-strict doclint tool in Java 8// noinspection SpellCheckingInspectionif (JavaVersion.current().isJava8Compatible()) {options.addStringOption('Xdoclint:none', '-quiet')}}jar {manifest {attributes ('Implementation': archiveVersion,'Specification-Version': archiveVersion,'Implementation-Vendor': 'bboss','Implementation-ProductID': project.name,'Compile-Timestamp': new Date().format('yyyy-MM-dd HH:mm:ss'),'Compile-User': DEVELOPER_NAME)}}dependencies {testImplementation 'junit:junit:4.13.1'}repositories {mavenLocal()mavenCentral()maven {url "https://maven.aliyun.com/repository/public"}}}configure(subprojects) { subproject ->tasks.register('sourcesJar', Jar) {archiveClassifier = "sources"from sourceSets.main.allJavaduplicatesStrategy = DuplicatesStrategy.INCLUDE}tasks.register('javaDocJar', Jar) {dependsOn javadocarchiveClassifier = "javadoc"from javadoc.destinationDir}artifacts {archives sourcesJar, javaDocJar}}configure([project(":bboss-security"),project(":bboss-security-web"),project(":bboss-security-web-inf"),project(":bboss-ticket")]) { subproject ->publishing {publications {mavenJava(MavenPublication) {groupId project.groupartifactId project.nameversion "${version}"from components.javaartifact sourcesJarartifact javaDocJar// versionMapping {// usage('java-api') {// fromResolutionOf('runtimeClasspath')// }// usage('java-runtime') {// fromResolutionResult()// }// }// from components.javapom {name = project.namepackaging = 'jar'// optionally artifactId can be defined heredescription = PROJ_DESCRIPTIONurl = PROJ_WEBSITEURLscm {connection = scm_connectiondeveloperConnection = scm_developerConnectionurl = scm_url}licenses {license {name = PROJ_LICENCE_NAMEurl = PROJ_LICENCE_URL}}developers {developer {id = DEVELOPER_IDname = DEVELOPER_NAMEemail = DEVELOPER_EMAIL}}}}}repositories {// maven {// // change URLs to point to your repos, e.g. http://my.org/repo// def releasesRepoUrl = layout.buildDirectory.dir('repos/releases')// def snapshotsRepoUrl = layout.buildDirectory.dir('repos/snapshots')// url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl// }maven {// change URLs to point to your repos, e.g. http://my.org/repoallowInsecureProtocol = trueurl = sonatype_urlcredentials {username = sonatype_usernamepassword = sonatype_password}}}}signing {sign publishing.publications.mavenJava// sign configurations.archives}}//configure
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型