123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- /*
- * ********************************************************************************************************************
- *
- * iFHS7.
- * ;BBMBMBMc rZMBMBR BMB
- * MBEr:;PBM, 7MBMMEOBB: BBB RBW
- * XK: BO SB. :SZ MBM. c;; ir BBM :FFr :SSF: ;xBMB:r iuGXv. i:. iF2;
- * DBBM0r. :D S7 ;XMBMB GMBMu. MBM: BMB MBMBBBMBMS WMBMBMBBK MBMBMBM BMBRBMBW .MBMBMBMBB
- * :JMRMMD .. , 1MMRM1; ;MBMBBR: MBM ;MB: BMB: MBM. RMBr sBMH BM0 UMB, BMB. KMBv
- * ;. XOW B1; :uM: 1RE, i .2BMBs rMB. MBO MBO JMB; MBB MBM BBS 7MBMBOBM: MBW :BMc
- * OBRJ.SEE MRDOWOR, 3DE:7OBM . ;BMB RMR7BM BMB MBB. BMB ,BMR .BBZ MMB rMB, BMM rMB7
- * :FBRO0D0 RKXSXPR. JOKOOMPi BMBSSWBMB; BMBB: MBMB0ZMBMS .BMBOXRBMB MBMDE RBM2;SMBM; MBB xBM2
- * iZGE O0SHSPO. uGZ7. sBMBMBDL :BMO OZu:BMBK, rRBMB0; ,EBMB xBMBr:ER. RDU :OO;
- * ,BZ, 1D0 RPSFHXR. xWZ .SMr . .BBB
- * :0BMRDG RESSSKR. 2WOMBW; BMBMR
- * i0BM: SWKHKGO MBDv
- * .UB OOGDM. MK, Copyright (c) 2015-2019. 斯伯坦机器人
- * , XMW ..
- * r All rights reserved.
- *
- * ********************************************************************************************************************
- */
- group 'cn.sagacloud'
- version SAGA_SERVICE_VERSION
- apply plugin: 'org.hidetake.ssh'
- buildscript {
- repositories {
- maven{ url "http://maven.aliyun.com/nexus/content/groups/public/"}
- mavenCentral()
- jcenter()
- }
- dependencies {
- classpath group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: SPRING_BOOT_VERSION
- classpath group: 'org.jetbrains.kotlin', name: 'kotlin-gradle-plugin', version: KOTLIN_VERSION
- classpath group: 'org.jetbrains.dokka', name: 'dokka-gradle-plugin', version: DOKKA_VERSION
- classpath group: 'org.hidetake', name: 'gradle-ssh-plugin', version: GRADLE_SSH_VERSION
- }
- }
- allprojects {
- repositories {
- maven{
- url MAVEN_REPO_PUBLIC_URL
- credentials {
- username = NEXUS_USERNAME
- password = NEXUS_PASSWORD
- }
- }
- maven{ url "http://maven.aliyun.com/nexus/content/groups/public/"}
- maven { url "https://repo.spring.io/milestone" }
- mavenCentral()
- jcenter()
- }
- tasks.withType(Javadoc) {
- options{ encoding "UTF-8"
- charSet "UTF-8"
- links "http://docs.oracle.com/javase/8/docs/api"
- }
- }
- }
- task dokkaAll(type: org.jetbrains.dokka.gradle.DokkaTask) {
- jdkVersion = 8
- outputFormat = "javadoc"
- outputDirectory = "$buildDir/javadoc/service"
- sourceDirs = files(
- "$projectDir/../saga-kotlin/saga-kotlin-base/src/main/kotlin",
- "$projectDir/../saga-kotlin/saga-kotlin-database/src/main/kotlin",
- "$projectDir/../saga-kotlin/saga-kotlin-mybatis/src/main/kotlin",
- "$projectDir/../saga-kotlin/saga-kotlin-mysql/src/main/kotlin",
- "$projectDir/../saga-kotlin/saga-kotlin-postgresql/src/main/kotlin",
- "saga-service-base/src/main/kotlin",
- "saga-service-kafka/src/main/kotlin",
- "saga-service-models/src/main/kotlin",
- "saga-service-mybatis/src/main/kotlin",
- "saga-service-postgresql/src/main/kotlin"
- )
- }
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
- //////////////////////////////////////////////////////
- // ssh 部署文档
- ssh.settings {
- knownHosts = allowAnyHosts
- }
- remotes {
- docserver {
- host = "47.94.89.44"
- port = 22
- user = "user1"
- password = "@)!^sagacloud"
- }
- }
- task deployDoc {
- ssh.run {
- session(remotes.docserver) {
- // Deploy doc
- // put from: "$buildDir/javadoc/service", into: '/opt/tomcat9/webapps/api/server'
- }
- }
- }
|