瀏覽代碼

更新portal相关功能

master
梁超 1 周之前
父節點
當前提交
01bd2f647c
共有 4 個文件被更改,包括 24 次插入21 次删除
  1. 17
    0
      gly-base-core/build.gradle
  2. 4
    18
      gradle/aspectj.gradle
  3. 1
    1
      zhywpt-app-ifmw/build.gradle
  4. 2
    2
      zhywpt-app-ifmw/src/main/resources/bootstrap.yml

+ 17
- 0
gly-base-core/build.gradle 查看文件

dependsOn(classes) dependsOn(classes)
} }


task dictCore(type:Jar){
archiveBaseName='tj'
archiveAppendix='dict-core'
archiveVersion='1.0.0-SNAPSHOT'
archiveExtension='jar'
from("build/classes/java/main/cn/com/taiji/core/entity/dict")
into('cn/com/taiji/core/entity/dict')
dependsOn(classes)
}

task sampleProtocol(type:Jar){ task sampleProtocol(type:Jar){
archiveBaseName='tj' archiveBaseName='tj'
archiveAppendix='sample-protocol' archiveAppendix='sample-protocol'
artifact entityCore artifact entityCore
artifact packageCoreSrc artifact packageCoreSrc
} }
myPublicationDictCore(MavenPublication) {
groupId ="${groupname}"
artifactId ='dict-core'
version ='1.0.0-SNAPSHOT'
artifact dictCore
artifact packageCoreSrc
}
myPublicationSampleProtocol(MavenPublication) { myPublicationSampleProtocol(MavenPublication) {
groupId ="${groupname}" groupId ="${groupname}"
artifactId ='sample-protocol' artifactId ='sample-protocol'

+ 4
- 18
gradle/aspectj.gradle 查看文件

import java.time.LocalDateTime
import java.time.temporal.ChronoUnit
import java.nio.file.Files import java.nio.file.Files
import java.nio.file.StandardCopyOption import java.nio.file.StandardCopyOption
import java.time.LocalDateTime
import java.time.temporal.ChronoUnit


logger.info "开始配置aspectj" logger.info "开始配置aspectj"
//D:\work\ideaworkspace23\ds.dts.daes\build\classes\java\main //D:\work\ideaworkspace23\ds.dts.daes\build\classes\java\main
logger.info LocalDateTime.now().toString() + "上次编译的时间....... " logger.info LocalDateTime.now().toString() + "上次编译的时间....... "
incrementalClassesDir = project.sourceSets.main.output.classesDirs.singleFile incrementalClassesDir = project.sourceSets.main.output.classesDirs.singleFile
} }
sourceSets {
main {
// output.resourcesDir = file('build/preweave/resources/main')
// java.destinationDirectory.set(file('build/preweave/java/main'))
// output.resourcesDir = file('bin/resources/main')
// java.destinationDirectory.set(file('bin/main'))
}
test {
// output.resourcesDir = file('bin/test')
// // Compiled Java classes should use this directory
// java.destinationDirectory.set(file('bin/test'))
}
}




configurations { configurations {
println "开始编译......" println "开始编译......"
options.encoding = 'UTF-8' options.encoding = 'UTF-8'
options.compilerArgs += [//FIXME options.compilerArgs += [//FIXME
'-Xlint:deprecation',
'-Xlint:unchecked',
// '-Xlint:deprecation',
// '-Xlint:unchecked',
'-parameters' '-parameters'
] ]
} }
LocalDateTime t4 = LocalDateTime.now(); LocalDateTime t4 = LocalDateTime.now();
println "完成编译和aspectj织入,编译耗时:" + ChronoUnit.MILLIS.between(t1, t3) + "ms" + ",织入耗时:" + ChronoUnit.MILLIS.between(t1, t4) + "ms"; println "完成编译和aspectj织入,编译耗时:" + ChronoUnit.MILLIS.between(t1, t3) + "ms" + ",织入耗时:" + ChronoUnit.MILLIS.between(t1, t4) + "ms";
} }

} }


compileTestJava { compileTestJava {

+ 1
- 1
zhywpt-app-ifmw/build.gradle 查看文件



dependencies { dependencies {
implementation "${groupname}:common-core:1.0.0-SNAPSHOT" implementation "${groupname}:common-core:1.0.0-SNAPSHOT"
implementation "${groupname}:entity-core:1.0.0-SNAPSHOT"
implementation "${groupname}:comm-core:1.0.0-SNAPSHOT" implementation "${groupname}:comm-core:1.0.0-SNAPSHOT"
implementation "${groupname}:dict-core:1.0.0-SNAPSHOT"
implementation "${groupname}:sample-protocol:1.0.0-SNAPSHOT" implementation "${groupname}:sample-protocol:1.0.0-SNAPSHOT"
implementation('cn.com.taiji.common:sso-client:2.3.10.7') implementation('cn.com.taiji.common:sso-client:2.3.10.7')
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis' implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis'

+ 2
- 2
zhywpt-app-ifmw/src/main/resources/bootstrap.yml 查看文件

server-addr: 100.64.2.105:8848 server-addr: 100.64.2.105:8848
username: nacos username: nacos
password: '!@#$%qwertASDFG' password: '!@#$%qwertASDFG'
namespace: guizhou-issuer
namespace: zhywpt-new-test
# networkInterface: 以太网 # networkInterface: 以太网
config: config:
enabled: true enabled: true
server-addr: 100.64.2.105:8848 server-addr: 100.64.2.105:8848
username: nacos username: nacos
password: '!@#$%qwertASDFG' password: '!@#$%qwertASDFG'
namespace: guizhou-issuer
namespace: zhywpt-new-test
extension-configs: extension-configs:
- data-id: db-ifzt.yaml - data-id: db-ifzt.yaml
refresh: true refresh: true

Loading…
取消
儲存