@@ -87,6 +87,16 @@ task entityCore(type:Jar){ | |||
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){ | |||
archiveBaseName='tj' | |||
archiveAppendix='sample-protocol' | |||
@@ -202,6 +212,13 @@ publishing { | |||
artifact entityCore | |||
artifact packageCoreSrc | |||
} | |||
myPublicationDictCore(MavenPublication) { | |||
groupId ="${groupname}" | |||
artifactId ='dict-core' | |||
version ='1.0.0-SNAPSHOT' | |||
artifact dictCore | |||
artifact packageCoreSrc | |||
} | |||
myPublicationSampleProtocol(MavenPublication) { | |||
groupId ="${groupname}" | |||
artifactId ='sample-protocol' |
@@ -1,7 +1,7 @@ | |||
import java.time.LocalDateTime | |||
import java.time.temporal.ChronoUnit | |||
import java.nio.file.Files | |||
import java.nio.file.StandardCopyOption | |||
import java.time.LocalDateTime | |||
import java.time.temporal.ChronoUnit | |||
logger.info "开始配置aspectj" | |||
//D:\work\ideaworkspace23\ds.dts.daes\build\classes\java\main | |||
@@ -27,19 +27,6 @@ ext { | |||
logger.info LocalDateTime.now().toString() + "上次编译的时间....... " | |||
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 { | |||
@@ -67,8 +54,8 @@ compileJava { | |||
println "开始编译......" | |||
options.encoding = 'UTF-8' | |||
options.compilerArgs += [//FIXME | |||
'-Xlint:deprecation', | |||
'-Xlint:unchecked', | |||
// '-Xlint:deprecation', | |||
// '-Xlint:unchecked', | |||
'-parameters' | |||
] | |||
} | |||
@@ -133,7 +120,6 @@ compileJava { | |||
LocalDateTime t4 = LocalDateTime.now(); | |||
println "完成编译和aspectj织入,编译耗时:" + ChronoUnit.MILLIS.between(t1, t3) + "ms" + ",织入耗时:" + ChronoUnit.MILLIS.between(t1, t4) + "ms"; | |||
} | |||
} | |||
compileTestJava { |
@@ -6,8 +6,8 @@ buildscript { | |||
dependencies { | |||
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}:dict-core:1.0.0-SNAPSHOT" | |||
implementation "${groupname}:sample-protocol:1.0.0-SNAPSHOT" | |||
implementation('cn.com.taiji.common:sso-client:2.3.10.7') | |||
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis' |
@@ -15,7 +15,7 @@ spring: | |||
server-addr: 100.64.2.105:8848 | |||
username: nacos | |||
password: '!@#$%qwertASDFG' | |||
namespace: guizhou-issuer | |||
namespace: zhywpt-new-test | |||
# networkInterface: 以太网 | |||
config: | |||
enabled: true | |||
@@ -23,7 +23,7 @@ spring: | |||
server-addr: 100.64.2.105:8848 | |||
username: nacos | |||
password: '!@#$%qwertASDFG' | |||
namespace: guizhou-issuer | |||
namespace: zhywpt-new-test | |||
extension-configs: | |||
- data-id: db-ifzt.yaml | |||
refresh: true |